mirror of
https://github.com/corda/corda.git
synced 2025-01-17 18:29:49 +00:00
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:
parent
39cc5e3403
commit
aac2476e09
20
.github/workflows/jira_close_issue.yml
vendored
Normal file
20
.github/workflows/jira_close_issue.yml
vendored
Normal 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
36
.github/workflows/jira_create_issue.yml
vendored
Normal 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'
|
Loading…
Reference in New Issue
Block a user