mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
36 lines
971 B
YAML
36 lines
971 B
YAML
# This workflow enables developers to call PR-Agents `/[actions]` in PR's comments and upon PR creation.
|
|
# Learn more at https://www.codium.ai/pr-agent/
|
|
# This is v0.2 of this workflow file
|
|
|
|
name: PR-Agent
|
|
|
|
on:
|
|
# pull_request:
|
|
# issue_comment:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
pr_agent_job:
|
|
runs-on: ubuntu-latest
|
|
name: Run pr agent on every pull request
|
|
steps:
|
|
- name: PR Agent action step
|
|
id: pragent
|
|
uses: Codium-ai/pr-agent@main
|
|
env:
|
|
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
|
|
OPENAI_ORG: ${{ secrets.OPENAI_ORG }} # optional
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PINECONE.API_KEY: ${{ secrets.PINECONE_API_KEY }}
|
|
PINECONE.ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}
|
|
GITHUB_ACTION_CONFIG.AUTO_DESCRIBE: true
|
|
GITHUB_ACTION_CONFIG.AUTO_REVIEW: true
|
|
GITHUB_ACTION_CONFIG.AUTO_IMPROVE: true
|
|
|
|
|
|
|