From 9836327a47ecaa7757d66a5f242d7cd87f77c398 Mon Sep 17 00:00:00 2001 From: Jaken Herman Date: Mon, 14 Oct 2024 12:13:19 -0500 Subject: [PATCH] Create aider-on-issue-labeled.yml Signed-off-by: Jaken Herman --- .github/workflows/aider-on-issue-labeled.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/aider-on-issue-labeled.yml diff --git a/.github/workflows/aider-on-issue-labeled.yml b/.github/workflows/aider-on-issue-labeled.yml new file mode 100644 index 0000000..74b653b --- /dev/null +++ b/.github/workflows/aider-on-issue-labeled.yml @@ -0,0 +1,15 @@ +name: Auto-generate PR using Aider +on: + issues: + types: [labeled] + +jobs: + generate: + uses: mirrajabi/aider-github-action/.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 }} + secrets: + openai_api_key: ${{ secrets.OPENAI_API_KEY }}