From 6884d67d22ee95c0e0dde6a8c1a3795f028fc2fe Mon Sep 17 00:00:00 2001 From: Raksha Bharuka Date: Thu, 21 Nov 2024 17:01:29 +0530 Subject: [PATCH] test jira --- .github/workflows/dependabot.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 5fa05c83..0645656a 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -1,8 +1,9 @@ name: Create JIRA Issue from Dependabot PR on: - pull_request: - types: [ opened, reopened ] + push: + branches: + - test1 jobs: create_jira_issue: @@ -13,16 +14,10 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Create JIRA Issue - uses: atlassian/gajira-create@v3 - with: - jira-base-url: ${{ secrets.JIRA_BASE_URL }} - jira-user-email: ${{ secrets.JIRA_USER_EMAIL }} - jira-api-token: ${{ secrets.JIRA_API_TOKEN }} - project: ${{ secrets.JIRA_PROJECT_KEY }} - issuetype: "Task" - summary: "Dependabot PR: ${{ github.event.pull_request.title }}" - description: | - A new dependabot pull request has been created. - - **Branch**: ${{ github.event.pull_request.head.ref }} - - **PR Link**: ${{ github.event.pull_request.html_url }} + - name: Login + uses: atlassian/gajira-login@v3 + env: + JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} + JIRA_USER_EMAIL: ${{ secrets.jira-user-email }} + JIRA_API_TOKEN: ${{ secrets.jira-api-token }} +