Skip to content

Commit

Permalink
Merge pull request #21 from tscircuit/bunaider
Browse files Browse the repository at this point in the history
add bunaider
  • Loading branch information
seveibar authored Sep 2, 2024
2 parents 9574278 + 34f5dd9 commit a764cd1
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/bunaider-review-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bunaider PR Review Response
on:
pull_request_review:
types: [submitted]

jobs:
respond-to-review:
if: github.event.review.state == 'changes_requested' && contains(github.event.review.body, 'aider:')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install bunaider
run: bun install -g bunaider

- run: bunaider init

- name: Run bunaider fix on PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
AIDER_SONNET: 1
run: bunaider fix ${{ github.event.pull_request.number }}
27 changes: 27 additions & 0 deletions .github/workflows/bunaider.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Bunaider Auto-Fix
on:
issues:
types: [labeled]

jobs:
auto-fix:
if: github.event.label.name == 'aider'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install bunaider
run: bun install -g bunaider

- run: bunaider init

- name: Run bunaider fix
env:
GITHUB_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.TSCIRCUIT_BOT_ANTHROPIC_API_KEY }}
AIDER_SONNET: 1
run: bunaider fix ${{ github.event.issue.number }}

0 comments on commit a764cd1

Please sign in to comment.