Code Monkey home page Code Monkey logo

Comments (5)

StephanBijzitter avatar StephanBijzitter commented on June 15, 2024

Just noticed approval is only done when a pull request is opened or re-opened. So I guess it would also need to run on pull request updating.

from autoapproval.

dkhmelenko avatar dkhmelenko commented on June 15, 2024

Thanks for reporting the issue.

Can you please provide a better use case for the problem? I didn't really understand this sentence.

Because of this behaviour, rebasing a branch results in the branch not being approved anymore, while still having the label.

from autoapproval.

StephanBijzitter avatar StephanBijzitter commented on June 15, 2024

Sure!

So I use Dependabot and it creates a several pull requests at the same time. Autoapproval approves all those pull requests, and so whichever pull request finishes the build process first is merged automatically by Dependabot.

However, after merging that first pull request, all other pull requests are updated with master through rebasing, which removes all reviews from the pull requests.

Dependabot is then unable to merge, because there's no approval anymore and Autoapproval is not re-approving the updated pull request, so then I have to manually approve it.

from autoapproval.

dkhmelenko avatar dkhmelenko commented on June 15, 2024

Thanks for your explanation! 👍
This is a valid concern. But I doubt that would work because if PR contains the labels of the approved PR, it will not be approved one more time. Being assumed the following:

  • if PR contains the labels of the approved PR it will be considered as already approved.

from autoapproval.

dkhmelenko avatar dkhmelenko commented on June 15, 2024

I know that if you update the branch from GitHub interface, it will not reset the review. Maybe you can consider that?
Another thing which could work for you is removing the label of the approved PR, so that it could be approved one more time.

from autoapproval.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.