Skip to content

Commit

Permalink
Update code freeze bot to check target PR branch correctly for issue_…
Browse files Browse the repository at this point in the history
…comment

Signed-off-by: Andrew Leonard <anleonar@redhat.com>
  • Loading branch information
andrew-m-leonard committed Apr 29, 2024
1 parent 5116f51 commit cf182fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code-freeze-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
id: get-pr-target-branch
run: |
echo "Getting target branch"
if [[ -z $PR_NUMBER ]]; then
PR_NUMBER="${{ github.event.pull_request.number }}"
fi
TARGET_BRANCH="$(gh pr view "$PR_NUMBER" --repo "$REPOSITORY" --json baseRefName --jq '.baseRefName')"
echo "pr_target_branch=$TARGET_BRANCH" >> "$GITHUB_OUTPUT"
echo "PR target branch = $TARGET_BRANCH"
Expand Down

0 comments on commit cf182fa

Please sign in to comment.