-
Notifications
You must be signed in to change notification settings - Fork 332
57 lines (52 loc) · 2.58 KB
/
Copy pathreviewrouter-codex.yml
File metadata and controls
57 lines (52 loc) · 2.58 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
name: ReviewRouter Codex OAuth [namespace=sns_3c555371c528609493a910486221e465;epoch=4;secret=REVIEWROUTER_CODEX_AUTH_JSON_R1163183284_Pc11a7080815e939d_E4_3c555371c528609493a910486221e465]
run-name: ${{ format('ReviewRouter review PR {0} at {1}', github.event.pull_request.number, github.event.pull_request.head.sha) }}
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
schedule:
- cron: "17 */6 * * *"
permissions: {}
jobs:
codex-review:
name: codex-review
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.type != 'Bot' && (github.event.pull_request.draft == false || vars.REVIEW_ROUTER_REVIEW_DRAFTS == 'true') }}
concurrency:
group: reviewrouter-codex-oauth-${{ github.repository_id }}-codex-rotating-1163183284
cancel-in-progress: false
permissions:
contents: read
pull-requests: read
id-token: write
uses: 777genius/review-router/.github/workflows/reviewrouter-t0-reusable.yml@da20c20adf0f9ff637291c9947ff71bf00b30005
with:
runtime_ref: "da20c20adf0f9ff637291c9947ff71bf00b30005"
api_url: "https://api.reviewrouter.site"
runtime_config_mode: oidc
pr_number: ${{ format('{0}', github.event.pull_request.number) }}
review_head_sha: ${{ github.event.pull_request.head.sha }}
provider_instance_id: "codex-rotating:1163183284"
workflow_schema_version: 4
max_changed_lines: ${{ vars.REVIEW_ROUTER_MAX_CHANGED_LINES }}
review_timeout_minutes: ${{ fromJSON(vars.REVIEW_ROUTER_TIMEOUT_MINUTES || '60') }}
secrets:
CODEX_AUTH_JSON: ${{ secrets.REVIEWROUTER_CODEX_AUTH_JSON_R1163183284_Pc11a7080815e939d_E4_3c555371c528609493a910486221e465 }}
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' }}
permissions:
id-token: write
steps:
- name: ReviewRouter Codex OAuth refresh
id: refresh_codex
uses: 777genius/review-router@da20c20adf0f9ff637291c9947ff71bf00b30005
with:
mode: codex-oauth-refresh
api-url: "https://api.reviewrouter.site"
provider-instance-id: "codex-rotating:1163183284"
workflow-schema-version: "4"
auth-json: ${{ secrets.REVIEWROUTER_CODEX_AUTH_JSON_R1163183284_Pc11a7080815e939d_E4_3c555371c528609493a910486221e465 }}