anthropics / anthropics/claude-code-action
Add option to suppress @mention in completion comment
- Dominant language
- TypeScript
- Stars
- 8.9k
- Forks
- 2.1k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 10
Description
## Problem
When a tag-mode job completes, the action posts a completion comment that always `@mentions` the triggering user:
```
**Claude finished @username's task in 1m 2s** —— View job
```
This creates an unnecessary notification for the user who triggered the job — they already get notified by GitHub when the workflow completes. The `@mention` in the comment body adds a duplicate ping.
## Relevant code
[`src/github/operations/comment-logic.ts:127`](https://github.com/anthropics/claude-code-action/blob/main/src/github/operations/comment-logic.ts#L127):
```ts
header = `**Claude finished @${username}'s task`;
```
## Proposed solution
Add an input parameter (e.g. `suppress_completion_mention: true`) that replaces the `@username` mention with a plain-text username in the completion header:
```
**Claude finished username's task in 1m 2s** —— View job
```
This preserves the useful completion info while avoiding the extra notification.
## Alternatives
- A broader `completion_comment: false` flag to suppress the entire completion comment
- Making the header template configurable via an input parameter
Contributor guide
Research direction
Start in src/github/operations/comment-logic.ts around line 127, then trace how action inputs are parsed and passed to completion-comment handling. Done means the new option produces a plain-text username in the completion header while preserving the rest of the comment; the issue does not name a test file to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100