-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (37 loc) · 1.03 KB
/
action.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
40
---
name: 'Dependabot'
description: 'Create a Jira ticket on Dependabot PR'
inputs:
base-url:
description: 'Base URL'
required: true
user-email:
description: 'User email'
required: true
api-token:
description: 'API token'
required: true
project:
description: 'project'
required: true
issue-type:
description: 'Issue type'
required: true
runs:
using: "composite"
steps:
# https://github.com/marketplace/actions/jira-login
- uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: ${{ inputs.base-url }}
JIRA_USER_EMAIL: ${{ inputs.user-email }}
JIRA_API_TOKEN: ${{ inputs.api-token }}
# https://github.com/marketplace/actions/jira-create-issue
- uses: atlassian/gajira-create@v3
with:
project: ${{ inputs.project }}
issuetype: ${{ inputs.issue-type }}
summary: |
[${{github.event.repository.name }}] ${{github.event.pull_request.title }}
description: |
${{github.event.pull_request.html_url }}