-
Notifications
You must be signed in to change notification settings - Fork 335
58 lines (54 loc) · 2.32 KB
/
Copy pathreviewrouter-codex.yml
File metadata and controls
58 lines (54 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ReviewRouter Codex OAuth
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
workflow_dispatch:
schedule:
- cron: "17 */6 * * *"
permissions: {}
jobs:
codex-review:
name: codex-review
runs-on: ubuntu-24.04
timeout-minutes: ${{ fromJSON(vars.REVIEW_ROUTER_TIMEOUT_MINUTES || '60') }}
concurrency:
group: reviewrouter-codex-oauth-${{ github.repository_id }}-codex-rotating-1163183284
cancel-in-progress: false
if: ${{ ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || (github.event_name == 'pull_request_target' && github.event.pull_request.draft == true && vars.REVIEW_ROUTER_REVIEW_DRAFTS == 'true')) && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.type != 'Bot' }}
permissions:
id-token: write
steps:
- name: ReviewRouter Codex OAuth review
id: run_codex
uses: 777genius/review-router@main
with:
mode: codex-oauth-rotating
api-url: "https://api.reviewrouter.site"
provider-instance-id: "codex-rotating:1163183284"
workflow-schema-version: "1"
review-drafts: ${{ vars.REVIEW_ROUTER_REVIEW_DRAFTS == 'true' }}
max-changed-lines: ${{ vars.REVIEW_ROUTER_MAX_CHANGED_LINES }}
review-timeout-minutes: ${{ vars.REVIEW_ROUTER_TIMEOUT_MINUTES || '60' }}
auth-json: ${{ secrets.REVIEWROUTER_CODEX_AUTH_JSON }}
codex-refresh:
name: codex-refresh
runs-on: ubuntu-24.04
timeout-minutes: 60
concurrency:
group: reviewrouter-codex-oauth-${{ github.repository_id }}-codex-rotating-1163183284
cancel-in-progress: false
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
permissions:
id-token: write
steps:
- name: ReviewRouter Codex OAuth refresh
id: refresh_codex
uses: 777genius/review-router@main
with:
mode: codex-oauth-refresh
api-url: "https://api.reviewrouter.site"
provider-instance-id: "codex-rotating:1163183284"
workflow-schema-version: "1"
auth-json: ${{ secrets.REVIEWROUTER_CODEX_AUTH_JSON }}