Skip to content
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

RFC: switch from pullapprove to native github process #138

Closed
kolyshkin opened this issue Feb 6, 2021 · 9 comments
Closed

RFC: switch from pullapprove to native github process #138

kolyshkin opened this issue Feb 6, 2021 · 9 comments

Comments

@kolyshkin
Copy link
Collaborator

This is a proposal to get rid of pullapprove for this repository.

Pullappove was probably added when github did not have its own mechanism to do LGTMs. For quite some time, such a mechanism exists: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/approving-a-pull-request-with-required-reviews

There is also a mechanism to require a certain number of LGTMs before it is possible to merge a PR: https://help.github.com/en/github/administering-a-repository/about-required-reviews-for-pull-requests, although I don't think it is necessary, since all the moderators here are able to count how many green check marks are there in the top left corner of a PR page.

So, unless I am missing something, there is no value that pullapprove adds to what github has.

Please let me know what you think.

Similar discussions: opencontainers/runc#2388, opencontainers/runtime-spec#1057

@rhatdan
Copy link
Collaborator

rhatdan commented Feb 7, 2021

SGTM

@thaJeztah
Copy link
Member

SGTM 👍

@thaJeztah
Copy link
Member

I think it's ok to configure "min number of approvals"; maintainers can still "use the force" if really needed.

@kolyshkin
Copy link
Collaborator Author

@giuseppe WDYT?

@kolyshkin
Copy link
Collaborator Author

copy-paste from @thaJeztah (#137 (comment)):

I also suggest to disable the "squash and merge" and "rebase and merge" options (mostly personal preference, as they clobber the contributor's commits, and with that, their GPG signing)

I agree.

We could try enabling the "auto merge" option that's in beta (merge after required checks complete)

Haven't tried that yet. The only potential downside I see is PR authors should be more careful about marking their PR as draft while they still work on them -- but that's really minor.

@thaJeztah
Copy link
Member

Haven't tried that yet. The only potential downside I see is PR authors should be more careful about marking their PR as draft while they still work on them -- but that's really minor.

The auto merge still requires a reviewer to click the "(auto)merge" button, but they can do so before CI completes. GitHub will then merge once all required checks pass.

One possible caveat is pressing the button after CI passed, but before a second reviewer LGTM'd. I think the "second review pending" also qualifies as "required check", so merge would happen directly once the reviewer approved the PR. Technically, that's correct, but could be surprising.

Still, I think it's a nice feature that may be worth a try (although; probably more useful on repositories with a long CI time, saving you the "wait for CI to pass, and come back to click "merge")

@mrunalp
Copy link
Contributor

mrunalp commented Feb 12, 2021

Sounds good 👍

@kolyshkin
Copy link
Collaborator Author

Implemented. Let me know if there are some rough edges.

kolyshkin added a commit to kolyshkin/selinux that referenced this issue Feb 12, 2021
We have switch to native github approval mechanism
(opencontainers#138),
so remove this.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin
Copy link
Collaborator Author

I also suggest to disable the "squash and merge" and "rebase and merge" options (mostly personal preference, as they clobber the contributor's commits, and with that, their GPG signing)

Done this, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants