-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
40 lines (38 loc) · 1.53 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
# action.yml
name: PR linked issues
description: Get issues linked to pull request
author: mondeja
inputs:
repository_owner:
description: The owner of the repository where is located the pull request.
required: false
repository_name:
description: The name of the repository where is located the pull request.
required: false
pull_request:
description: Number of the pull request for which linked pull requests will be retrieved.
required: false
owners:
description: The action will output `opener` and `others`, showing in them the linked issues opened by the pull request owner (`opener`) and those opened by other users (`others`).
required: false
add_links_by_content:
description: Add links to other issues defined in the pull request body using an `{issue_number}` placeholder. Multiple can be defined separating them by newlines.
required: false
outputs:
issues:
description: Issue numbers which may be closed by the pull request, separated by commas.
opener:
description: Issue numbers which may be closed by the pull request, that are opened by the pull request opener, separated by commas.
others:
description: Issue numbers which may be closed by the pull request, that are opened by other users than the pull request opener, separated by commas.
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.repository_owner }}
- ${{ inputs.repository_name }}
- ${{ inputs.pr_number }}
- ${{ inputs.add_links_by_content }}
branding:
icon: 'box'
color: 'red'