Skip to content

Fix label serialisation in issue and note hooks

Sean McGivern requested to merge fix-labels-in-hooks into master

What does this MR do?

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29384 was not my greatest review. We were not calling hook_attrs on the labels correctly. Specs were passing because the issues under test did not have any labels! I also fixed the issues hook while I was there as it had a similar issue.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63473.

Merge request reports