feat(drone): S92 regression: unstage .git_pr.lock after git add -A in system-pr

Co-Authored-By: @drone <drone@aipass>
This commit is contained in:
AIOSAI
2026-04-14 21:11:26 -07:00
co-authored by @drone
parent 2bc484d7c3
commit caf2bf59a0
@@ -116,6 +116,13 @@ def create_system_pr(description: str, caller: str) -> dict:
capture_output=True, text=True, cwd=str(repo_root),
)
# Unstage .git_pr.lock — it is acquired (created) for this workflow
# and must never be committed. Belt-and-suspenders alongside .gitignore.
subprocess.run(
["git", "reset", "HEAD", ".git_pr.lock"],
capture_output=True, text=True, cwd=str(repo_root),
)
# Step 4: If anything is staged, commit it (normal commit on main)
diff_check = subprocess.run(
["git", "diff", "--cached", "--quiet"],