-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
73 lines (72 loc) · 2.2 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
name: 'Slack Merge Queue'
branding:
icon: 'bell'
color: 'green'
description: 'handles a merge queue within slack'
inputs:
mode:
description: 'mode of the action, changes behaviour based on mode'
required: true
channel:
description: 'the channel to use as the queue'
required: false
channel_id:
description: 'the channel id to use as the queue'
required: false
icon_emoji:
description: 'icon emoji for the bot'
required: false
default: ':robot_face:'
init_trigger:
description: 'the trigger keyword to add PR to queue'
required: false
default: '/merging'
merge_ready_message:
description: 'message for alerting next PR in the queue'
required: false
default: 'Last PR closed. This PR is now up for merge!'
cancel_trigger:
description: 'the trigger keyword to manually cancel PR in queue'
required: false
default: '/cancel-merge'
cancel_ready_message:
description: 'message for alerting next PR in the queue after manual cancel'
required: false
default: 'Previous PR merge was temporarily cancelled. This PR is now up for merge!'
alert_message:
description: 'message for alerting current PR in the queue'
required: false
default: 'build is complete. Time to merge!'
only_when_current:
description: 'ALERT MODE: only alert if PR is currently up for merge'
required: false
default: 'true'
auto_notify:
description: 'INIT MODE: auto notify relayed guthub users'
required: false
default: 'true'
delete_on_cancel:
description: 'delete queue item when cancelled'
required: false
default: 'false'
history_threshold:
description: 'delete queue item when cancelled'
required: false
default: '10'
channel_types:
description: 'channel types to include in the request'
required: false
default: 'public_channel,private_channel'
team_id:
description: 'encoded Slack team id to list channels in'
required: false
outputs:
status:
description: 'status of the build run'
triggered:
description: 'boolean for when a comment triggers an action'
next_pr:
description: 'id number of next pull request in the queue'
runs:
using: 'node20'
main: 'src/index.js'