A collection of GitHub automation workflows powered by OpenAI Codex CLI, providing AI-powered PR code review, issue triage, smart responses, and more.
| Workflow | Job Name | Description |
|---|---|---|
reusable-pr-review.yml |
PR Review | AI code review with inline comments |
reusable-pr-label.yml |
PR Label | Auto-label PRs based on content |
reusable-pr-description.yml |
PR Description | Auto-enhance PR descriptions |
reusable-issue-triage.yml |
Issue Label / Issue Dedupe | Classification + duplicate detection |
reusable-mention-responder.yml |
Mention Response | Respond to @codex mentions |
reusable-issue-stale-cleanup.yml |
Issue Stale Cleanup | Clean up inactive issues |
reusable-code-scan.yml |
Code Scan | Scheduled codebase scanning with auto issue creation |
Use version tags for stability:
| Reference | Description |
|---|---|
@v1 |
Recommended - Latest v1.x.x (stable, auto-updates) |
@v1.0.0 |
Locked to exact version |
@main |
Latest (may include breaking changes) |
Add the following secrets to your repository:
Settings → Secrets and variables → Actions → Repository secrets
| Secret | Required | Default | Description |
|---|---|---|---|
OPENAI_API_KEY |
✅ | - | OpenAI API key |
OPENAI_BASE_URL |
❌ | - | Custom API endpoint |
CODEX_MODEL |
❌ | gpt-5.4 |
Model for Codex |
CODEX_REASONING_EFFORT |
❌ | xhigh |
Reasoning effort level |
Copy examples/codex-automation.yml to your repo:
mkdir -p .github/workflows
curl -o .github/workflows/codex.yml \
https://raw.githubusercontent.com/MonteYin/codex-actions/main/examples/codex-automation.ymlOnly PR review and issue triage:
mkdir -p .github/workflows
curl -o .github/workflows/codex.yml \
https://raw.githubusercontent.com/MonteYin/codex-actions/main/examples/codex-minimal.yml# .github/workflows/pr-review.yml
name: PR Review
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
review:
uses: MonteYin/codex-actions/.github/workflows/reusable-pr-review.yml@v1
secrets: inherit# .github/workflows/issue-triage.yml
name: Issue Triage
on:
issues:
types: [opened]
jobs:
triage:
uses: MonteYin/codex-actions/.github/workflows/reusable-issue-triage.yml@v1
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-pr-review.yml@v1
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-pr-label.yml@v1
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-pr-description.yml@v1
with:
min_description_length: 300 # optional
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-issue-triage.yml@v1
with:
enable_dedupe: true # optional
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-mention-responder.yml@v1
with:
mention_trigger: '@codex' # optional
secrets: inherituses: MonteYin/codex-actions/.github/workflows/reusable-issue-stale-cleanup.yml@v1
with:
stale_days: 30 # optional
close_days: 14 # optional
secrets: inheritScheduled codebase scanning that automatically creates GitHub issues for detected defects (one issue per finding). Uses fingerprint-based deduplication to avoid duplicates across runs.
uses: MonteYin/codex-actions/.github/workflows/reusable-code-scan.yml@v1
with:
scan_paths: '.' # optional, space-separated paths
secrets: inheritTrack AI/ML repositories for research opportunities.
Workflows:
reusable-tracker-dispatcher.yml- Orchestrates parallel repo analysisreusable-repo-tracker.yml- Analyzes individual repositories
Usage:
# .github/workflows/research-tracker.yml
name: Research Tracker
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
track:
uses: MonteYin/codex-actions/.github/workflows/reusable-tracker-dispatcher.yml@main
with:
repos: ${{ vars.WATCHED_REPOS }}
webhook_url: ${{ vars.WEBHOOK_URL }}
secrets: inheritConfiguration:
vars.WATCHED_REPOS- Comma-separated repo list (e.g.,langchain-ai/langchain,openai/openai-python)vars.WEBHOOK_URL- Optional webhook for notificationssecrets.OPENAI_API_KEY- Required for Codex analysis
Features:
- Daily automated analysis of watched repositories
- Identifies research opportunities (new architectures, performance gains, limitations)
- Markdown reports with tracking backlog
- Webhook notifications (per-repo and daily summary)
- Automatic retry with failure alerts
| Secret | Required | Default | Description |
|---|---|---|---|
OPENAI_API_KEY |
✅ | - | OpenAI API key |
OPENAI_BASE_URL |
❌ | - | Custom API endpoint |
CODEX_MODEL |
❌ | gpt-5.4 |
Model for Codex |
CODEX_REASONING_EFFORT |
❌ | xhigh |
Reasoning effort level |
| Parameter | Type | Default | Description |
|---|---|---|---|
runner |
string | ubuntu-latest |
Custom runner |
codex-actions/
├── .github/
│ ├── workflows/
│ │ ├── codex.yml # This repo's workflow
│ │ └── reusable-*.yml # Reusable workflows (8)
│ ├── prompts/ # AI prompts
│ └── ISSUE_TEMPLATE/ # Issue templates
├── examples/
│ ├── codex-automation.yml # Full caller workflow
│ └── codex-minimal.yml # Minimal caller workflow
└── README.md
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch
- Make your changes
- Submit a pull request
MIT