Skip to content

chore: run terminal settlement repair #5

chore: run terminal settlement repair

chore: run terminal settlement repair #5

name: Run model preset default repair
on:
issue_comment:
types: [created]
permissions:
contents: write
jobs:
repair:
if: github.event.issue.number == 1 && github.event.comment.body == '/run-model-preset-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: feat/model-preset-default-action
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/model-preset-default.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/modes/components/model-selector.ts packages/coding-agent/test/model-selector-profiles-redteam.test.ts
- name: Commit repair
working-directory: work
shell: bash
run: |
if ! git diff --quiet; then
git config user.name "twoimo"
git config user.email "32544727+twoimo@users.noreply.github.com"
git add packages/coding-agent/CHANGELOG.md packages/coding-agent/src/modes/components/model-selector.ts packages/coding-agent/test/model-selector-profiles-redteam.test.ts
git commit -m "feat(coding-agent): default preset selection to persistence"
git push origin HEAD:feat/model-preset-default-action
fi
- name: Run focused preset tests
working-directory: work
run: bun test --timeout 30000 packages/coding-agent/test/model-selector-profiles.test.ts packages/coding-agent/test/model-selector-profiles-redteam.test.ts packages/coding-agent/test/model-preset-landing-redteam-qa.test.ts packages/coding-agent/test/cli-args-mpreset.test.ts
- name: Run package check
working-directory: work
run: bun --cwd=packages/coding-agent run check
- name: Publish verification receipt commit
working-directory: work
shell: bash
run: |
git config user.name "twoimo"
git config user.email "32544727+twoimo@users.noreply.github.com"
git commit --allow-empty -m "test(coding-agent): verify model preset default action"
git push origin HEAD:feat/model-preset-default-action