Skip to content

Commit

Permalink
Improved aider-on-issue-labeled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RecoX committed Aug 25, 2024
1 parent 66adb82 commit 9d1403f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/aider-on-issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Auto-generate PR using Aider

on:
workflow_call:
issues:
types: [labeled]
workflow_call:
inputs:
issue-number:
required: true
type: number
base-branch:
required: true
type: string
secrets:
required:
- anthropic_api_key

jobs:
generate:
uses: mirrajabi/aider-github-workflows/.github/workflows/aider-issue-to-pr.yml@main
# Check if the label is 'aider'
if: github.event.label.name == 'aider'
with:
issue-number: ${{ github.event.issue.number }}
base-branch: ${{ github.event.repository.default_branch }}
issue-number: ${{ inputs['issue-number'] }}
base-branch: ${{ inputs['base-branch'] }}
model: anthropic/claude-3-sonnet-20240229
secrets:
anthropic_api_key: ${{ secrets.anthropic_api_key }}

0 comments on commit 9d1403f

Please sign in to comment.