Add github actions to sync open and closed issues in jira (#6138)

Co-authored-by: Dimitris Gounaris <dimitrisgounaris@20LDN-MAC257.local>
This commit is contained in:
Dimitris Gounaris 2020-04-07 19:17:01 +01:00 committed by GitHub
parent 39cc5e3403
commit aac2476e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

20
.github/workflows/jira_close_issue.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Sync closed jira issues
on:
schedule:
- cron: '*/15 * * * *'
jobs:
sync_closed:
runs-on: ubuntu-latest
steps:
- name: Close
uses: corda/jira-sync-closed-action@master
with:
project: CORDA
jiraBaseUrl: https://r3-cev.atlassian.net
jiraEmail: ${{ secrets.JIRA_USER_EMAIL }}
jiraToken: ${{ secrets.JIRA_API_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
owner: corda
repository: corda

36
.github/workflows/jira_create_issue.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Create jira issue from github issue
on:
issues:
types: [opened]
jobs:
update_jira:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Jira Create issue
id: create
uses: corda/jira-create-issue-action@master
with:
jiraBaseUrl: https://r3-cev.atlassian.net
project: CORDA
issuetype: Bug
summary: ${{ github.event.issue.title }}
labels: community
jiraEmail: ${{ secrets.JIRA_USER_EMAIL }}
jiraToken: ${{ secrets.JIRA_API_TOKEN }}
description: |
${{ github.event.issue.body }}
Created by github action.
- name: Create comment
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.GH_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Automatically created Jira issue: ${{ steps.create.outputs.issue }}
reaction-type: '+1'