rittikdasgupta is ensuring Jira ID is present in PR title #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub-Jira Link Action | |
run-name: ${{ github.actor }} is ensuring Jira ID is present in PR title | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
branches: [main, staging, develop] | |
jobs: | |
Enforce-GitHub-Jira-Link-Action: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.head.ref != 'staging' && github.event.pull_request.head.ref != 'develop' && github.event.pull_request.head.ref != 'main' }} | |
steps: | |
- name: Enforce Pull Request Title includes Jira Issue Key | |
uses: ryanvade/[email protected] | |