-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
57 lines (57 loc) · 2.47 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: 'Jira Fields as PR Labels'
author: 'Maurice Williams'
description: "Add labels to a pull request based on certain fields from Jira"
inputs:
github-token:
description: 'Token used to add labels to the PR. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
required: true
jira-api-token:
description: "API Token used to access the Jira REST API. Must have read access to your Jira projects & issues. For details, see Atlassian's official documentation: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/"
required: true
jira-username:
description: "Username that can use the Jira API token. Must have read access to your Jira projects & issues. For details, see Atlassian's official documentation: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/"
required: true
jira-base-url:
description: 'Your Jira subdomain. i.e.: https://your-domain.atlassian.net'
required: true
issue-key-location:
description: 'Where in the PR to look for issue key. Values can be: `branch`, `title` or `both`'
default: title
required: false
inject-jira-info-table:
description: 'Flag indicating if the table with the basic ticket information should be added to the top of the PR description'
default: true
required: false
sync-issue-type:
description: 'Flag indicating if the "issue type" from Jira should be added as a PR label'
default: false
required: false
sync-issue-priority:
description: 'Flag indicating if the "priority" value from Jira should be added as a PR label'
default: false
required: false
sync-issue-labels:
description: 'Flag indicating if the "labels" from Jira should be added as a PR label'
default: false
required: false
sync-issue-fix-versions:
description: 'Flag indicating if the "fix versions" from Jira should be added as a PR label'
default: false
required: false
outputs:
issue-key:
description: 'The issue key that was found'
issue-type:
description: 'The Jira issue type for the corresponding Jira issue'
issue-priority:
description: 'The priority set in Jira for the corresponding Jira issue'
issue-labels:
description: 'The labels set in Jira for the corresponding Jira issue'
issue-fix-versions:
description: 'The fix versions on the corresponding Jira issue'
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'refresh-cw'
color: 'blue'