Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Codeium PR agent in the CI jobs. #569

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/codeium-pr-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
types: [opened, reopened, ready_for_review]
issue_comment:

jobs:
pr_agent_job:
if: ${{ github.event.sender.type != 'Bot' }}
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
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 }}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
github_action_config.auto_review: "true" # enable\disable auto review
github_action_config.auto_describe: "true" # enable\disable auto describe
github_action_config.auto_improve: "true" # enable\disable auto improve
github_action_config.pr_actions: '["opened", "reopened", "ready_for_review", "review_requested"]'

@zonble 如果要自動跑的話要有這些。現在沒有,所以要手動 comment @CodiumAI-Agent /command

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是說我不確定最後一列 github_action_config.pr_actions: '["opened", "reopened", "ready_for_review", "review_requested"]' 跟最上層不一致的話會發生什麼事。現在最上層的 on 沒有 "review_requested".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外,GitHub App 才支援不加 @CodiumAI-Agent/command.

2 changes: 2 additions & 0 deletions Source/Data/BPMFMappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139669,3 +139669,5 @@
龜鑑 ㄍㄨㄟ ㄐㄧㄢˋ
龜頭 ㄍㄨㄟ ㄊㄡˊ
龜鱉目 ㄍㄨㄟ ㄅㄧㄝ ㄇㄨˋ
大於等於 ㄉㄚˋ ㄩˊ ㄉㄥˇ ㄩˊ
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these also need to be sorted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What xatier said.

小於等於 ㄒㄧㄠˇ ㄩˊ ㄉㄥˇ ㄩˊ
2 changes: 2 additions & 0 deletions Source/Data/phrase.occ
Original file line number Diff line number Diff line change
Expand Up @@ -35780,6 +35780,7 @@
大方 155
大方向 30
大於 208
大於等於 0
大族 11
大易 8
大星 9
Expand Down Expand Up @@ -43338,6 +43339,7 @@
小數點 4
小方 21
小於 64
小於等於 0
小族 0
小旦 2
小明 107
Expand Down