github-tools / github-tools/github

Issues with protected branches: Github is confusing Pull Requests review and push protection

未關閉
#473 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.8k
分支
809
PR 合併指標
30 天內沒有已合併 PR

描述

As a Github user, i want to request review for Pull Requests, but, i want to able push on branch.

Setup:
1) Create a branch
2) Protect it, asking review for Pull Requests
3) Do not protect push

Expected Behaviour:
1) Pull Requests require review
2) Push is open on following branch

Actual Scenario:
1) Pull Requests is requiring reviews
2) Got following error while pushing:

```
ramon@Ramons-Mac-mini:~/GIT/SAT-ROBOT (master)$ git push robot master
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 295 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: At least one approved review is required by reviewers with write access.
To https://github.com/SymphonyOSF/SAT-Robot.git
! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'https://github.com/SymphonyOSF/SAT-Robot.git'
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by reproducing the listed protected-branch setup and compare the expected behavior with the GH006 push rejection. The issue mentions no repository file, test, or entry point, so first determine whether the behavior belongs in this GitHub API wrapper or must be clarified as an external GitHub behavior. Done would require a confirmed scope and an actionable change or resolution.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github
領域
devtools
Issue 類型
缺陷
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。