Skip to content

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

  1. 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.
  1. 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?

Edited by Tony Castrogiovanni

Merge request reports