From 5266906dc81d328cbaa2ea89e08d393f6a0e271b Mon Sep 17 00:00:00 2001 From: Brian Giori Date: Tue, 2 Apr 2024 12:20:21 -0700 Subject: [PATCH] chore: add jira issue creator action --- .github/workflows/jira-issue-create.yml | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/jira-issue-create.yml diff --git a/.github/workflows/jira-issue-create.yml b/.github/workflows/jira-issue-create.yml new file mode 100644 index 0000000..103e302 --- /dev/null +++ b/.github/workflows/jira-issue-create.yml @@ -0,0 +1,36 @@ +# Creates jira tickets for new github issues to help triage +name: Jira Issue Creator + +on: + issues: + types: [opened] + +jobs: + build: + runs-on: ubuntu-latest + 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 - evaluation-proxy] ${{ github.event.issue.title }} + description: | + ${{ github.event.issue.html_url }} + fields: '{ + "labels": ["evaluation-proxy", "sdk-backlog-grooming", "github"] + }' + + - name: Log created issue + run: echo "Issue SKY-${{ steps.create.outputs.issue }} was created"