-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use the reusable workflow to create jira ticket (#135)
- Loading branch information
1 parent
8f7eef2
commit 957b61a
Showing
1 changed file
with
15 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,22 @@ | ||
name: Jira Issue Creator | ||
# Creates jira tickets for new github issues to help triage | ||
name: Jira Issue Creator For React-Native | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
workflow_call: | ||
inputs: | ||
label: | ||
type: string | ||
|
||
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 }} | ||
call-workflow-passing-data: | ||
uses: amplitude/Amplitude-TypeScript/.github/workflows/jira-issue-create-template.yml@main | ||
with: | ||
label: "React-Native" | ||
secrets: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||
JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }} | ||
|
||
- name: Create issue | ||
id: create | ||
uses: atlassian/gajira-create@master | ||
with: | ||
project: ${{ secrets.JIRA_PROJECT }} | ||
issuetype: Task | ||
summary: | | ||
[SDK - ReactNative] ${{ github.event.issue.title }} | ||
description: | | ||
${{ github.event.issue.html_url }} | ||
fields: '{ | ||
"customfield_10006": 1391, | ||
"customfield_11481": {"value": "Governance 🕵️"}, | ||
"customfield_11200": {"value": "Developer Experience"}, | ||
"labels": ["react-native"] | ||
}' # sprint, pillar, pod | ||
|
||
- name: Log created issue | ||
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created" |