From d976e2fe33a997f0598a86ed89d31868e24c48d0 Mon Sep 17 00:00:00 2001 From: Olivier Vernin Date: Sun, 31 Dec 2023 19:04:02 +0100 Subject: [PATCH] feat: add additionnal env variable to github plugin 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 --- internal/plugins/github/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/plugins/github/main.go b/internal/plugins/github/main.go index fe03986..3811482 100644 --- a/internal/plugins/github/main.go +++ b/internal/plugins/github/main.go @@ -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 == "" {