Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 14 additions & 32 deletions .github/workflows/jira-issue-create.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
# Creates jira tickets for new github issues to help triage
name: Jira Issue Creator
name: Jira Issue Creator For Unreal

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 }}

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

- name: Log created issue
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created"
call-workflow-passing-data:
uses: amplitude/Amplitude-TypeScript/.github/workflows/jira-issue-create-template.yml@main
with:
label: "Unreal"
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 }}