From 6702e146b11d5ee56bb64924cb08b358a0b6202e Mon Sep 17 00:00:00 2001 From: Christian Volk Date: Wed, 2 Nov 2022 14:41:15 +0100 Subject: [PATCH] fix(githubPublishRelease): allow repo and owner to be configured globally (#4090) --- cmd/githubPublishRelease_generated.go | 4 ++-- resources/metadata/githubPublishRelease.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/githubPublishRelease_generated.go b/cmd/githubPublishRelease_generated.go index 89dab0d04..8007c50f7 100644 --- a/cmd/githubPublishRelease_generated.go +++ b/cmd/githubPublishRelease_generated.go @@ -264,7 +264,7 @@ func githubPublishReleaseMetadata() config.StepData { Param: "github/owner", }, }, - Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, + Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"}, Type: "string", Mandatory: true, Aliases: []config.Alias{{Name: "githubOrg"}}, @@ -296,7 +296,7 @@ func githubPublishReleaseMetadata() config.StepData { Param: "github/repository", }, }, - Scope: []string{"PARAMETERS", "STAGES", "STEPS"}, + Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"}, Type: "string", Mandatory: true, Aliases: []config.Alias{{Name: "githubRepo"}}, diff --git a/resources/metadata/githubPublishRelease.yaml b/resources/metadata/githubPublishRelease.yaml index 70636278d..4222d063a 100644 --- a/resources/metadata/githubPublishRelease.yaml +++ b/resources/metadata/githubPublishRelease.yaml @@ -94,6 +94,7 @@ spec: - name: commonPipelineEnvironment param: github/owner scope: + - GENERAL - PARAMETERS - STAGES - STEPS @@ -122,6 +123,7 @@ spec: - name: commonPipelineEnvironment param: github/repository scope: + - GENERAL - PARAMETERS - STAGES - STEPS