Skip to content

docs: 明确分支与 PR 纪律,禁止直接 push main - #375

Open
frankiehot-tech wants to merge 1 commit into
mainfrom
docs/branch-pr-discipline
Open

docs: 明确分支与 PR 纪律,禁止直接 push main#375
frankiehot-tech wants to merge 1 commit into
mainfrom
docs/branch-pr-discipline

Conversation

@frankiehot-tech

Copy link
Copy Markdown
Contributor

背景

上一次改动(51d88f7a 污染清理 + a29842ae Vortex369 TLA+)直接 push 到 main,触发远端 Bypassed rule violations: Changes must be made through a pull request。本 PR 把 PR 流程写成成文约定,避免复发。

改动

  • AGENTS.md · Boundaries:新增禁止项「直接 push 到 main(含 bypass 分支保护)」
  • AGENTS.md · Handoff Discipline:新增「分支与 PR 纪律」小节 — 分支命名 <type>/<slug>gh pr create --fill、等 CI + 治理门禁(G1-G4 + oss-check)全绿再合并、优先 squash、禁止混入无关工作区改动
  • CONTRIBUTING.md:分支命名由过时的 feature/ 统一为仓库实际惯例 <type>/<slug>(实际分支均为 feat/ fix/ chore/ docs/

依据

  1. CONTRIBUTING.md:3-4 — MAREF 采用 Pull Request 模式
  2. 远端分支保护规则 — Changes must be made through a pull request
  3. docs/oss-execution-norm-v1.0.md:44 — Feature Development 出口条件为 Code Review 通过 + 门禁

验证

  • 纯文档改动,无代码影响
  • push 前置门禁 G1-G4 + oss-check 全部通过
  • 本 PR 自身即走 feature 分支 + PR 流程(自我遵循)

- AGENTS.md Boundaries 增禁止项:直接 push main(含 bypass 分支保护)
- AGENTS.md Handoff Discipline 增"分支与 PR 纪律"小节:分支命名/PR 流程/门禁/squash/排除无关改动
- CONTRIBUTING.md 分支命名由过时的 feature/ 统一为仓库实际惯例 <type>/<slug>
@frankiehot-tech
frankiehot-tech requested a review from a team as a code owner August 17, 2026 08:20
@cla-assistant

cla-assistant Bot commented Aug 17, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Athena seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@cla-assistant

cla-assistant Bot commented Aug 17, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Athena seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant