-
Notifications
You must be signed in to change notification settings - Fork 53
/
action.yml
78 lines (78 loc) · 2.59 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
name: "Add PR Comment"
description: "Add a comment to a pull request"
inputs:
message:
description: "The message to print."
required: false
message-path:
description: "A path or list of paths to a file to print as a message instead of a string."
required: false
message-id:
description: "An optional id to use for this message."
default: "add-pr-comment"
required: true
refresh-message-position:
description: "If a message with the same id, this option allow to refresh the position of the message to be the last one posted."
default: "false"
required: true
repo-owner:
description: "The repo owner."
default: "${{ github.repository_owner }}"
required: true
repo-name:
description: "The repo name."
default: "${{ github.event.repository.name }}"
required: true
repo-token:
description: "A GitHub token for API access. Defaults to {{ github.token }}."
default: "${{ github.token }}"
required: true
allow-repeats:
description: "Allow messages to be repeated."
default: "false"
required: true
proxy-url:
description: "Proxy URL for comment creation"
required: false
status:
description: "A job status for status headers. Defaults to {{ job.status }}."
default: "${{ job.status }}"
required: true
message-success:
description: "Override the message when a run is successful."
required: false
message-failure:
description: "Override the message when a run fails."
required: false
message-cancelled:
description: "Override the message when a run is cancelled."
required: false
message-skipped:
description: "Override the message when a run is skipped."
required: false
issue:
description: "Override the message when a run is cancelled."
required: false
update-only:
description: "Only update the comment if it already exists."
required: false
preformatted:
description: "Treat message text (from a file or input) as pre-formatted and place it in a codeblock."
required: false
find:
description: "A regular expression to find for replacement. Multiple lines become individual regular expressions."
replace:
description: "A replacement to use, overrides the message. Multple lines can replace same-indexed find patterns."
outputs:
comment-created:
description: "Whether a comment was created."
comment-updated:
description: "Whether a comment was updated."
comment-id:
description: "If a comment was created or updated, the comment id."
branding:
icon: message-circle
color: purple
runs:
using: "node20"
main: "dist/index.js"