Skip to content

Fix webhook test send wrong object kind for tag_push

What does this MR do and why?

Connected to Web Hook Test "Tag Push Event" sends the wrong ... (#277356 - closed)

Previously, test event for tag_push_event sending incorrect object_kind, ref and event_name .

To address this, I have modified build_sample to have a is_tag parameter for make it able to identify is it tag_push_event.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Setup webhook for project (I'm using RequestBin for webhook receiver)

  2. Click Test -> Tag push events

    Screenshot 2567-03-22 at 12.49.14.png

  3. You will see the correct version of payload

    Screenshot 2567-03-22 at 12.50.38.png

Merge request reports