Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(npm/autodiscovery): cleanup npm autodiscovery #10

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions updatecli/policies/npm/autodiscovery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 0.6.0

* Rename `npm.spec` to `spec`
* By default don't set groupby
* Cleaning test setting

## 0.5.0

* Swap default order for scm configuration to use environment variable if nothing else is defined
Expand Down
2 changes: 1 addition & 1 deletion updatecli/policies/npm/autodiscovery/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors:
url: "https://github.com/updatecli/policies/"
documentation: "https://github.com/updatecli/policies/tree/main/updatecli/policies/npm/autodiscovery/README.md"
source: "https://github.com/updatecli/policies/tree/main/updatecli/policies/npm/autodiscovery/"
version: 0.5.0
version: 0.6.0
vendor: Updatecli Project

licenses:
Expand Down
2 changes: 0 additions & 2 deletions updatecli/policies/npm/autodiscovery/testdata/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
automerge: false

scm:
enabled: true
user: updatecli-bot
Expand Down
6 changes: 3 additions & 3 deletions updatecli/policies/npm/autodiscovery/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
# {{ $GitHubUser := env ""}}
# {{ $GitHubRepositoryList := env "GITHUB_REPOSITORY" | split "/"}}
# {{ $GitHubPAT := env "GITHUB_TOKEN"}}
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}}
# {{ $GitHubUsername := env "GITHUB_ACTOR"}}

name: "deps: bump All NPM packages version"
pipelineid: {{ .pipelineid }}

autodiscovery:
groupby: {{ .autodiscovery.groupby }}
groupby: {{ .groupby }}
#{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scmid: default
actionid: default
# {{ end }}

crawlers:
npm:
{{ .npm.spec | toYaml | indent 6 }}
{{ .spec | toYaml | indent 6 }}

{{ if or (.scm.enabled) (env "GITHUB_REPOSITORY") }}
scms:
Expand Down
5 changes: 3 additions & 2 deletions updatecli/policies/npm/autodiscovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ scm:
#username: "updatecli-bot"
#branch: main

npm:
spec:
# spec:
groupby: all