Git Product home page Git Product logo

Comments (5)

vschettino avatar vschettino commented on September 14, 2024

Hey @kminehart I don't think there is a "Approved" flag in the Pull Request object. Maybe we could add a similar feature using the review state?

from github-datasource.

maximbaz avatar maximbaz commented on September 14, 2024

That seems to be what Github staff is suggesting:

A pull request is approved when there is one or more reviews with an APPROVED state. So you would use the reviews connection, filter by APPROVED, and check if the totalCount is greater than 0.

from github-datasource.

kminehart avatar kminehart commented on September 14, 2024

interesting. That shouldn't be too hard. But probably not easy enough to be a "good first issue" :P

I'll take a look this weekend.

from github-datasource.

vschettino avatar vschettino commented on September 14, 2024

I don't know guys, there are ways to configure how many approvals are required for merge, or if new commits needs a new approval for merge:

In the Required approving reviews drop-down menu, select the number of approving reviews you'd like to require on the branch.

also:

Optionally, select Dismiss stale pull request approvals when new commits are pushed. This dismisses a pull request approval review when a code-modifying commit is pushed to the branch.

Approval count is a good info, though!

from github-datasource.

maximbaz avatar maximbaz commented on September 14, 2024

Good point 🤔 I agree we probably shouldn't make any assumptions and should just return counts, maybe a count for each of the possible approval states, since you'd possibly would query all of them anyway?

from github-datasource.

Related Issues (20)

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.