Skip to content

Commit

Permalink
Merge pull request #20 from Rohland/feat/slack-ping
Browse files Browse the repository at this point in the history
Ongoing notifications in Slack with pointer to original message
  • Loading branch information
Rohland authored Aug 21, 2024
2 parents 99f70bd + f0473f6 commit 89df86b
Show file tree
Hide file tree
Showing 7 changed files with 1,401 additions and 1,158 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v4

Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ channels:
interval: 1h # how often to post updates as a new message
token: slack-token # we expect an environment variable with this name
channel: "#ops"
workspace: "acme" # this is your workspace name in slack (optional)
```

A note on templates: Slack prevents message updates from exceeding 4k characters, so if the Slack notification exceeds this, a
Expand Down Expand Up @@ -537,3 +538,13 @@ Example resolution:

> ✅ @channel Previous outage resolved at 10:11:08. Duration was 1 minute.
> See above for more details about affected services.

## Integration Testing

Configure a local `.env` file with the configuration as outlined in the documentation above, and then execute
as follows:

```bash
# this expects that you have a subfolder called path and files called config.yml and digest.yml
npm start --loop ./path/config --eval=web --digest=./path/digest --debug
```
Loading

0 comments on commit 89df86b

Please sign in to comment.