feat(drone): fix pr_handler: scope commit to branch_dir pathspec — prevents concurrent-PR index contamination (FPLAN-0190 Task A) (#351)
* feat(devpulse): watchdog: breadcrumb on exit + default timeout 1800s to 600s (FPLAN-0189) Co-Authored-By: @devpulse <devpulse@aipass> * feat(drone): fix pr_handler: scope commit to branch_dir pathspec — prevents concurrent-PR index contamination (FPLAN-0190 Task A) Co-Authored-By: @drone <drone@aipass> --------- Co-authored-by: @devpulse <devpulse@aipass> Co-authored-by: @drone <drone@aipass>
This commit is contained in:
co-authored by
@devpulse
@drone
parent
c941c3d6ac
commit
905f2a45fb
@@ -139,7 +139,10 @@ def create_system_pr(description: str, caller: str) -> dict:
|
||||
cwd=str(repo_root),
|
||||
)
|
||||
if diff_check.returncode != 0:
|
||||
# There are staged changes — commit them
|
||||
# There are staged changes — commit them.
|
||||
# No pathspec needed here: git add -A already staged the whole
|
||||
# repo intentionally (system-pr is global by design), and the
|
||||
# lock prevents concurrent system-prs from racing into the index.
|
||||
commit_msg = f"feat(system): {description}\n\nCo-Authored-By: @{caller} <{caller}@aipass>"
|
||||
commit = subprocess.run(
|
||||
["git", "commit", "-m", commit_msg],
|
||||
|
||||
Reference in New Issue
Block a user