Skip to content

Commit

Permalink
chore: add git action for jira id in PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
jblaze2908 committed Jul 8, 2024
1 parent d974d1a commit 6ad5337
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/github-actions-pr-jira.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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, master, beta, develop, prod, development]

jobs:
Enforce-GitHub-Jira-Link-Action:
runs-on: ubuntu-latest
if: ${{ !contains(fromJson('["main", "staging", "master", "beta", "develop", "prod", "development"]'), github.event.pull_request.head.ref) }}
steps:
- name: Enforce Pull Request Title includes Jira Issue Key
uses: ryanvade/[email protected]

0 comments on commit 6ad5337

Please sign in to comment.