Skip to content

Commit

Permalink
feat: add additionnal env variable to github plugin
Browse files Browse the repository at this point in the history
To avoid collision with default GITHUB environment variables when it's not
necessary. It now possible to use environment variable starting with
RELEASEPOST_GITHUB_ such as RELEASEPOST_GITHUB_TOKEN which takes
precedence over GITHUB_*

Signed-off-by: Olivier Vernin <[email protected]>
  • Loading branch information
olblak committed Dec 31, 2023
1 parent a8f3b8b commit d976e2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/plugins/github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func New(s interface{}) (*Github, error) {
return &Github{}, fmt.Errorf(strings.Join(strErrs, "\n"))
}

newSpec.mergeFromEnv("RELEASEPOST_GITHUB")
newSpec.mergeFromEnv("GITHUB")

if newSpec.URL == "" {
Expand Down

0 comments on commit d976e2f

Please sign in to comment.