Fix Claude workflow permissions and git history access#3
Merged
differentmatt merged 2 commits intoadd-claude-github-actions-1767209015317from Dec 31, 2025
Merged
Conversation
Co-authored-by: differentmatt <2965172+differentmatt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Claude Code GitHub workflow
Fix Claude workflow permissions and git history access
Dec 31, 2025
differentmatt
approved these changes
Dec 31, 2025
82b42c3
into
add-claude-github-actions-1767209015317
1 of 2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses review feedback from PR #2 to enable Claude workflows to function correctly.
Permission fixes:
claude.yml: Addedwritepermissions forcontents,pull-requests, andissues(Claude needs these to create branches, commits, and comments)claude-code-review.yml: Addedwritepermissions forpull-requestsandissues(required to post review comments)Git history access:
fetch-depth: 1tofetch-depth: 0in both workflows to provide full repository history for better context understanding of diffs and changesTool configuration fix:
Bash(gh pr comment:*)toBash(gh pr comment *)inclaude-code-review.ymlto enable write operations (the colon pattern only allows reading comment content, not posting)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.