Repo Gardening / Slack messages: detect when a message cannot be delivered #40366
Labels
[Action] Repo Gardening
Github Action: manage PR and issues in your Open Source project
[Pri] Normal
[Type] Task
We currently do not do anything special with our requests to post Slack messages:
jetpack/projects/github-actions/repo-gardening/src/utils/slack/send-slack-message.js
Line 91 in 199f506
jetpack/projects/github-actions/repo-gardening/src/tasks/flag-oss/index.js
Lines 47 to 51 in befb138
Since we're posting to more and more channels, it would be nice to detect when a request has failed (for example because a channel has been archived) and warn the team in charge of the Repo Gardening action so they can update the channels where messages get posted.
Slack's API surfaces that info quite nicely:
https://api.slack.com/methods/chat.postMessage
is_archived
Related conversation:
p1732723599754299-slack-C05KLDWRGAX
The text was updated successfully, but these errors were encountered: