Skip to content

Commit

Permalink
AP-5409: Create jira ticket from dependabot PR
Browse files Browse the repository at this point in the history
  • Loading branch information
naseberry committed Oct 29, 2024
1 parent 23e7989 commit 1f71dfa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dependabot-jira.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create Jira Ticket

on:
pull_request:
types:
- opened

jobs:
create_jira_ticket:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'dependencies') }}

steps:
- 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 Ticket
id: create
uses: atlassian/gajira-create@v3
with:
project: AP
issuetype: Maintenance
summary: "Dependabot PR in ${{ github.repository }}: ${{ github.event.pull_request.title }}"
description: ${{ github.event.pull_request.body }}

0 comments on commit 1f71dfa

Please sign in to comment.