forked from Khan/pull-request-comment-trigger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
31 lines (31 loc) · 1.17 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
name: 'Pull Request Comment Trigger'
description: 'Look for a "trigger word" in a pull-request description or comment, so that later steps can know whether or not to run.'
inputs:
reaction:
description: If set, the specified emoji "reaction" is put on the comment to indicate that the trigger was detected. For example, "rocket".
required: false
default: ""
trigger:
description: 'The string to look for in pull-request descriptions and comments. For example "#build/android"'
required: true
prefix_only:
description: If 'true', the trigger must match the start of the comment.
required: false
default: "false"
fail_if_not_mergeable:
description: If 'true', and the PR is not in a mergeable state, the action will fail.
required: false
default: "true"
outputs:
triggered:
description: the string 'true' if the trigger was found, otherwise the string 'false'
comment_body:
description: The comment body.
pull_request:
description: 'A pull_request object as described at https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: check-circle
color: red