Skip to content

Commit 992cc68

Browse files
committed
APM-4217 Add back in
1 parent 5255bdf commit 992cc68

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/pr-lint.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ jobs:
1212
run: echo ::set-env name=TICKET_NAME::$(echo ${{ github.event.pull_request.head.ref }} | grep -i -o '\(apm-[0-9]\+\)\|\(apmspii-[0-9]\+\)\|\(adz-[0-9]\+\)|\(amb-[0-9]\+\)' | tr '[:lower:]' '[:upper:]')
1313
env:
1414
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
15+
16+
- name: Comment on PR with link to JIRA ticket
17+
if: contains(github.event.pull_request.head.ref, 'apm-') || contains(github.event.pull_request.head.ref, 'APM-') || contains(github.event.pull_request.head.ref, 'apmspii-') || contains(github.event.pull_request.head.ref, 'APMSPII-') || contains(github.event.pull_request.head.ref, 'adz-') || contains(github.event.pull_request.head.ref, 'ADZ-') || contains(github.event.pull_request.head.ref, 'amb-') || contains(github.event.pull_request.head.ref, 'AMB-')
18+
uses: unsplash/comment-on-pr@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
msg: |
23+
This branch is work on a ticket in the NHS Digital APM JIRA Project. Here's a handy link to the ticket:
24+
# [${{ env.TICKET_NAME }}](https://nhsd-jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})
25+

0 commit comments

Comments
 (0)