We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb9e44 commit 1c43bf2Copy full SHA for 1c43bf2
1 file changed
.github/workflows/jira-pr-comment.yml
@@ -22,15 +22,17 @@ jobs:
22
add-pr-comment-to-jira:
23
name: Add PR Comment to Jira
24
runs-on: ubuntu-latest
25
+ permissions: {}
26
steps:
27
- name: Extract Jira Issue Key from PR Title
28
id: extract
29
+ env:
30
+ PR_TITLE: ${{ github.event.pull_request.title }}
31
run: |
- TITLE="${{ github.event.pull_request.title }}"
- echo "PR Title: $TITLE"
32
+ echo "PR Title: $PR_TITLE"
33
34
# Match pattern: IEP-12345: description
- if [[ "$TITLE" =~ ^(IEP-[0-9]+): ]]; then
35
+ if [[ "$PR_TITLE" =~ ^(IEP-[0-9]+): ]]; then
36
ISSUE_KEY="${BASH_REMATCH[1]}"
37
echo "Found Jira issue key: $ISSUE_KEY"
38
echo "issue_key=$ISSUE_KEY" >> $GITHUB_OUTPUT
0 commit comments