Skip to content

Commit

Permalink
feat: add actions for changing incident state in Slack integration
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Mar 4, 2025
1 parent b6a4bf2 commit 54aa8cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Common/Server/Utils/Workspace/Slack/Actions/Incident.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,14 @@ export default class SlackIncidentActions {
return await this.executeOnCallPolicy(data);
}

if(actionType === SlackActionType.ViewChangeIncidentState) {
return await this.viewChangeIncidentState(data);
}

if(actionType === SlackActionType.SubmitChangeIncidentState) {
return await this.submitChangeIncidentState(data);
}

if (actionType === SlackActionType.ViewIncident) {
// do nothing. This is just a view incident action.
// clear response.
Expand Down
3 changes: 2 additions & 1 deletion Common/Server/Utils/Workspace/Slack/app-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"channels:read",
"channels:write.invites",
"channels:write.topic",
"chat:write"
"chat:write",
"users:read"
]
}
},
Expand Down

0 comments on commit 54aa8cf

Please sign in to comment.