-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge rights #41
Comments
@rzadp maybe you can help? |
It should be possible to have the GH action automatically perform the merge on the approved event. But it maybe a good idea to require an explicitly merge command to trigger the merge. |
Yeah, we could havve used |
Why not use a auto merge? We can do something simple as:
I would be happy taking this task if you like my proposal. |
I like the idea! Just wanted to have the step on deciding "when to enable auto merge" to be manual. Please do it @Bullrich :) |
This sounds great to me. @Bullrich Just FYI it looks like enabling the auto-merge on a PR is not possible with the Github REST API, but it's possible with the GraphQL API. |
I guess we will also need to be able to cancel auto merge? But then the permission become a bit unclear. |
I would say we give the same people that can do |
I looked into it, it should work without any problems, unless that the GraphQL API requires weird permissions (let's hope it doesn't).
@bkchr suggestion of a cancel command sounds good.
Would it make sense to enable the following branch protection rule? I believe that keeping it active is a good idea as, what you need, is not the user wanting to merge the changes, but the changes (including new changes) to be reviewed. It also makes the process more smooth I.E.:
With the auto disable feature:
In other companies where I worked (and even in the Polkadot-SDK repository) I have seen the |
I have some nice progress. It is not difficult to achieve 🥳 I need to clean up the code, but I'll have a first version ready soon. |
The application is in development. Find the related tickets here: |
@bkchr a couple of questions to clarify functionality:
I currently set it up to be allowed by users who belong to the org Should I also add in the list of authorized users the users who are part of the fellows? Or being a member of the org suffices the requirement? |
Just to challenge the idea. Maybe allow the author to do GitHub-native automatic merge, just make the fellowship review (via review-bot) the requirement? Do we want to have two different fellowship steps, where it could be just one? |
Created base of the bot, with the ability to comment on a PR and to enable/disable auto-merge. You can find a working example in paritytech-stg#1 This resolves #1 The bot can enable auto-merge, disable it and show the available commands. If the user is not a member of the org or the author of the PR, the bot will not work. This is to stop external parties of enabling/disabling the bot. This is a required step to solve polkadot-fellows/runtimes#41 --------- Co-authored-by: Przemek Rzad <[email protected]>
Ohh, "block author" 🤦 Too much blockchain for me :P Yes, I meant pr author 🙈
Not the users of the
But then only the pr author can do this. And can we even allow external people to the "polkadot-fellows" org to do this? |
For some reason, I was sure that that's the case, but now I've doublechecked the docs, and apparently not... |
Added two GitHub actions to enable auto-merge in the repository. This resolves polkadot-fellows#41 ## [Auto-Merge-Bot](https://github.com/paritytech/auto-merge-bot) This bot allows _public_ members of the organization and the author of the PR to enable/disable auto-merge in a PR. It also has a field for a list of users who are also allowed to trigger the bot. For that we have the second action.
PR has been created: #55 |
* added github action to enable auto-merge in PRs Added two GitHub actions to enable auto-merge in the repository. This resolves #41 ## [Auto-Merge-Bot](https://github.com/paritytech/auto-merge-bot) This bot allows _public_ members of the organization and the author of the PR to enable/disable auto-merge in a PR. It also has a field for a list of users who are also allowed to trigger the bot. For that we have the second action. * added step to allow fellows to trigger the bot ## [Get Fellows Action](https://github.com/paritytech/get-fellows-action) This action gets the fellows from the chain data and it extracts their GitHub handles. This handles are then input into the `auto-merge-bot` action as a list of users who are allowed to trigger the bot. * added a pull request template I have also updated the Pull Request template to mention the existence of this bot to new contributors. * added mention of the bot in the readme Updated the readme to contain information about the bot, how to use it, and a link to its documentation
We have support for giving approval rights to fellowship members. Now we need to have merge rights. IMO every fellowship member or the block author should be able to write "bot merge" into a pull request comment. If all CI checks are green, the pull request should be merged to master.
The text was updated successfully, but these errors were encountered: