AGENTS.md is read on every task, so it keeps routing, the hard stops, the install and keyword gates and the completion report, and drops to 514 words; all rule files together drop from 7546 to 5783 words. Rules state the result to reach, and keep a prohibition only where a mistake is hard to undo or a reviewer has caught it before. Lessons from reviewed PRs: PATCHES carried over a bump, Go -ldflags without -s or -w, RUST_MIN_VER from the highest rust-version, cargo QA_FLAGS_IGNORED, ISA gating through cpu_flags, Python Requires-Dist, draft PRs for eclass provider slots missing from ::gentoo, skel.ebuild variable order, DependencyMissingKeywords, and the Go vendor layout. The PR template asks for the reason, a Tested: line and two checks, and names the merge-base scan range so it is not read as a bare --commits. Signed-off-by: Zakk <zakk@gentoozh.org>
1.8 KiB
1.8 KiB
Git Workflow
Read with: AGENTS.md § Git Workflow for the PR-scope rules; pr-text.md before committing.
Complete preflight before editing; repeat when state becomes uncertain. master is an upstream-sync branch.
- Start with
git status --short --branch. Use one topic branch per logical PR from localmasterfreshly synced to<canonical>/master; prefercategory-package-versionfor bumps. Resume on the existing correct topic branch. - Before preparing a PR, fetch canonical and rebase onto
<canonical>/master. Fetch again before declaring a commit/PR merged or basing follow-up work on it. Compare and open against<canonical>/masterso a stale personal fork cannot inflate the diff. - Resolve an existing canonical remote by case-insensitive GitHub owner/repository match:
gentoo-zh/overlayormicrocai/gentoo-zh, using SSH or HTTPS. - Reuse that remote's name in both fork and direct clones. If absent, add
upstreamathttps://github.com/gentoo-zh/overlay.git. - Fetch before using canonical state. Ensure
<canonical>/HEADresolves; set it withgit remote set-head <canonical> masterif needed. pkgcheck requires that head independently of the scan range. On fetch failure, stop and report the existing URL and error; do not rewrite or bypass the remote. - Apply
AGENTS.md§ Git Workflow for push targets; use--force-with-leaseafter rebasing. A missing or ambiguous personal fork blocks publishing only; local editing may continue. - Repository metadata lives in
metadata/andprofiles/; CI lives in.github/. For non-ebuild changes, checkscripts/emerge-targets.shignore_listso paths stay outside package targets. - Stop before editing on an ambiguous canonical remote, failed required
mastersync, unsafe branch creation, ambiguous staging caused by unrelated changes, or a request spanning unrelated PRs.