Update a GitHub issue to closed from Slack
BotsArtificial IntelligenceSales EnablementDeveloper Tool
What it does
When someone clicks the Close issue button in Slack, this automation closes that issue in GitHub and replies in the same conversation. If the update fails, it replies with the error instead.
Who it's for
Engineering teams who want to close a GitHub issue from Slack without opening GitHub.
Apps used
How teams use this
Close issues from the engineering channel
Click Close issue on the details already in the channel, and the GitHub issue closes without anyone leaving Slack. Nothing else has to change for the team to use it.
Let support close a resolved issue
Use the same button in the support channel once a customer problem is resolved, so the GitHub issue does not stay open. The flow stays the same and only the channel changes.
Confirm the close for the on-call lead
Send the confirmation reply to the on-call channel so the lead sees which issues were closed during the shift. The flow stays the same and only the channel changes.
Add a closing note on the issue
Add a short GitHub comment when the issue is closed, so the reason is recorded next to the state change. That is the only extra piece this setup needs.
How it works
- Start from the Close button. Start when someone clicks the Close issue button on the GitHub details already posted in Slack.
- Close the issue in GitHub. Update that GitHub issue to closed, using the issue named on the button that was clicked.
- Confirm the close in Slack. Reply in the same Slack conversation so everyone there can see that the issue is now closed.
- Reply when the update fails. If GitHub returns an error, post that error instead so the issue can be closed another way.