File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 - reopened
99 - synchronize
1010
11+ permissions :
12+ pull-requests : write
13+
1114jobs :
1215 lint :
1316 name : Validate PR title And link Jira Issue
1417 runs-on : ubuntu-22.04
1518 env :
1619 JIRA_COMMENT_REGEX : " ^.*Jira.*"
20+ PR_TITLE : ${{ github.event.pull_request.title }}
1721 steps :
1822 - uses : Slashgear/action-check-pr-title@860e8dc639f8e60335a6f5e8936ba67ed2536890
1923 id : lint
3337 id : extract_jira_issue
3438 if : steps.lint.outcome == 'success'
3539 run : |
36- PR_TITLE=$(echo "${{ github.event.pull_request.title }}")
3740 ISSUES_STR=$(awk -F'\\[|\\]' '{print $2}' <<< "$PR_TITLE" | sed "s/#//g" | sed "s/,//g")
3841 ISSUES=($ISSUES_STR)
3942 JIRA_ISSUE=$(echo ${ISSUES_STR##* })
7881 - name : Failure message
7982 if : steps.lint.outcome != 'success'
8083 run : |
81- echo "Pull request title (${{ github.event.pull_request.title }} ) is not properly formatted or it is not related to any Jira issue"
84+ echo "Pull request title ($PR_TITLE ) is not properly formatted or it is not related to any Jira issue"
8285 exit 1
You can’t perform that action at this time.
0 commit comments