From ca78f0a8e5bcced03f4897492267b68c755a6eeb Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Wed, 23 Sep 2026 09:34:57 -0500 Subject: [PATCH] docs(agents): say how the promotion is actually merged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The section tells you promotions are fast-forward-only and never says which tool does that. `tea pr merge` does not: it offers merge, rebase, squash and rebase-merge, and each one births a commit on main — the exact drift the rule exists to prevent. Reaching for the obvious command therefore produces the thing the paragraph above it forbids. Gitea's API takes the style the CLI omits, so the promotion for 26.9.0-beta.2 went through curl. Recording the call, and the 405 that precedes it: main is protected and a promotion PR runs its own checks rather than inheriting the ones develop already passed, so the first attempt is refused for checks that simply have not finished yet. Signed-off-by: Diego Resendez --- AGENTS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 03c5ac1..02240d0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -55,6 +55,16 @@ feature/* → develop → main → [promote.yml] → GitHub main **Only `hotfix/*` can still cause real drift**, since it branches from and returns to `main`. That case genuinely needs a back-merge; nothing else does. +**`tea pr merge` cannot do the promotion.** The CLI offers `merge`, `rebase`, `squash` and `rebase-merge`, and every one of them births a commit on `main` — the drift this section exists to prevent. Gitea's API has the style the CLI lacks, so promote through it: + +```bash +curl -X POST -H "Authorization: token $TOKEN" -H 'Content-Type: application/json' \ + -d '{"Do":"fast-forward-only"}' \ + https://git.svc.zoit.services/api/v1/repos/Green-Tea/core/pulls//merge +``` + +A `405 Not all required status checks successful` means the pull request's own CI has not finished — `main` is protected, and a promotion runs its own checks rather than inheriting `develop`'s. Wait for them; the call is the same afterwards. + **Delete the branch when the work lands.** Both sides, as the last step of merging rather than a chore left for later: ```bash