Fix slack declare incident label (#4007)

# What this PR does
Make label consistent with casing in web ui

## Which issue(s) this PR fixes
#2831

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
This commit is contained in:
Michael Derynck 2024-03-04 18:26:16 -07:00 committed by GitHub
parent d938b52d80
commit a466e79bc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -299,11 +299,11 @@ class AlertGroupSlackRenderer(AlertGroupBaseRenderer):
resolution_notes_button["text"]["text"] = "Add Resolution notes"
buttons.append(resolution_notes_button)
# Declare Incident button
# Declare incident button
if self.alert_group.channel.organization.is_grafana_incident_enabled:
incident_button = {
"type": "button",
"text": {"type": "plain_text", "text": ":fire: Declare Incident", "emoji": True},
"text": {"type": "plain_text", "text": ":fire: Declare incident", "emoji": True},
"value": "declare_incident",
"url": self.alert_group.declare_incident_link,
"action_id": ScenarioStep.get_step("declare_incident", "DeclareIncidentStep").routing_uid(),