Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/claude-issue-duplicate-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,22 @@ jobs:
permissions:
contents: read
issues: write
env:
HAS_ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_API_KEY != '' }}

steps:
- name: Skip (missing ANTHROPIC_API_KEY)
if: ${{ secrets.ANTHROPIC_API_KEY == '' }}
if: env.HAS_ANTHROPIC_KEY != 'true'
run: echo "ANTHROPIC_API_KEY is not configured; skipping duplicate check."

- name: Checkout repository
if: ${{ secrets.ANTHROPIC_API_KEY != '' }}
if: env.HAS_ANTHROPIC_KEY == 'true'
uses: actions/checkout@v5
with:
fetch-depth: 1

- name: Ensure duplicate label exists
if: ${{ secrets.ANTHROPIC_API_KEY != '' }}
if: env.HAS_ANTHROPIC_KEY == 'true'
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
Expand All @@ -55,7 +57,7 @@ jobs:
}

- name: Load prompt
if: ${{ secrets.ANTHROPIC_API_KEY != '' }}
if: env.HAS_ANTHROPIC_KEY == 'true'
id: prompt
shell: bash
run: |
Expand All @@ -66,7 +68,7 @@ jobs:
} >> "$GITHUB_OUTPUT"

- name: Run Claude duplicate check
if: ${{ secrets.ANTHROPIC_API_KEY != '' }}
if: env.HAS_ANTHROPIC_KEY == 'true'
uses: anthropics/claude-code-action@v1
env:
ISSUE_NUMBER: ${{ github.event.issue.number }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/codex-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ jobs:
permissions:
contents: read
issues: write
env:
HAS_OPENAI_KEY: ${{ secrets.OPENAI_API_KEY != '' }}

steps:
- name: Skip (missing OPENAI_API_KEY)
if: ${{ secrets.OPENAI_API_KEY == '' }}
if: env.HAS_OPENAI_KEY != 'true'
run: echo "OPENAI_API_KEY is not configured; skipping issue triage."

- name: Checkout repository (for docs context)
if: ${{ secrets.OPENAI_API_KEY != '' }}
if: env.HAS_OPENAI_KEY == 'true'
uses: actions/checkout@v5
with:
fetch-depth: 1

- name: Compute Responses API endpoint override (optional)
if: ${{ secrets.OPENAI_API_KEY != '' }}
if: env.HAS_OPENAI_KEY == 'true'
id: responses_endpoint
shell: bash
run: |
Expand All @@ -43,7 +45,7 @@ jobs:
fi

- name: Run Codex triage
if: ${{ secrets.OPENAI_API_KEY != '' }}
if: env.HAS_OPENAI_KEY == 'true'
id: run_codex
uses: openai/codex-action@v1
env:
Expand All @@ -62,7 +64,7 @@ jobs:
prompt-file: .github/prompts/codex-issue-triage.md

- name: Apply labels and upsert comment
if: ${{ secrets.OPENAI_API_KEY != '' && steps.run_codex.outputs.final-message != '' }}
if: env.HAS_OPENAI_KEY == 'true' && steps.run_codex.outputs.final-message != ''
uses: actions/github-script@v7
env:
TRIAGE_JSON: ${{ steps.run_codex.outputs.final-message }}
Expand Down