Skip to content

Check PR #1 for a Jira link #6

Check PR #1 for a Jira link

Check PR #1 for a Jira link #6

name: "Jira Ticket Check"
run-name: "Check PR #${{ github.event.pull_request.number }} for a Jira link"
on: pull_request
jobs:
jira_ticket_check:
if: >-
github.event.pull_request.user.login == 'msteffen' &&
github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Check for Jira ticket
run: go run .github/jira_ticket_check
- name: Check PR description
run: |
echo "title:" "${{ github.event.pull_request.title }}"
echo "body:" "${{ github.event.pull_request.body }}"
set -ex
./pr-description-checker "${{ github.event.pull_request.title }} ${{ github.event.pull_request.body }}"