Skip to content

Conversation

lordievader
Copy link

The merge request event webhook is called for reviwers updates, however this is ignored by the GitlabChanges class. Therefore these updates are not forwarded to Matrix. By adding the reviewers section to both the GitlabChanges and to the issue_update template (which is used for merge request updates) the bot reports about changes in reviewers.

{{ assignee_changes(changes.assignees.added, changes.assignees.removed) }}
{{ issue_or_merge_link(object_attributes) }}
{% elif changes.reviewers %}
{{ assignee_changes(changes.reviewers.added, changes.reviewers.removed) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have a new macro, requesting a review and assigning are different things

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a reviewers_changes macro.

The merge request event webhook is called for reviwers updates, however
this is ignored by the GitlabChanges class. Therefore these updates are
not forwarded to Matrix. By adding the reviewers section to both the
GitlabChanges and to the issue_update template (which is used for merge
request updates) the bot reports about changes in reviewers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants