feat(system): fix: exclude STATUS.md from system-pr staging to prevent rebase conflicts (#164)

Co-authored-by: @devpulse <devpulse@aipass>
This commit is contained in:
AIPass
2026-03-31 16:42:49 -07:00
committed by GitHub
co-authored by @devpulse
parent 6d6b8e8f1c
commit 63b9b15416
@@ -104,6 +104,13 @@ def create_system_pr(description: str, caller: str) -> dict:
logger.error(result["message"])
return result
# Unstage STATUS.md — it's auto-synced by trigger events and
# including it causes rebase conflicts on every PR merge cycle.
subprocess.run(
["git", "reset", "HEAD", "STATUS.md"],
capture_output=True, text=True, cwd=str(repo_root),
)
# Step 4: Check if anything was staged
diff_check = subprocess.run(
["git", "diff", "--cached", "--quiet"],