Skip to content

Commit

Permalink
Merge pull request #1269 from bannzai/add/ci/pr-agent
Browse files Browse the repository at this point in the history
add/ci/pr agent
  • Loading branch information
bannzai authored Nov 29, 2024
2 parents eac2f5b + f05d765 commit 704f69d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pr-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: pr-agent

on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created, edited]

permissions:
pull-requests: write
issues: write

jobs:
pr_agent:
runs-on: ubuntu-latest
name: Run PR Agent
if: ${{ github.event.sender.type != 'Bot' }}
steps:
- id: pr-agent
uses: Codium-ai/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_REVIEWER.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions.'
PR_DESCRIPTION.EXTRA_INSTRUCTIONS: 'Please use Japanese in descriptions. Titles should have prefix of commitlint pattern such as `feat:`, `chore:`, `test:`, `fix:`, `ci:`, `docs:` etc'

0 comments on commit 704f69d

Please sign in to comment.