-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1269 from bannzai/add/ci/pr-agent
add/ci/pr agent
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|