required_approving_review_count is not returned
See original GitHub issueBug Report
Current Behavior
required_approving_review_count
is not returned by context.github.repos.getProtectedBranchPullRequestReviewEnforcement
or context.github.repos.getBranchProtection
const settings = await context.github.repos.getBranchProtection(context.repo({branch: 'master'}))
context.log(settings.data)
Expected behavior/code
required_approving_review_count
is returned a part of branch protection setting - required_pull_request_reviews
.
Environment
- Probot version(s): v7.5.3
- Node/npm version: Node 10.15.0/npm 6.4.1
- OS: OSX 10.14.5
- Github: GHE 2.16.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Using GraphQL in a GitHub Action does not return anything for ...
In trying to get the count of required reviews it always returns empty. I have run this exact query in the GitHub GraphQL...
Read more >Using GraphQL in a GitHub Action does not ... - Stack Overflow
In trying to get the count of required reviews it always returns nothing. I have run this exact query in the GitHub GraphQL...
Read more >githubCheckBranchProtection - Project "Piper"
requiredApprovingReviewCount ¶. Check if 'Require pull request reviews before merging' option is set with at least the defined number of reviewers in the...
Read more >Scorecard: clients/githubrepo/branches.go - Fossies
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Go source code syntax highlighting...
Read more >github - Go Packages
NewDryRunClientWithFields creates a new client that will not perform mutating actions such as setting statuses or commenting, but it will still query GitHub...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Never mind. After reading the docs more closely, I realized that you need to include an
Accept: application/vnd.github.luke-cage-preview+json
request header to see that field.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.