Skip to content

Commit e912bb8

Browse files
Merge pull request #425 from tnierman/osd-29424
OSD-29424 - Bugfix to use `pagerdutyTitlePrefix` instead of hardcoded string when updating incident title
2 parents c979ba5 + e1e9a04 commit e912bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cadctl/cmd/investigate/investigate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func updateIncidentTitle(pdClient *pagerduty.SdkClient) error {
243243
if strings.Contains(currentTitle, pagerdutyTitlePrefix) {
244244
return nil
245245
}
246-
newTitle := fmt.Sprintf("[CAD Investigated] %s", currentTitle)
246+
newTitle := fmt.Sprintf("%s %s", pagerdutyTitlePrefix, currentTitle)
247247
err := pdClient.UpdateIncidentTitle(newTitle)
248248
if err != nil {
249249
return fmt.Errorf("failed to update PagerDuty incident title: %w", err)

0 commit comments

Comments
 (0)