Skip to content

Commit 2e4dcc7

Browse files
Terraphim CIclaude
andcommitted
feat(symphony): add issue auto-close to after_run hook
The after_run hook now calls the Gitea API to close issues after successful branch push, preventing Symphony from re-dispatching completed work. Refs #671 Co-Authored-By: Terraphim AI <noreply@anthropic.com>
1 parent 5ee5c5e commit 2e4dcc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/terraphim_symphony/examples/WORKFLOW-tlaplus-ts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ workspace:
2222
hooks:
2323
after_create: "git clone https://terraphim:${GITEA_TOKEN}@git.terraphim.cloud/terraphim/tlaplus-ts.git . && cat > CLAUDE.md << 'CLAUDEEOF'\n# CLAUDE.md - Agent Instructions\n\n## Commit Discipline\n- Make atomic commits with descriptive messages referencing the issue\n- Format: feat(module): description (Refs #N)\n- Run tests before committing: npx vitest run\n- Run build before committing: npm run build\n- Run lint before committing: npm run lint\n\n## Testing\n- Never use mocks in tests\n- Write comprehensive tests using vitest\n- Ensure all existing tests still pass\n\n## Code Standards\n- TypeScript strict mode\n- ESM modules\n- Use British English in documentation\nCLAUDEEOF"
2424
before_run: "git fetch origin && BRANCH=\"symphony/issue-${SYMPHONY_ISSUE_NUMBER}\" && (git checkout \"$BRANCH\" 2>/dev/null && git pull origin \"$BRANCH\" || git checkout -b \"$BRANCH\" origin/main) || true"
25-
after_run: "BRANCH=\"symphony/issue-${SYMPHONY_ISSUE_NUMBER}\" && git add -A && git commit -m \"symphony: ${SYMPHONY_ISSUE_IDENTIFIER} - ${SYMPHONY_ISSUE_TITLE}\" || true && git push -u origin \"$BRANCH\" || true"
25+
after_run: "BRANCH=\"symphony/issue-${SYMPHONY_ISSUE_NUMBER}\" && git add -A && git commit -m \"symphony: ${SYMPHONY_ISSUE_IDENTIFIER} - ${SYMPHONY_ISSUE_TITLE}\" || true && git push -u origin \"$BRANCH\" || true && curl -sf -X PATCH -H \"Authorization: token ${GITEA_TOKEN}\" -H 'Content-Type: application/json' -d '{\"state\":\"closed\"}' https://git.terraphim.cloud/api/v1/repos/terraphim/tlaplus-ts/issues/${SYMPHONY_ISSUE_NUMBER} > /dev/null || true"
2626
timeout_ms: 120000
2727

2828
codex:

0 commit comments

Comments
 (0)