Skip to content

Commit 385c8f4

Browse files
authored
chore: use the github reusable workflow template from amplitude-typescript repo (#550)
1 parent 70c908d commit 385c8f4

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed
+14-32
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
# Creates jira tickets for new github issues to help triage
2-
name: Jira Issue Creator
2+
name: Jira Issue Creator For JS
33

44
on:
55
issues:
66
types: [opened]
7+
workflow_call:
8+
inputs:
9+
label:
10+
type: string
711

812
jobs:
9-
build:
10-
runs-on: ubuntu-18.04
11-
environment: Jira
12-
name: SDK Bot Jira Issue Creation
13-
steps:
14-
- name: Login
15-
uses: atlassian/gajira-login@master
16-
env:
17-
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
18-
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
19-
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
20-
21-
- name: Create issue
22-
id: create
23-
uses: atlassian/gajira-create@master
24-
with:
25-
project: ${{ secrets.JIRA_PROJECT }}
26-
issuetype: Task
27-
summary: |
28-
[SDK - JS] ${{ github.event.issue.title }}
29-
description: |
30-
${{ github.event.issue.html_url }}
31-
fields: '{
32-
"customfield_10006": 1391,
33-
"customfield_11481": {"value": "Governance 🕵️"},
34-
"customfield_11200": {"value": "Developer Experience"},
35-
"labels": ["js"]
36-
}' # sprint, pillar, pod, labels
37-
38-
- name: Log created issue
39-
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created"
13+
call-workflow-passing-data:
14+
uses: amplitude/Amplitude-TypeScript/.github/workflows/jira-issue-create-template.yml@main
15+
with:
16+
label: 'JS'
17+
secrets:
18+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
19+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
20+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
21+
JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }}

0 commit comments

Comments
 (0)