Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/close-jira-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ jobs:
- name: Extract Jira issue key from GitHub issue title
id: extract-key
run: |
echo "Issue Title: ${{ github.event.issue.title }}"
ISSUE_TITLE="${{ github.event.issue.title }}"
JIRA_KEY=$(echo "$ISSUE_TITLE" | grep -oE '[A-Z]+-[0-9]+' || true)
echo "Extracted Jira Key: $JIRA_KEY"
echo "JIRA_KEY=$JIRA_KEY" >> $GITHUB_ENV

- name: Print final JIRA_KEY (debug)
run: echo "📦 Final JIRA_KEY = ${{ env.JIRA_KEY }}"

- name: Close Jira issue
if: ${{ env.JIRA_KEY != '' }}
uses: atlassian/gajira-transition@v3
Expand Down
Loading