Skip to content

Commit

Permalink
feat: opt-out scm.email
Browse files Browse the repository at this point in the history
requires bump the version in the Policy.yaml
  • Loading branch information
v1v committed Sep 9, 2024
1 parent 00347d0 commit 2babcb8
Show file tree
Hide file tree
Showing 62 changed files with 185 additions and 1 deletion.
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/all/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.0

* Allow to opt out `scm.email`.

## 0.6.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/all/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ scms:
# {{ $GitHubUser := env ""}}
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
# {{ $GitHubRepositoryList := env "GITHUB_REPOSITORY" | split "/"}}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/cargo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/dockercompose/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/dockerfile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/flux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/flux/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/golang/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.9.0

* Allow to opt out `scm.email`.

## 0.8.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user}}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository}}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/helm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/helm/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/helmfile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/ko/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/ko/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/kubernetes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/maven/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/npm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.10.0

* Allow to opt out `scm.email`.

## 0.9.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/npm/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/prow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.0

* Allow to opt out `scm.email`.

## 0.1.0

* Init policy
2 changes: 2 additions & 0 deletions updatecli/policies/autodiscovery/prow/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/rancher/fleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/terraform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.0

* Allow to opt out `scm.email`.

## 0.4.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/terragrunt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.0

* Allow to opt out `scm.email`.

## 0.1.0

* Init policy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/autodiscovery/updatecli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.0

* Allow to opt out `scm.email`.

## 0.6.0

* Allow to opt out `scm.email`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
#{{ if .scm.email }}
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/golang/autodiscovery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.8.0

* Allow to opt out `scm.email`.

## 0.7.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user}}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository}}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/golang/version/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.0

* Allow to opt out `scm.email`.

## 0.2.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
2 changes: 2 additions & 0 deletions updatecli/policies/golang/version/updatecli.d/default.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user}}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository}}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
4 changes: 4 additions & 0 deletions updatecli/policies/golangci-lint/githubaction/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.3.0

* Allow to opt out `scm.email`.

## 0.2.0

* Allow to set commit with GitHub GraphQL API using `scm.commitusingapi`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ scms:
spec:
# Priority set to the environment variable
user: '{{ default $GitHubUser .scm.user }}'
# {{ if .scm.email }}
email: '{{ .scm.email }}'
# {{ end }}
owner: '{{ default $GitHubRepositoryList._0 .scm.owner }}'
repository: '{{ default $GitHubRepositoryList._1 .scm.repository }}'
token: '{{ default $GitHubPAT .scm.token }}'
Expand Down
Loading

0 comments on commit 2babcb8

Please sign in to comment.