fix(ci): repair merge-back workflow #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/netoskur-5mg-fix-merge-back-workflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Repairs
.gitea/workflows/sync-develop.yml. The approval step was still ondevelop, because PR #1 was merged before the removal commit arrived.Refs: Netoskur-5mg
Evidence
develop(5fc0c74) contains theAPPROVEDreview call (lines 55-61). Every run would exit 1 there.After: no approval call. Verified on this instance: an in-sync PR request creates an empty PR (test PR #4, closed), the compare API returns
total_commits,pulls/{base}/{head}returns open PRs, and the JSON is compact. The YAML parses, andbash -non the extracted run script passes. Not run yet: the first real run happens when release PR #2 is merged intomain.Merge Danger
Door: two-way
Only CI config changes. Reverting restores the previous file.
Blast Radius: develop
The merge-back writes to
developonly. With a missing or expiredSYNC_TOKEN, it fails red without side effects.Agent review 1 (code-review, fresh agent) on
e31de50: approve with changes221d9d1: Forgejo creates an empty PR instead of returning 422 (test PR #4, closed). The workflow now checkscompare/develop...mainfirst, and any 422 exits red.developwould block the merge-back after hotfixes. Resolved: the setting is disabled ondevelop(decision Netoskur-581.24).concurrencysupport is unverified. It is harmless if ignored.mktempfailure is unguarded. Fixed in221d9d1.Clean: no token leakage (header file in a 0700 temp dir, removed by the trap),
curl -H @file,set -uhandling, andpulls/{base}/{head}(verified on this instance).Agent review 2 on
221d9d1(fresh agent): approvemktempguard was redundant. Removed in33f2588.total_commitsgrep expects compact JSON. It fails red otherwise.compare/develop...maincounts the commits onmainthat are missing ondevelop(0 versus 1 in reverse).Standards: no comments, English, scoped titles. Spec Netoskur-5mg: all items met.