merge request event sending all the time
Created by: djdevin
I have a post-merge request hook set up in Gitlab that responds to merge request actions. Once a request has been merged I get the notification correctly, however every time you view the merge request after that, you get another notification.
There's no way to determine if the request was merged that instant or if it's just notifying me of something.
Basically I keep getting this data pushed to the web hook, over and over
stdClass Object
(
[object_kind] => merge_request
[object_attributes] => stdClass Object
(
[id] => 127
[target_branch] => release/7.4.0
[source_branch] => feature/mantis-20158-updating-max-children-js
[source_project_id] => 28
[author_id] => 5
[assignee_id] => 3
[title] => Feature/mantis 20158 updating max children js
[created_at] => 2014-08-01 19:03:17 UTC
[updated_at] => 2014-08-08 16:59:53 UTC
[milestone_id] => 1
[state] => merged
[merge_status] => can_be_merged
[target_project_id] => 28
[iid] => 110
[description] =>
[position] => 0
)
)
stdClass Object
(
[object_kind] => merge_request
[object_attributes] => stdClass Object
(
[id] => 127
[target_branch] => release/7.4.0
[source_branch] => feature/mantis-20158-updating-max-children-js
[source_project_id] => 28
[author_id] => 5
[assignee_id] =>
[title] => Feature/mantis 20158 updating max children js
[created_at] => 2014-08-01 19:03:17 UTC
[updated_at] => 2014-08-08 16:58:35 UTC
[milestone_id] => 1
[state] => merged
[merge_status] => can_be_merged
[target_project_id] => 28
[iid] => 110
[description] =>
[position] => 0
)
)