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

added check to ensure there are approvals #4152

Merged
merged 5 commits into from
Apr 16, 2024

Conversation

Bullrich
Copy link
Contributor

Follow up to #3431

Added an api check to verify that there are pre-existing approvals in the PR before dismissing reviews and posting a message

Added an api check to verify that there are pre-existing approvals in the PR before dismissing reviews
@Bullrich Bullrich requested a review from mordamax April 16, 2024 08:57
@Bullrich Bullrich self-assigned this Apr 16, 2024
@Bullrich Bullrich requested review from a team as code owners April 16, 2024 08:57
@Bullrich Bullrich added the R0-silent Changes should not be mentioned in any release notes label Apr 16, 2024
@Bullrich Bullrich requested a review from bkchr April 16, 2024 09:01
@github-actions github-actions bot requested a review from alvicsam April 16, 2024 09:36
Copy link

Review required! Latest push from author must always be reviewed

@Bullrich Bullrich enabled auto-merge April 16, 2024 09:53
@Bullrich Bullrich added this pull request to the merge queue Apr 16, 2024
Merged via the queue into master with commit dd5dbf3 Apr 16, 2024
131 of 137 checks passed
@Bullrich Bullrich deleted the required-reviewers/fix-lack-of-approvals branch April 16, 2024 10:31
Bullrich added a commit to Bullrich/polkadot-fellows-runtimes that referenced this pull request Apr 16, 2024
Bullrich added a commit to Bullrich/polkadot-fellows-runtimes that referenced this pull request Apr 16, 2024
@bkchr
Copy link
Member

bkchr commented Apr 16, 2024

Thank you @Bullrich

Bullrich added a commit to Bullrich/polkadot-fellows-runtimes that referenced this pull request May 7, 2024
fellowship-merge-bot bot pushed a commit to polkadot-fellows/runtimes that referenced this pull request May 7, 2024
Added a script that will require new reviews in a PR if the author (who
is not a fellow) pushed a new commit.

Resolves #60

Copied from paritytech/polkadot-sdk#4152 and
paritytech/polkadot-sdk#3431


## Summary
Added a new step in the action that triggers review bot to stop approval
from new pushes.

This step works in the following way:
- If the **author of the PR**, who **is not** a fellow, pushed a new
commit then:
- Review-Trigger requests new reviews from the reviewers and fails.

It *does not dismiss reviews*. It simply request them again, but they
will still be available.

This way, if the author changed something in the code, they will still
need to have this latest change approved to stop them from uploading
malicious code.

- [x] Does not require a CHANGELOG entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants