forked from Gamer025/CodeOwnersParser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
100 lines (100 loc) · 2.91 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: 'CodeOwnersNotifer'
description: "Github action for notifying codeowners about changes, even if they aren't part of the repo."
branding:
icon: bell
color: white
inputs:
owner:
description:
"The owner, for example: \"dotnet\". Assign from `github.repository_owner`."
required: false
default: ${{ github.repository_owner }}
name:
description:
"The repository name, for example: \"samples\". Assign from `github.repository`."
required: false
default: ${{ github.repository }}
timeout:
description:
"Timeout for Github API requests in milliseconds."
required: false
default: '10000'
fileLimit:
description:
"Maximum amount of files to process, PRs with more files will not be processed."
required: false
default: '1000'
token:
description:
"Github token used for Github API. Only needed to increase rate limit, may not be provided."
required: false
default: ${{ github.token }}
workspace:
description:
"The workspace directory, or repository root directory. Assign from `github.workspace`."
required: false
default: "/github/workspace"
file:
description:
"Path to the codeowners file. Relative to the repository root."
required: false
default: "/.github/CODEOWNERS"
pullID:
description:
"ID of the PR to process. Assign from `github.event.pull_request.number`."
required: false
default: ${{ github.event.pull_request.number }}
separator:
description:
"Separator used if multiple owners are returned. Defaults to space."
required: false
default: ' '
prefix:
description:
"Prefix that will be added to owners-formatted output + used for finding existing mentions."
required: false
default: ""
sufix:
description:
"Sufix that will be added to owners-formatted output + used for finding existing mentions."
required: false
default: ""
botname:
description:
"Name of the bot/user that posts notification comments. If this is specified only owners that haven't been mentioned by this user will be output. Should be 'github-actions[bot]'"
required: false
outputs:
owners:
description:
'Raw list of owners, seperated with the separator parameter. Use this to determine if owners were found and as input for other actions.'
owners-formatted:
description:
'Owners with sufix and prefix paramter added. Use this output as input for comment posting actions.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '-o'
- ${{ inputs.owner }}
- '-n'
- ${{ inputs.name }}
- '-t'
- ${{ inputs.timeout }}
- '-l'
- ${{ inputs.fileLimit }}
- '-k'
- ${{ inputs.token }}
- '-w'
- ${{ inputs.workspace }}
- '-f'
- ${{ inputs.file }}
- '-i'
- ${{ inputs.pullID }}
- '-d'
- ${{ inputs.separator }}
- '-p'
- ${{ inputs.prefix }}
- '-s'
- ${{ inputs.sufix }}
- '-b'
- ${{ inputs.botname }}