-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdependabot_jira.yml
39 lines (35 loc) · 1.02 KB
/
dependabot_jira.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Dependabot Jira
on:
pull_request:
types:
- opened
branches:
- master
env:
JIRA_BASE_URL: #Jira URL
JIRA_USER_EMAIL: #jira user email
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
JIRA_PROJECT: #Jira project key
JIRA_ISSUE_TYPE: #Jira issue type
jobs:
create_jira:
name: Dependabot Jira
runs-on: ubuntu-latest
if: github.event.pull_request.user.id == 27856297 #id dependabot user
steps:
- name: Login to Jira
uses: atlassian/[email protected]
env:
JIRA_BASE_URL: ${{ env.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ env.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Jira Issue
id: create
uses: atlassian/[email protected]
with:
project: ${{ env.JIRA_PROJECT }}
issuetype: ${{ env.JIRA_ISSUE_TYPE }}
summary: |
[${{github.event.repository.name }}] ${{github.event.pull_request.title }}
description: |
${{github.event.pull_request.html_url }}