-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
42 lines (42 loc) · 1.56 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
name: "Notify google chats about PR's"
description: "Periodically scan repositories for any un-reviewed PR's and create a google chat message with them."
inputs:
google-webhook-url:
description: "Google chats incoming webhook URL to post messages to"
required: true
github-repositories:
description: "Comma delimited list of repository owners (eg guardian/dotcom-rendering)"
required: true
default: ${{ github.repository }}
github-token:
description: "Github token used to authenticate to Github API"
required: true
default: ${{ github.token }}
github-ignored-users:
description: "Comma delimited list of user ID's to ignore"
required: true
default: "49699333"
github-announced-users:
description: "Comma delimited list of user ID's to announce"
required: false
default: ""
github-ignored-labels:
description: "Comma delimited list of label names to ignore"
required: true
default: "Stale"
show-pr-age:
description: "Include PR age in chat message output"
required: false
# Values: "true" or "false"
default: "false"
runs:
using: "docker"
image: "docker://ghcr.io/guardian/actions-prnouncer"
env:
GITHUB_REPOSITORIES: ${{ inputs.github-repositories }}
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_IGNORED_USERS: ${{ inputs.github-ignored-users }}
GITHUB_ANNOUNCED_USERS: ${{ inputs.github-announced-users }}
GITHUB_IGNORED_LABELS: ${{ inputs.github-ignored-labels }}
GOOGLE_WEBHOOK_URL: ${{ inputs.google-webhook-url }}
SHOW_PR_AGE: ${{ inputs.show-pr-age }}