Skip to content

Commit

Permalink
added new action to create jira ticket for dependabot PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raksha-Bharuka committed Nov 21, 2024
1 parent 16fe000 commit 45953a2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

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

- 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 }}
issuetype: 'Task'
project: 'RCAT'
- name: Add Comment to PR with JIRA Issue
uses: actions/github-script@v6
with:
Expand Down

0 comments on commit 45953a2

Please sign in to comment.