forked from konveyor/tackle2-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.74 KB
/
issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tackle UI Issues Sync
defaults:
run:
shell: bash
working-directory: .github/scripts/
on:
issues:
types: [opened, closed, reopened]
jobs:
sync-opened:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[TACKLE2-') }}
name: New GitHub Issue to sync with Jira
steps:
- uses: actions/[email protected]
- env:
BEARER: ${{ secrets.JIRA_TACKLE_BEARER }}
GH_ISSUE_TITLE: ${{ github.event.issue.title }}
NUMBER: ${{ github.event.issue.number }}
DESCRIPTION: ${{ github.event.issue.html_url }}
REPOSITORY: ${{ github.event.repository.name }}
run: |
./issue_create.sh
sync-reopened:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'reopened' && startsWith(github.event.issue.title, '[TACKLE2-') }}
name: Reopened GitHub Issue to sync with Jira
steps:
- uses: actions/[email protected]
- env:
BEARER: ${{ secrets.JIRA_TACKLE_BEARER }}
GH_ISSUE_TITLE: ${{ github.event.issue.title }}
NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.event.repository.name }}
run: |
./issue_transaction.sh 3
sync-closed:
runs-on: ubuntu-latest
if: ${{ github.event.action == 'closed' && startsWith(github.event.issue.title, '[TACKLE2-') }}
name: Closed GitHub Issue to sync with Jira
steps:
- uses: actions/[email protected]
- env:
BEARER: ${{ secrets.JIRA_TACKLE_BEARER }}
GH_ISSUE_TITLE: ${{ github.event.issue.title }}
NUMBER: ${{ github.event.issue.number }}
REPOSITORY: ${{ github.event.repository.name }}
run: |
./issue_transaction.sh 2