From 0453dcdb66f206dd9d8139c336712c44ceaa95ad Mon Sep 17 00:00:00 2001 From: Lourival Vieira Neto Date: Thu, 26 Nov 2026 23:03:31 -0300 Subject: [PATCH] merged: a repository deletes its own merged branches The auto mode classifier refuses the session's git push --delete of a merged branch in luainkernel/harness and luainkernel/luaebpf, so each batch of merges left the maintainer a script under /tmp to run. Both repositories now set delete_branch_on_merge, D201 C, which the maintainer took on 2026-11-26 ("201 aceito sua sugestao"): GitHub deletes the head at the merge and moves the pull requests based on it to the base, as its changelog of 2020-05-19 says. Section 4 says that there the remote delete is a check and the checkout's branch still goes. That the move happens on a merge made through the API is read on the first pull request stacked under one, by section 2's query. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/merged/SKILL.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.agents/skills/merged/SKILL.md b/.agents/skills/merged/SKILL.md index 263bbae..0acc9a1 100644 --- a/.agents/skills/merged/SKILL.md +++ b/.agents/skills/merged/SKILL.md @@ -113,6 +113,12 @@ Its commits are on master under new SHAs, and GitHub keeps the old head as `refs delete the session's permissions refuse goes to the maintainer as a script under `/tmp` and the line that runs it (AGENTS.md, *Deciding what to change*). +A repository whose `delete_branch_on_merge` is set, as luainkernel/harness and luainkernel/luaebpf +are, deletes the branch itself at the merge, and GitHub moves the pull requests based on it to the +base (https://github.blog/changelog/2020-05-19-pull-request-retargeting), which section 2's query +shows. There the remote delete is a check, `git ls-remote refs/heads/` printing +nothing, and the checkout's branch still goes. + # 5. The bumps a harness merge opens A pull request of the harness's own repository reaches a project only through the commit its mount