-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.example.yaml
33 lines (31 loc) · 1.54 KB
/
config.example.yaml
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
slackSyncs:
# name must be unique across all given syncs
- name: team-awesome
schedules:
# a schedule can be given by name
- name: Awesome-Primary
# a schedule may optionally have one or more user groups that get updated with the on-call personnel
userGroups:
# choose one of `id`, `name`, or `handle` to reference a pre-existing user group
- name: Team Awesome On-call (all)
- handle: team-awesome-on-call-primary
# alternatively, the schedule can be given by ID (the name is assumed to be Awesome-Secondary and referenced in the template below)
- id: D34DB33F
userGroups:
# the first user group is also defined in the primary schedule above
- name: Team Awesome On-call (all)
- handle: team-awesome-on-call-secondary
channel:
name: awesome
# a channel can also be provided by ID:
# id: 1A3F8FGJ
# The on-call Slack user variables are named after the schedule names.
# Note how it is called ".AwesomePrimary" and not ".Awesome-Primary" because Go
# template variables support alphanumeric characters only, so pdsync
# strips off all illegal characters.
template: |-
primary on-call: <@{{.AwesomePrimary}}> (Slack handle: @team-awesome-on-call-primary)
secondary on-call: <@{{.AwesomeSecondary}}> (Slack handle: @team-awesome-on-call-secondary)
reach out to both primary and secondary via @team-awesome-on-call
# Set to true to skip updating the Slack channel topic
dryRun: false