Tracking Agent docs
Tracking Agent Slack notifications: connect a channel
Connect a Slack channel on the Setup page with Add to Slack, and the Tracking Agent posts there when a pull request needs someone or a run fails. It also posts when an audit or a verification finishes, and when a pull request merges with its tracking. Each message links straight to the screen where you act. Anyone in the workspace can add, change and remove channels.
How do I connect a Slack channel to the Tracking Agent?
From the Notifications tab on the Setup page. Slack's own install screen picks the Slack workspace and the channel, so there's nothing to copy or paste.
- In Datalyze, open Setup, go to the Notifications tab and press Add to Slack.
- On Slack's screen, pick the Slack workspace and the channel, public or private, and press Allow.
- Slack sends you back to Setup with the channel connected, and Datalyze posts a test message there to show it works.
Each Add to Slack connects one channel. Once a channel is connected, the tab shows it in place of the Add to Slack button; to switch channels, remove it and add the new one. Slack explains what the app's two permissions allow: incoming-webhook posts to the one channel you pick, and chat:write is the bot permission Slack's install screen shows with it. Datalyze posts only to the channel you picked.
What does the Tracking Agent post to Slack?
One message per moment, in four groups you can switch on or off for each channel. A new channel has all four on.
| Group | Posts when | The button opens |
|---|---|---|
| Needs a person | A pull request's tracking needs approving or a decision, or its build stopped part-way; your first tracking plan is ready to merge; an audit fix needs a decision or is ready to merge; a verification has waited 2 minutes for your answer | The pull request, audit or verification screen |
| Failed | An audit, review, build, fix, publish or Sheet run failed, timed out or couldn't start; a verification failed | The screen in Datalyze, plus the GitHub log |
| Finished | An audit finished, with its health, findings and questions; a verification finished, with how many events passed and how many have problems | The audit screen or the verification results |
| Merged | A pull request merged with its tracking; an audit fix merged, completing the audit | The pull request or audit screen |
Nothing posts when a run starts, when a review finds nothing to track (most pull requests), when someone stops a verification, or when a pull request is closed without merging. A message about a pull request also links to it on GitHub.
How do I choose which repos and updates a Slack channel gets?
Open the Notifications tab on Setup. The channel's switches save as you change them.
- What posts here: the four groups above, each on or off.
- Repos: All repos, including ones linked later, or Only these, from the workspace's repos that have the Datalyze App.
- Send test posts a test message, to check the channel still works.
- Remove from Slack stops posting there, and Add to Slack shows again. When no other channel connected to Datalyze uses that Slack workspace, Datalyze also gives back its access to it.
When several Datalyze workspaces link the same repo, each workspace's channels get its messages once.
What happens when a Slack message can't be posted?
Datalyze tries again after 1, 5 and 30 minutes, then gives up on that message. A Slack outage never holds up a pull request, a run or a page.
When Slack says the channel's connection was removed (someone removed the app in Slack, or archived the channel), Datalyze stops posting there and Setup shows "Stopped working" on the channel. Press Add to Slack again to reconnect it.
When more than 5 updates are due for one channel within a minute, the first 5 post and the rest are folded into one "And n more Tracking Agent updates" message, so a busy repo can't flood the channel.
What does Datalyze keep about Slack notifications?
The facts of each update, never the message text. Datalyze stores the repo id, pull request or run number, state, counts and a reason code, and writes the message when it posts it. It reads the repo and pull request names from GitHub at that moment and doesn't save them. Updates are deleted after 30 days.
The channel's webhook URL and Slack token are encrypted on Datalyze's server and never sent to your browser or written to a log. Your data and keys covers everything else Datalyze sees.
Questions about Slack notifications
Does the Tracking Agent post to Discord or Microsoft Teams?
No. Slack is the only channel today.
Can I post to a private Slack channel?
Yes. Pick it on Slack's install screen. Datalyze posts to the channel you pick without being invited to it.
Why did a pull request post nothing?
Most pull requests need no tracking change, and a review that finds nothing posts nothing. Otherwise, check that the repo has the Datalyze App and that the channel's Repos and What posts here switches include it.
Can I act from Slack without opening Datalyze?
Not yet. Each message's button opens the screen where you approve, answer or merge. For help deciding what to track, our analytics setup service works through it with you.