[FIX] Use Git root as project root when creating PRs #1222
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review] | |
| issue_comment: | |
| jobs: | |
| pr_agent_job: | |
| if: ${{ github.event.sender.type != 'Bot' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| contents: write | |
| name: Run pr agent on every pull request, respond to user comments | |
| steps: | |
| - name: PR Agent action step | |
| id: pragent | |
| uses: qodo-ai/pr-agent@main | |
| env: | |
| OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |