chore: run terminal settlement repair #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run terminal settlement repair command | |
| on: | |
| issue_comment: | |
| types: [created] | |
| permissions: | |
| contents: write | |
| jobs: | |
| repair: | |
| if: github.event.issue.number == 1 && github.event.comment.body == '/run-terminal-repair' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out trusted repair source | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| path: repair-source | |
| - name: Check out repair target | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: fix/telegram-tool-activity-terminal-rejection | |
| path: work | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Apply trusted repair | |
| working-directory: work | |
| run: python3 ../repair-source/.github/repair/terminal-settlement.py | |
| - name: Install dependencies | |
| working-directory: work | |
| run: bun install --frozen-lockfile | |
| - name: Format changed files | |
| working-directory: work | |
| run: bunx biome check --write packages/coding-agent/src/sdk/bus/telegram-daemon.ts packages/coding-agent/test/notifications-telegram-daemon.test.ts | |
| - name: Run focused regressions | |
| working-directory: work | |
| run: bun test --timeout 30000 packages/coding-agent/test/notifications-telegram-daemon.test.ts --test-name-pattern "terminal submission rejection" | |
| - name: Run package check | |
| working-directory: work | |
| run: bun --cwd=packages/coding-agent run check | |
| - name: Commit verified repair | |
| working-directory: work | |
| shell: bash | |
| run: | | |
| if git diff --quiet; then | |
| exit 0 | |
| fi | |
| git config user.name "twoimo" | |
| git config user.email "32544727+twoimo@users.noreply.github.com" | |
| git add packages/coding-agent/src/sdk/bus/telegram-daemon.ts packages/coding-agent/test/notifications-telegram-daemon.test.ts | |
| git commit -m "fix(notifications): retire rejected legacy terminals" | |
| git push origin HEAD:fix/telegram-tool-activity-terminal-rejection |