Skip to content

Add input validation #2

Add input validation

Add input validation #2

name: Auto-generate PR using Aider
on:
issues:
types: [labeled]
jobs:
generate:

Check failure on line 7 in .github/workflows/aider-on-issue-labeled.yml

View workflow run for this annotation

GitHub Actions / Auto-generate PR using Aider

Invalid workflow file

The workflow is not valid. .github/workflows/aider-on-issue-labeled.yml (Line: 7, Col: 3): Error calling workflow 'mirrajabi/aider-github-workflows/.github/workflows/aider-issue-to-pr.yml@main'. The nested job 'create-pull-request' is requesting 'contents: write, issues: read, pull-requests: write', but is only allowed 'contents: read, issues: none, pull-requests: none'.
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 }}
secrets:
openai_api_key: ${{ secrets.OPENAI_API_KEY }}