File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -424,6 +424,14 @@ jobs:
424424 ISSUE_TITLE : ${{ github.event.issue.title }}
425425 RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
426426 run : |
427+ # Sweep changes Claude staged or left untracked but didn't commit, so the HEAD-unchanged check below doesn't drop them.
428+ if [ -n "$(git status --porcelain)" ]; then
429+ git config user.name "claude[bot]"
430+ git config user.email "claude[bot]@users.noreply.github.com"
431+ git add -A
432+ git commit -m "chore: auto-commit residual staged/untracked changes from @claude session" \
433+ || { echo "::error::auto-commit of residual @claude changes failed"; exit 1; }
434+ fi
427435 CURRENT_SHA=$(git rev-parse HEAD)
428436 if [ "$CURRENT_SHA" = "$STARTING_SHA" ]; then
429437 echo "No new commits on $BRANCH — Claude produced no changes; skipping push/PR."
You can’t perform that action at this time.
0 commit comments