mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
fix(update): label an updater PR found as a duplicate
CodeRabbit on PR 2552 (pr.sh:150): since the label step runs after gh pr create, a failed label call left the PR unlabeled, and every later run matched it as a duplicate and exited before labeling. The duplicate path now runs the same label CLI on the matched PR, so the next run heals a missing label. test_pr.py logs every call of its gh stub and asserts the POST of both labels on the duplicate; against the old pr.sh it fails (negative control). Tests: test_pr.py, the update CLI suite and the Python repository lints, 116 passed; ruff and shellcheck clean. 🎯 Fix: 92 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 88 🚦 Gate: ⏳ quality-high not run on this head, gates run on main Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f6926a33a8
commit
fdf1ff757c
2 files changed
+17
-2
No files matched your search
@@ -104,6 +104,7 @@ done
|
||||
|
||||
if [[ -n "${DUPLICATE_PR}" ]]; then
|
||||
echo "Open PR #${DUPLICATE_PR} already carries this exact change. Skipping push and PR creation."
|
||||
python3 -m cli.contributing.update.label --repo "${REPO}" --pr "${DUPLICATE_PR}" --level "${UPDATE_LEVEL}"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user