ci: add Claude Code Action workflow by Jocs · Pull Request #4228 · marktext/marktext · GitHub
Skip to content

ci: add Claude Code Action workflow - #4228

Merged
Jocs merged 3 commits into
developfrom
feat/add-claude-code-action
May 16, 2026
Merged

Jocs merged 3 commits into
developfrom
feat/add-claude-code-action

Conversation

@Jocs

@Jocs Jocs commented May 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Add .github/workflows/claude.yml to enable Claude Code Action
  • Triggers when @claude is mentioned in issues, PR comments, or PR reviews
  • Uses CLAUDE_CODE_OAUTH_TOKEN secret for authentication (Claude Pro)

Setup Required

Before this workflow becomes active, add the following secret to the repository:

Settings → Secrets and variables → Actions → New repository secret

  • Name: CLAUDE_CODE_OAUTH_TOKEN
  • Value: Generated via claude setup-token

Usage

Once merged and the secret is set, mention @claude in any issue or PR comment to trigger a response.

🤖 Generated with Claude Code

Enables @claude to respond to issues and PR comments via GitHub Actions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 16, 2026 11:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Actions workflow that integrates the Claude Code Action, allowing collaborators to invoke Claude by mentioning @claude in issues, PR comments, or PR reviews. Authentication uses an OAuth token stored as a repository secret.

Changes:

  • New workflow .github/workflows/claude.yml triggered on issue/PR comment, review, and issue events filtered by @claude mentions.
  • Grants the job broad write permissions (contents, pull-requests, issues) plus id-token: write and actions: read.
  • Invokes anthropics/claude-code-action@v1 with the CLAUDE_CODE_OAUTH_TOKEN secret.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Jocs and others added 2 commits May 16, 2026 19:16
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@Jocs
Jocs merged commit 67ead2b into develop May 16, 2026
9 checks passed
@Jocs
Jocs deleted the feat/add-claude-code-action branch May 16, 2026 11:26
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
* ci: add Claude Code Action workflow

Enables @claude to respond to issues and PR comments via GitHub Actions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci: restrict Claude Code Action to OWNER only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci: restrict Claude Code Action trigger to Jocs only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jocs Jocs mentioned this pull request Oct 8, 2026
6 tasks
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