-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add codex auto review gh action #1904
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
Open
neodix42
wants to merge
36
commits into
ton-blockchain:testnet
Choose a base branch
from
neodix42:add-codex-auto-review
base: testnet
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+47
−0
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
4457298
upgrade abseil to August 2025, Patch 1
neodix42 20e07db
Merge branch 'ton-blockchain:testnet' into testnet
neodix42 8f9aab5
Merge remote-tracking branch 'origin/testnet' into testnet
neodix42 cb78966
add gh action to clear all gh actions cache
neodix42 eb634f1
Merge branch 'gh-clear-cache'
neodix42 704d0df
add gh action to clear all gh actions cache
neodix42 d65bf2e
Merge branch 'gh-clear-cache'
neodix42 766563b
migrate gh action macos-13 to macos-15 x86.
neodix42 92463f4
need repo
neodix42 b69e859
Merge branch 'gh-clear-cache'
neodix42 9cba753
Merge remote-tracking branch 'origin/remove-macos-13-gh-actions'
neodix42 202c1ac
Merge remote-tracking branch 'origin/master'
neodix42 3aa98a7
automatically add ""@codex review" comment to PRs
neodix42 07c15c9
Merge branch 'add-codex-auto-review' into testnet
neodix42 0ad57f7
Merge branch 'testnet'
neodix42 340025d
add more permissions
neodix42 f2addc4
add more permissions to codex review job
neodix42 89d7005
trigger automatic codex review only on specified gh users
neodix42 446c70d
trigger automatic codex review when the review is submitted
neodix42 ae85e6e
add more permissions to codex review job
neodix42 17a5e7d
trigger automatic codex review only on specified gh users
neodix42 a492c35
trigger automatic codex review when the review is submitted
neodix42 fe1b1eb
Merge branch 'add-codex-auto-review'
neodix42 ab4ce32
trigger automatic codex review when the review is submitted
neodix42 34429b0
Merge remote-tracking branch 'origin/add-codex-auto-review' into add-…
neodix42 4ba8fec
rework codex auto review
neodix42 c281fac
rework codex auto review
neodix42 4183495
Merge branch 'add-codex-auto-review'
neodix42 8233c3c
rework codex auto review for PRs from forks
neodix42 7d33a6e
rework codex auto review for PRs from forks
neodix42 a0fdd56
Merge branch 'add-codex-auto-review'
neodix42 274f438
fix based on a review
neodix42 0781fc1
fix based on a review
neodix42 fc5c32e
restore codex auto review without openai api key, remove handling of …
neodix42 1fcbaac
Merge branch 'master' into add-codex-auto-review
neodix42 bb5fa27
adjust to work on fork PRs too
neodix42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,45 @@ | ||
| name: Codex auto review | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| request-codex-review: | ||
| if: | | ||
| github.event.pull_request.user.login == 'EmelyanenkoK' || | ||
| github.event.pull_request.user.login == 'tolya-yanot' || | ||
| github.event.pull_request.user.login == 'SpyCheese' || | ||
| github.event.pull_request.user.login == 'neodix42' || | ||
| github.event.pull_request.user.login == 'dungeon-master-666' || | ||
| github.event.pull_request.user.login == 'igroman787' || | ||
| github.event.pull_request.user.login == 'kdimentionaltree' || | ||
| github.event.pull_request.user.login == 'sonofmom' || | ||
| github.event.pull_request.user.login == 'Trinketer22' || | ||
| github.event.pull_request.user.login == 'xssnick' || | ||
| github.event.pull_request.user.login == 'tolk-vm' || | ||
| github.event.pull_request.user.login == 'DanShaders' || | ||
| github.event.pull_request.user.login == 'birydrad' || | ||
| github.event.pull_request.user.login == 'abacabadabacaba' || | ||
| github.event.pull_request.user.login == 'Mustang98' || | ||
| github.event.pull_request.user.login == 'avevad' || | ||
| github.event.pull_request.user.login == 'tvorogme' || | ||
| github.event.pull_request.user.login == 'krigga' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Comment to trigger Codex | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| github-token: ${{ github.token }} | ||
| script: | | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: "@codex review" | ||
| }) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps you wanted to limit the list to only those who are staff members, so why not look at
github.event.pull_request.author_association?