Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for reviewer changes in merge requests #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -12,6 +12,9 @@
{% elif changes.assignees %}
{{ 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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants