Skip to content

Commit 281d3fc

Browse files
Add codex auto review (#13)
* upgrade abseil to August 2025, Patch 1 * add gh action to clear all gh actions cache * add gh action to clear all gh actions cache * migrate gh action macos-13 to macos-15 x86. * need repo * automatically add ""@codex review" comment to PRs * add more permissions * add more permissions to codex review job * trigger automatic codex review only on specified gh users * trigger automatic codex review when the review is submitted * add more permissions to codex review job * trigger automatic codex review only on specified gh users * trigger automatic codex review when the review is submitted * trigger automatic codex review when the review is submitted * rework codex auto review * rework codex auto review * rework codex auto review for PRs from forks * rework codex auto review for PRs from forks * fix based on a review * fix based on a review * restore codex auto review without openai api key, remove handling of pull_request_review events * adjust to work on fork PRs too --------- Co-authored-by: neodix <[email protected]>
1 parent 2fa29b6 commit 281d3fc

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/clear-gh-cache.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ jobs:
99
GH_TOKEN: ${{ github.token }}
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v3
1214
- name: Clear all cache
1315
run: gh cache delete --all

.github/workflows/codex-review.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Codex auto review
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened, synchronize]
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
request-codex-review:
14+
if: |
15+
github.event.pull_request.user.login == 'EmelyanenkoK' ||
16+
github.event.pull_request.user.login == 'tolya-yanot' ||
17+
github.event.pull_request.user.login == 'SpyCheese' ||
18+
github.event.pull_request.user.login == 'neodix42' ||
19+
github.event.pull_request.user.login == 'dungeon-master-666' ||
20+
github.event.pull_request.user.login == 'igroman787' ||
21+
github.event.pull_request.user.login == 'kdimentionaltree' ||
22+
github.event.pull_request.user.login == 'sonofmom' ||
23+
github.event.pull_request.user.login == 'Trinketer22' ||
24+
github.event.pull_request.user.login == 'xssnick' ||
25+
github.event.pull_request.user.login == 'tolk-vm' ||
26+
github.event.pull_request.user.login == 'DanShaders' ||
27+
github.event.pull_request.user.login == 'birydrad' ||
28+
github.event.pull_request.user.login == 'abacabadabacaba' ||
29+
github.event.pull_request.user.login == 'Mustang98' ||
30+
github.event.pull_request.user.login == 'avevad' ||
31+
github.event.pull_request.user.login == 'tvorogme' ||
32+
github.event.pull_request.user.login == 'krigga'
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Comment to trigger Codex
36+
uses: actions/github-script@v7
37+
with:
38+
github-token: ${{ github.token }}
39+
script: |
40+
await github.rest.issues.createComment({
41+
owner: context.repo.owner,
42+
repo: context.repo.repo,
43+
issue_number: context.issue.number,
44+
body: "@codex review"
45+
})

0 commit comments

Comments
 (0)