From 89d88926b9a2a511e1f9530b68df48320c0175e3 Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 15 Oct 2024 13:45:53 +0100 Subject: [PATCH] Fix: Use of ORGANIZATION variable in github2gerrit.yaml Signed-off-by: Matthew Watkins --- .github/workflows/github2gerrit.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github2gerrit.yaml b/.github/workflows/github2gerrit.yaml index 4c54289..0547fe4 100644 --- a/.github/workflows/github2gerrit.yaml +++ b/.github/workflows/github2gerrit.yaml @@ -50,9 +50,10 @@ on: required: true type: string ORGANIZATION: - description: "Orginazation name ex: OpendayLight.org" - required: true + description: "Organization name, e.g. opendaylight" + required: false type: string + default: ${{ github.repository_owner }} REVIEWERS_EMAIL: description: "Committers email list (comma separated) to notify on code-reviews" required: false @@ -264,7 +265,7 @@ jobs: # shellcheck disable=SC2016 gh api graphql --paginate \ -F number=${{ env.PR_NUMBER }} \ - -F owner=${{ vars.ORGANIZATION }} \ + -F owner=${{ inputs.ORGANIZATION }} \ -F name=${{ env.PROJECT_REPO_GITHUB }} \ -f query='query($name: String!, $owner: String!, $number: Int!) { repository(owner: $owner, name: $name) {