[.github] Add PR review bot#14
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces an automated code review system by integrating the CodiumAI-Agent (pr-agent) into the GitHub workflow. The bot will automatically trigger on PR events and respond to specific commands for code review, improvements, and questions.
- Adds GitHub Actions workflow for automated PR review functionality
- Configures triggers for PR lifecycle events and comment interactions
- Sets up necessary permissions and environment variables for the agent
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| on: | ||
| pull_request: | ||
| types: [opened, reopened, ready_for_review] | ||
| issue_comment: |
There was a problem hiding this comment.
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.
| issue_comment: | |
| issue_comment: | |
| types: [created] |
| steps: | ||
| - name: PR Agent action step | ||
| id: pragent | ||
| uses: qodo-ai/pr-agent@main |
There was a problem hiding this comment.
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.
| uses: qodo-ai/pr-agent@main | |
| uses: qodo-ai/pr-agent@v1.7.0 |
|
We will leave "Issue review bot" to a separated PR. This PR mainly focus on "PR review bot". |
This PR integrates the CodiumAI-Agent, a bot designed to automate and enhance the PR review process.
This agent can be invoked via the following commands:
@CodiumAI-Agent /describe: Automatically generates a description for this PR based on the code changes.@CodiumAI-Agent /review: Performs an automated code review, providing feedback and identifying potential issues.@CodiumAI-Agent /improve: Suggests specific code modifications and improvements for the submitted changes.@CodiumAI-Agent /ask "...": ask specific questions regarding code.Since this mechanism should be triggered by PR submission, we will test then.