Skip to content

Commit

Permalink
fix/issue-pr (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttizze authored Jul 27, 2024
2 parents 75ed3ed + cf2be9c commit 4998cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/link-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
run: |
BRANCH_NAME="${{ github.head_ref }}"
ISSUE_NUMBER=$(echo $BRANCH_NAME | grep -oP 'issue-\K\d+')
if [ -z "$ISSUE_NUMBER" ]; then
echo "No issue number found in branch name. Workflow will exit."
exit 0
fi
echo "issue_number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT
- name: Link PR to issue
Expand Down

0 comments on commit 4998cf8

Please sign in to comment.