Skip to content

docs: formalize the main/dev branch model and the contribution flow - #798

Merged
huayanYu merged 2 commits into
mainfrom
dev
Oct 14, 2026
Merged

huayanYu merged 2 commits into
mainfrom
dev

Conversation

@huayanYu

Copy link
Copy Markdown
Member

Formalizes the two-branch model end to end so outside contributions have a predictable path.

What changes

  • CONTRIBUTING §4.0: main (stable release line, release merges only) / dev (all PRs
    target it) — with the rationale and the hotfix path.
  • PR template: a prominent target-branch hint at the top (bilingual).
  • .github/copilot-instructions.md: the same branching rules for AI coding assistants.
  • New pr-target-check workflow: non-maintainer PRs accidentally opened against main
    get an automated bilingual comment pointing at dev (maintainer release merges exempt).

Impact

Documentation, templates and CI only — no code or build behaviour changes. The reminder
workflow takes effect once this lands on main (workflows of pull_request_target events
are loaded from the base branch).

Checklist

  • pr-target-check.yml passes YAML validation and follows the env-passing pattern
    (no expression interpolation of event fields into shell)
  • No new dependencies

CONTRIBUTING 4.0 documents the two-branch model with its rationale; the PR template carries a prominent target-branch hint; copilot instructions gain the same rules for AI assistants.
Non-maintainer PRs opened against main get a bilingual comment pointing at dev; the maintainer's dev-to-main release merges are exempt.
@github-actions github-actions Bot added documentation Docs and wiki ci CI, build and release labels Oct 14, 2026
Comment on lines +5 to +7
on:
pull_request_target:
types: [ opened, edited, reopened ]
@huayanYu
huayanYu merged commit 0ab468c into main Oct 14, 2026
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, build and release documentation Docs and wiki

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants