-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
34 lines (33 loc) · 994 Bytes
/
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
name: 'JIRA properties labeler on Pull Request'
author: 'Xavier Serrat'
description: 'Label a Pull Request using JIRA issue properties'
inputs:
GITHUB_TOKEN:
description: 'GitHub token'
required: true
JIRA_URI:
description: 'Jira URI of your organization'
required: true
JIRA_ENCODED_TOKEN:
description: 'Jira encoded token to access to the Jira API'
required: true
regexp_jira_issue_code_on_pr_title:
description: 'Regular expression to identify the JIRA issue code on a PR title'
required: false
default: '([A-Z]{3}-[0-9]{4}).*'
issue_properties:
description: 'The list of issue properties to add in the PR'
required: false
default: '[priority]'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.GITHUB_TOKEN }}
- ${{ inputs.JIRA_ENCODED_TOKEN }}
- ${{ inputs.JIRA_URI }}
- ${{ inputs.regexp_jira_issue_code_on_pr_title }}
- ${{ inputs.issue_properties }}
branding:
icon: 'tag'
color: 'blue'