From f5003551234f734db63f9774eca309338c92ea9b Mon Sep 17 00:00:00 2001 From: MazOneTwoOne <76905544+MazOneTwoOne@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:10:33 +0100 Subject: [PATCH] - add gajira github work flow --- .github/workflows/gajira.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/gajira.yml diff --git a/.github/workflows/gajira.yml b/.github/workflows/gajira.yml new file mode 100644 index 00000000..f4448635 --- /dev/null +++ b/.github/workflows/gajira.yml @@ -0,0 +1,33 @@ +name: Raise Dependabot Jira Issue + +on: + pull_request: + types: [opened] + +jobs: + gajira: + name: Raise Jira Issue + runs-on: ubuntu-latest + if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }} + + 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 Jira ticket + id: create + uses: atlassian/gajira-create@master + with: + project: EL + issuetype: Task + summary: | + FALA Dependabot: ${{ github.event.pull_request.title }}, GitHub PR#${{github.event.number}} + description: | + Please view the PR for further information. + PR link: https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }} + + In addition, please resolve other issues, if any.