# GitHub 新增仓库设置：精准管控 Pull Request

Original title: New repository settings for configuring pull request access

> Hacker News story 49975158 · language: zh · submitted 2026-10-06
> Web version: https://zeli.app/zh/story/49975158
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 46 · by [Bluestein](<https://news.ycombinator.com/user?id=Bluestein>) · 💬 24
[original](<https://github.blog/changelog/2026-02-13-new-repository-settings-for-configuring-pull-request-access/>) · [HN discussion](<https://news.ycombinator.com/item?id=49975158>)

## Summary

GitHub 为仓库维护者带来了更强大的控制权，新增了两项关键设置来管理 Pull Request 的访问权限。现在，你可以像关闭 Wiki 或 Issues 一样，直接在 Settings 中彻底禁用 Pull Request，让仓库变为只读模式，非常适合镜像仓库或仅需展示代码的项目。如果你仍希望保留协作流程但需要更严格的管控，也可以选择将创建 Pull Request 的权限限制为仅 Collaborators（拥有写权限的协作者）。这一功能已对所有公共和私有仓库开放，只需在 Settings > General > Features 中即可配置。虽然移动端应用的全界面更新即将上线，但核心功能现已可用，帮助团队在关键开发阶段更好地把控代码贡献质量。

## Key quote

> 你可以像在仓库设置中关闭 Wiki、Issues 或 Discussions 一样，现在也能彻底禁用 Pull Request。

## HN discussion (24 comments)

### [CrimsonRain](<https://news.ycombinator.com/item?id=50003631>)

> 对大多数情况而言，锁死 PR 是错误的路径。只需在 PR 标签页内提供一个子标签，专门展示来自新用户的 PR。
>
> 一个标签页显示来自已有贡献者或 PR 已被该仓库接受的用户；
>
> 另一个标签页显示首次提交或尚未有 PR 被批准的用户。维护者若想将其视为垃圾邮件箱也无妨。
>
> 偶尔，用户可以将这些标记为有用，然后维护者再查看。
>
> 提供一个按钮，将 PR 从“其他”移动到主 PR 标签页。
>
> 主计数中不应包含“其他”标签页内的 PR 数量。

### [asdfsa32](<https://news.ycombinator.com/item?id=50003392>)

> 如果微软收购 GitHub 还不是终结开始的信号，那这就是了。我知道很多人喜欢对事物拥有“控制权”，但我发现许多我使用的软件的修复方案都存在于未合并的 PR 中。GitHub 正朝着越来越封闭的系统发展，这给替代方案提供了抢占一些空间的好机会。不错。

### [sampli](<https://news.ycombinator.com/item?id=50003377>)

> 这是二月份的内容

---

## Cite

- Page: https://zeli.app/zh/story/49975158
- Date: 2026-10-06
- Source: github.blog (https://github.blog/changelog/2026-02-13-new-repository-settings-for-configuring-pull-request-access/)
- Hacker News: https://news.ycombinator.com/item?id=49975158

## Other languages

- en: https://zeli.app/story/49975158 · markdown: https://zeli.app/story/49975158.md
- ja: https://zeli.app/ja/story/49975158 · markdown: https://zeli.app/ja/story/49975158.md
- ko: https://zeli.app/ko/story/49975158 · markdown: https://zeli.app/ko/story/49975158.md
- de: https://zeli.app/de/story/49975158 · markdown: https://zeli.app/de/story/49975158.md
- es: https://zeli.app/es/story/49975158 · markdown: https://zeli.app/es/story/49975158.md
- ru: https://zeli.app/ru/story/49975158 · markdown: https://zeli.app/ru/story/49975158.md
