|
1 | 1 | # Creates jira tickets for new github issues to help triage |
2 | | -name: Jira Issue Creator |
| 2 | +name: Jira Issue Creator For JS |
3 | 3 |
|
4 | 4 | on: |
5 | 5 | issues: |
6 | 6 | types: [opened] |
| 7 | + workflow_call: |
| 8 | + inputs: |
| 9 | + label: |
| 10 | + type: string |
7 | 11 |
|
8 | 12 | 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