Skip to content

Commit ad8fdd2

Browse files
committed
use a forked action
1 parent 4ce969e commit ad8fdd2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Link and Lint PR with Jira Ticket Number
2+
on:
3+
merge_group:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
jobs:
11+
add-jira-description:
12+
runs-on: ubuntu-latest
13+
# Run only if the PR is not from a Fork / external contributor
14+
if: ${{ github.repository_owner == 'wireapp' }}
15+
steps:
16+
- name: Check for Dependabot
17+
if: github.actor == 'dependabot[bot]' || github.actor == 'AndroidBob'
18+
run: echo "PR created by Dependabot or AndroidBob, exiting successfully" && exit 0
19+
20+
- uses: mohamadjaara/jira-description-action@master
21+
name: jira-description-action
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
jira-token: ${{ secrets.JIRA_TOKEN }}
25+
jira-base-url: https://wearezeta.atlassian.net
26+
skip-branches: '^(production-release|main|master|release\/v\d+)$' #optional
27+
fail-when-jira-issue-not-found: true

0 commit comments

Comments
 (0)