Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,11 @@ jobs:
cp "$BODY_FILE" "$PR_BODY_COPY"
BODY_FILE="$PR_BODY_COPY"

# Strip the artifact from the working tree before committing.
rm -f PR_BODY.md
# Strip both agent artifacts from the working tree before committing.
# TASK.md is the prompt this run was given and PR_BODY.md describes the
# change; both are inputs to the run, not source changes, so neither
# belongs in the repo. git add -A below would otherwise sweep them in.
rm -f PR_BODY.md TASK.md
git add -A
if git diff --cached --quiet; then
echo "no source changes produced by agent"
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
# editor/tool droppings
*.tmp

# Unattended-run artifacts: TASK.md is the prompt a dispatch run was given and
# PR_BODY.md is the body it authored. Both are inputs to a run, never source.
# The workflow deletes them before committing; ignoring them means a missed
# delete cannot land them in the repo anyway.
/TASK.md
/PR_BODY.md

# project-local sesh mods and config are personal, never committed
.sesh/

Expand Down