Replies: 2 comments 11 replies
-
(as a side note: typing |
Beta Was this translation helpful? Give feedback.
-
It does. What makes you think it doesn't?
Yes, you're right; it's edge-triggered indeed (I never heard that expression but I'll be sure to include it in the docs 😄). |
Beta Was this translation helpful? Give feedback.
-
I'm having a hard time understanding what triggers rules evaluation and what triggers actions.
The only bit of information about that I was able to find is there: https://docs.mergify.com/workflow/writing-your-first-rule/#understanding-mergify-rule-conclusions
I think that "whenever a pull request is updated or modified" is a bit too vague. For example, that does not include edits of the PR title or description. It would be nice to have a list of things that trigger rules evaluation in the documentation.
Actions triggering is even more confusing. I tried a following configuration:
I created a PR. Then, I pushed a commit to the base branch to create a merge conflict. The comment was added to the PR. So far, so good. But then I wasn't able to make this comment be added again by pushing a commit to either the base branch or PR branch. It seems like rules are evaluated on pushes to the PR branch, but actions are executed only when rules previously evaluated to
false
and now evaluate totrue
. In other words, it is an edge-triggering system, not state-triggering. Is it true? Is it true for all rules, conditions, and actions? Again, it would be nice to have it documented.Beta Was this translation helpful? Give feedback.
All reactions