Skip to content

Commit

Permalink
Update pr_agent.yml fixing duplicated bot issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwellmann authored Jan 23, 2025
1 parent 339d979 commit 3d53842
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pr_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:
types: [created]
jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
if: >
github.event.sender.type != 'Bot' &&
github.actor != 'github-actions'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
name: Run PR Agent on every pull request, respond to user comments
steps:
- name: PR Agent action step
id: pragent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github_action_config.auto_review: "false" # enable\disable auto review
github_action_config.auto_describe: "false" # enable\disable auto describe
github_action_config.auto_improve: "false" # enable\disable auto improve
github_action_config.auto_review: "false" # enable/disable auto review
github_action_config.auto_describe: "false" # enable/disable auto describe
github_action_config.auto_improve: "false" # enable/disable auto improve

0 comments on commit 3d53842

Please sign in to comment.