Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue_comment trigger is missing the types specification. Without specifying types like [created], this trigger may not work as expected for comment-based commands.

Suggested change
issue_comment:
issue_comment:
types: [created]

Copilot uses AI. Check for mistakes.
jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Agent for every pull request, respond to user comments
steps:
- name: PR Agent action step
id: pragent
uses: qodo-ai/pr-agent@main
Copy link

Copilot AI Sep 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @main branch reference is not recommended for production workflows as it can introduce breaking changes without notice. Consider pinning to a specific version tag or commit SHA for stability.

Suggested change
uses: qodo-ai/pr-agent@main
uses: qodo-ai/pr-agent@v1.7.0

Copilot uses AI. Check for mistakes.
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}