Skip to content

Commit

Permalink
ci: automated jira issue creation workflow (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooohhn committed Apr 8, 2021
1 parent 4cc28bf commit 33723d3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/jira-issue-create.yml
@@ -0,0 +1,33 @@
name: Jira Issue Creator

on:
issues:
types: [opened]

jobs:
build:
runs-on: ubuntu-18.04
environment: Jira
name: SDK Bot Jira Issue Creation
steps:
- name: Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Create issue
id: create
uses: atlassian/gajira-create@master
with:
project: ${{ secrets.JIRA_PROJECT }}
issuetype: Task
summary: |
[SDK - iOS] ${{ github.event.issue.title }}
description: |
${{ github.event.issue.url}}
fields: '{"customfield_10006": 1039, "customfield_11481": {"value": "Data Management"}, "customfield_11200": {"value": "SDK"}}' # sprint, pillar, pod

- name: Log created issue
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created"

0 comments on commit 33723d3

Please sign in to comment.