Skip to content

Fix GitHub Actions workflow for @claude mentions - #7

Merged
luiv-engineer merged 2 commits into
mainfrom
claude/fervent-dirac-pfgmeg
Sep 11, 2026
Merged

luiv-engineer merged 2 commits into
mainfrom
claude/fervent-dirac-pfgmeg

Conversation

@luiv-engineer

Copy link
Copy Markdown
Owner

Summary

Fixed the GitHub Actions workflow that responds to @claude mentions in issues.

Changes

  1. Added missing permissions - pull-requests: write for posting comments
  2. Fixed YAML syntax error - Replaced template literals with escaped newlines in script
  3. Improved error handling - Better logging and error messages for debugging
  4. Explicit token passing - GITHUB_TOKEN now explicitly passed to github-script action

How it works

  • Workflow triggers when issues are created/edited or comments are made
  • Checks if @claude is mentioned in the issue/comment body
  • Posts an acknowledgment comment from the GitHub App

Testing

Try tagging @claude in an issue:

@claude Can you help with this?

The workflow should:

  1. Detect the mention
  2. Post an acknowledgment comment
  3. Log the issue details for processing

https://claude.ai/code/session_01C5vwKNMUcG9R3aojrMhUwj


Generated by Claude Code

- Add pull-requests: write permission
- Explicit GITHUB_TOKEN passing
- Better logging and error handling
- Improved response message

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5vwKNMUcG9R3aojrMhUwj
- Replace template literal with escaped newlines
- Remove backtick syntax that was causing YAML parse error

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5vwKNMUcG9R3aojrMhUwj
@claude

claude Bot commented Sep 11, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@luiv-engineer
luiv-engineer merged commit 8289ee1 into main Sep 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants