Add support for surfacing a link to the branch or tag name in push message…
What does this MR do?
In this MR, we append Git branch or tag name info to the activity titles used in Chat message push notifications. This allows chat services like MS Teams to render push messages with clickable links back to the relevant Git branch or tag name.
Summary of Changes
- To add this feature, I updated the new_branch_message, removed_branch_message, and push_message helpers in push_message.rb so they:
- Can be used by the activity method (indirectly) through a helper called action_message(). This method invokes the message helpers with a "short" named parameter set to true. With this flag set, the pre-existing message helper methods return info applicable to only activity titles.
- push_message_spec.rb unit tests updated to reflect updated activity message format. Added an additional spec to also verify deletion of tag names.
What are the relevant issue numbers?
Closes #51959 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.
Edited by Tony Castrogiovanni