-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (49 loc) · 1.53 KB
/
create_jira_workflow.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
name: Sync issues to jira
on:
issues:
types: [labeled]
jobs:
create-task:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Jira Issue
env:
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_BASE_URL: "https://droidsonroids.atlassian.net"
run: |
ISSUE_SUMMARY="Brief summary of the issue"
ISSUE_DESCRIPTION="Detailed description of the issue"
curl -X POST \
-u "[email protected]:JIRA_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"project": {
"key": "FT"
},
"summary": "Brief summary of the issuee",
"description": "Detailed description of the issue",
"issuetype": {
"name": "Task"
}
}
}' \
$JIRA_BASE_URL/rest/api/2/issue/
# jobs:
# issue-sync:
# permissions:
# issues: write # should be set
# runs-on: ubuntu-latest
# steps:
# - name: Sync to Jira
# uses: atsushii/github-issue-to-jira@v1
# with:
# github-owner: DroidsOnRoids
# github-repo: add-to-google-wallet
# github-token: ${{ secrets.GITHUB_TOKEN }}
# jira-hostname: https://droidsonroids.atlassian.net
# jira-auth-token: ${{ secrets.JIRA_API_TOKEN }}
# jira-auth-email: ${{ secrets.JIRA_AUTH_EMAIL }}
# jira-project-key: FT