You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create bot for backporting PRs to released distributions on maintainer request, other automation needs #2593
I've seen this in action in other ROS 2 core repos, I'd like to see if that would make sense here as well to make maintenance of this repo easier for N distributions at once.
Potentially also a bot for incrementing up the package.xml files and blooming it up?
changed the title [-]Create bot for backporting PRs to released distributions on maintainer request[/-][+]Create bot for backporting PRs to released distributions on maintainer request, other automation needs[/+]on Oct 14, 2021
Now any time people nuke my required PR template fields, it'll give them back to me in a comment, if conflicts tell them, if builds fail tell them, if they open PRs in inappropriate branches tells them, etc
That is really cool. We saw the request for enabling it on the org and we were also thinking of experimenting with it. In addition, we have a much more lightweight bot we are trying to use to create issues for backports.
Moved this over here. Also, this means github should notify me of changes to this issue.
I'm not using Zenhub, to be honest, I have no idea how or when that was setup. If I were to guess, it was hooked into Intel's Jira system or similar when they were just starting Nav2.
I mostly did this to try to see if I could make backporting easier so I could support more older branches in the future. But the comment tool in mergify is by far the most useful I think. I can make it trigger comments for common situations I'd normally have to comment back to tell someone to fix something. E.g.
If in conflict -> @ them to fix
If build fails (not tests) -> @ them to fix and give general advise about how to handle
If they removed my important PR template for making sure we keep quality up, give it to them anyway in a comment and @ me to let me know
If anyone but me and mergify opens a PR onto older branches, tell them not to and target to main for later backport
But then also the backport tools. I'm obviously just now setting this up and trying it out, so I can't give you much feedback at the moment, but I think these comment rules will help make my life alot easier with new contributors.
I wish I could also get comment to be able to tell if this is a first-time contributor or not for some additional messages. Also, to hook into Circle so when there is a test failure, it gives me a report in a comment about which failed specifically so I don't need to go and check. We have some flaky tests I know when they fail is not a problem, but others that are actually issues.
Same thing mostly. You'd just have automations for saying modifications to particular directories trigger XYZ to be added as a reviewer. I don't think it matters much which, but personally I like to minimize tools so if I was using mergify, I'd use that instead.
Activity
SteveMacenski commentedon Oct 12, 2021
https://github.com/ros2/ros2_documentation/blob/rolling/.mergify.yml
https://docs.mergify.io/
https://mergify.io/features/backports
https://docs.mergify.io/actions/delete_head_branch/ -> delete branch so I don't have to
SteveMacenski commentedon Oct 14, 2021
https://docs.mergify.io/actions/comment/
Attribute options: https://docs.mergify.io/conditions/#attributes
[-]Create bot for backporting PRs to released distributions on maintainer request[/-][+]Create bot for backporting PRs to released distributions on maintainer request, other automation needs[/+]tylerjw commentedon Oct 15, 2021
That is really cool. We saw the request for enabling it on the org and we were also thinking of experimenting with it. In addition, we have a much more lightweight bot we are trying to use to create issues for backports.
Moved this over here. Also, this means github should notify me of changes to this issue.
tylerjw commentedon Oct 15, 2021
I noticed you are also using ZenHub. We recently just started trying to use it to organize work on MoveIt. Do you have any advice/feedback on ZenHub?
Sorry for the tangent, I'll put this in a separate issue if you'd prefer.
SteveMacenski commentedon Oct 15, 2021
I'm not using Zenhub, to be honest, I have no idea how or when that was setup. If I were to guess, it was hooked into Intel's Jira system or similar when they were just starting Nav2.
I mostly did this to try to see if I could make backporting easier so I could support more older branches in the future. But the comment tool in mergify is by far the most useful I think. I can make it trigger comments for common situations I'd normally have to comment back to tell someone to fix something. E.g.
mainfor later backportBut then also the backport tools. I'm obviously just now setting this up and trying it out, so I can't give you much feedback at the moment, but I think these comment rules will help make my life alot easier with new contributors.
I wish I could also get comment to be able to tell if this is a first-time contributor or not for some additional messages. Also, to hook into Circle so when there is a test failure, it gives me a report in a comment about which failed specifically so I don't need to go and check. We have some flaky tests I know when they fail is not a problem, but others that are actually issues.
SteveMacenski commentedon Oct 15, 2021
oooh here's another good one: if you mess with a particular package, automatically request a review from a particular responsible party
tylerjw commentedon Oct 15, 2021
We are currently using github codeownsers for that. documentation link. Is there something mergify does that is better than that?
SteveMacenski commentedon Oct 15, 2021
Same thing mostly. You'd just have automations for saying modifications to particular directories trigger XYZ to be added as a reviewer. I don't think it matters much which, but personally I like to minimize tools so if I was using mergify, I'd use that instead.
SteveMacenski commentedon Oct 15, 2021
https://docs.mergify.io/conditions/#attributes this is the set of things you have access to to mess with. There'd be a few more automations I'd add if I knew "who" this contributor was (new, contributed < N, contributed > N) like add exceptions for power users or welcome messages for newbies.
tylerjw commentedon Oct 15, 2021
Cool. I will look into using some of these with MoveIt ( I might just copy some of what you are already doing, they look really nice ).
SteveMacenski commentedon Oct 15, 2021
Let me know if you add any more that might be useful. These were just ones off the top of my head based on things I regularly have to tell people