Hi!
If I understand correctly, the pre-merge merge checks can only be triggered by these 2 events :
This would mean that if I create a custom merge check that does something like checking all comments, or checking the pull rerquest title, then my merge check would not re-run after the title was edited, or a new comment is added etc. If I wanted the merge check to run again, I would have to manually click the 'rerun' button (if last run was rejected)
And if the previous merge check had passed, there is no 'rerun' button either, so if as a user, I wanted to re-run it, I'd have to push a change or unapprove/re-approve to force the merge check to re-evaluate
Am I currently missing something, or is there another way to make custom merge checks re-run?
Also are there any plans to add more triggers in the near future, like 'on-pull-request-rescoped', 'on-pull-request-comment-activity' etc?
Regards
Hi @Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__ & @Aron Gombas [Midori] - a few points on this:
@Edmund Munday two additions for the "wish list":
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edmund, thank you for your answer, and updating BCLOUD-23168!
You're right, `on-merge` would currently be the best alternative for what I had in mind. And I can imagine, you cannot create a 'pre-merge' trigger, you would need to create a separate trigger for each possible pull-request-related event. If I come up with more events or use cases, I'll share.
But generally speaking, I had the impression that custom merge checks would give a feedback to the user when visiting the pull request page, and before they click the 'merge button', I think most users coming from Bitbucket Server would expect this behaviour
Regards,
Yannis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__ Few weeks ago I asked for roughly the same that you mentioned here. There was a public feature request (a Jira issue) created from my suggestions.
Do you want me to look it up for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Aron, I believe https://jira.atlassian.com/browse/BCLOUD-23168 is the jira you're talking about. I will be watching for it!
What I had in mind was a complete list of all triggers that are possible by using custom merge checks and the bitbucket api, not a specific trigger.
I think the title, description and other metadata do not cover all the possible triggers, for example we'd need more triggers like comment or reply added, changes in reviewers, target branch, etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that is the one!
I agree, it could cover the change of other fields, too, or maybe there could be specialized triggers for comments or reviewers.
I encourage you to add this to that issue, or open a separate feature request linked to the existing one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.