-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodex-automation.yml
More file actions
81 lines (71 loc) · 2.67 KB
/
Copy pathcodex-automation.yml
File metadata and controls
81 lines (71 loc) · 2.67 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Codex GitHub Automation - Full Setup
# Copy to: .github/workflows/codex.yml
#
# Required secrets:
# - OPENAI_API_KEY
# Optional secrets:
# - OPENAI_BASE_URL
# - CODEX_MODEL (default: gpt-5.4)
# - CODEX_REASONING_EFFORT (default: xhigh)
name: Codex Automation
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
issues:
types: [opened]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
issues: write
jobs:
# PR Review - AI code review with inline comments
pr-review:
if: github.event_name == 'pull_request'
uses: MonteYin/codex-actions/.github/workflows/reusable-pr-review.yml@v1
secrets: inherit
# PR Label - Auto-label PRs based on content
pr-label:
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: MonteYin/codex-actions/.github/workflows/reusable-pr-label.yml@v1
secrets: inherit
# PR Description - Auto-enhance PR descriptions
pr-description:
if: github.event_name == 'pull_request' && github.event.action == 'opened'
uses: MonteYin/codex-actions/.github/workflows/reusable-pr-description.yml@v1
secrets: inherit
# Issue Label + Issue Dedupe - Classification and duplicate detection
issue-triage:
if: github.event_name == 'issues'
uses: MonteYin/codex-actions/.github/workflows/reusable-issue-triage.yml@v1
with:
enable_dedupe: true
secrets: inherit
# Mention Response - Respond to @codex mentions
# Security: Only OWNER/MEMBER/COLLABORATOR can trigger, Bots excluded
mention-response:
if: >-
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
contains(github.event.comment.body, '@codex') &&
github.event.sender.type != 'Bot' &&
(github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'COLLABORATOR')
uses: MonteYin/codex-actions/.github/workflows/reusable-mention-responder.yml@v1
secrets: inherit
# Issue Stale Cleanup - Clean up inactive issues
issue-stale-cleanup:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
uses: MonteYin/codex-actions/.github/workflows/reusable-issue-stale-cleanup.yml@v1
secrets: inherit
# Code Scan - Scheduled repository-wide defect scanning
code-scan:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
uses: MonteYin/codex-actions/.github/workflows/reusable-code-scan.yml@v1
secrets: inherit