Skip to content
Merged
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
37 changes: 37 additions & 0 deletions .github/workflows/claude.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Claude Code

Comment on lines +1 to +2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 The workflow file .github/workflows/claude.md has a .md extension, but GitHub Actions only recognizes .yml or .yaml files in the workflows directory. This means the workflow will never trigger and the entire PR is non-functional. Rename the file to claude.yml.

Extended reasoning...

Bug Description

The PR adds a new GitHub Actions workflow file at .github/workflows/claude.md. While the file contents are valid YAML defining a workflow that triggers on issue comments, PR review comments, and issue events to run Claude Code, the file has a .md (Markdown) extension instead of the required .yml or .yaml extension.

Why This Is a Problem

GitHub Actions only discovers and executes workflow files that have .yml or .yaml extensions within the .github/workflows/ directory. This is explicitly documented in GitHub Actions documentation. Any file with a different extension — including .md — is silently ignored.

Step-by-Step Proof

  1. A user creates an issue mentioning @claude in the body.
  2. GitHub Actions checks .github/workflows/ for workflow files.
  3. GitHub Actions scans for files matching *.yml or *.yaml.
  4. claude.md does not match either pattern, so it is skipped entirely.
  5. No workflow runs. The Claude Code action never executes.
  6. The same applies for all other trigger events (issue comments, PR review comments, PR reviews).

Impact

This renders the entire PR non-functional. The workflow will never trigger under any circumstances, regardless of the events configured inside the file. No other workflow files exist in this repository that would provide this functionality.

Fix

Rename .github/workflows/claude.md to .github/workflows/claude.yml. No changes to the file contents are needed — the YAML syntax inside is valid.

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]

jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}