Skip to content

User can add more commits to PR after gaining approval #8439

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

Closed
1 of 7 tasks
browcio opened this issue Oct 9, 2019 · 3 comments
Closed
1 of 7 tasks

User can add more commits to PR after gaining approval #8439

browcio opened this issue Oct 9, 2019 · 3 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@browcio
Copy link

browcio commented Oct 9, 2019

Description

We observe that user can add more commits to existing approved PR. After that PR remains approved and can be merged despite new commits not being reviewed.

Steps to reproduce:

  1. fork repo
  2. commit to fork
  3. create PR
  4. get your PR approved
  5. add more commits to fork
  6. merge

This way only first commit was reviewed but all commits can be merged. I suspect that gitea should at least inform that some commits were not reviewed.

@lunny lunny added the type/enhancement An improvement of existing functionality label Oct 9, 2019
@davidsvantesson
Copy link
Contributor

davidsvantesson commented Oct 9, 2019

I think this should be the standard behaviour, but a new setting for branch protection could be added. In Github this is called "Dismiss stale pull request approvals when new commits are pushed."

@jolheiser
Copy link
Member

Similar, possible duplicate of #5997

@lafriks
Copy link
Member

lafriks commented Oct 9, 2019

Yes, duplicate of #5997

@lafriks lafriks closed this as completed Oct 9, 2019
@lunny lunny added issue/duplicate The issue has already been reported. and removed type/enhancement An improvement of existing functionality labels Oct 10, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

5 participants