generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (39 loc) · 1.26 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
name: 'Link issue'
description: 'Link a pull-request to an external issue getting id from branch name, PR title or commit message'
author: 'ov7a'
inputs:
sources:
required: false
description: 'A list of locations where issue id should be taken from. Possible values: branch, title, commit.'
default: |
branch
title
commit
issue-pattern:
required: true
description: 'A regex to match and extract issue id. For example, use "[A-Z][A-Z]+-\d+" for JIRA issues or "#(\d+)" for Redmine issues.'
link-template:
required: true
description: 'Link template to paste id or its part into. You should use regex groups here. Example: "https://example.com/browse/issues/$0"'
link-name-template:
required: false
description: 'Template for link name'
default: '$0'
link-preamble:
required: false
description: 'Text before list of links'
default: 'Related issues: '
link-location:
required: false
description: 'Location to paste link to. Possible values: start, end.'
default: 'end'
token:
required: true
description: 'The GitHub authentication token'
default: ${{ github.token }}
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'link'
color: 'blue'