Skip to content

Give Claude write permission so it can write to the PR#222

Closed
chrisghill wants to merge 1 commit intomainfrom
fix-claude-gha
Closed

Give Claude write permission so it can write to the PR#222
chrisghill wants to merge 1 commit intomainfrom
fix-claude-gha

Conversation

@chrisghill
Copy link
Member

@chrisghill chrisghill commented Mar 17, 2026

This also adds a workflow on tagging that will use claude to generate release notes.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds GitHub Actions permissions and workflows to let Anthropic Claude interact with PRs/issues using write access, and introduces automated release-note generation on tag pushes.

Changes:

  • Elevates claude.yml workflow permissions from read to write for contents/PRs/issues.
  • Elevates claude-code-review.yml permissions to allow writing PR/issue comments.
  • Extends release.yaml to run a new post-release job that asks Claude to generate and publish release notes via gh release edit.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/release.yaml Adds OIDC token permission and a new release-notes job that uses Claude to generate/edit release notes on tag pushes.
.github/workflows/claude.yml Grants Claude write permissions when triggered by issues/comments containing @claude.
.github/workflows/claude-code-review.yml Grants Claude write permissions to post review feedback on PRs.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 21 to 25
permissions:
contents: read
pull-requests: read
issues: read
contents: write
pull-requests: write
issues: write
id-token: write
Copy link
Member Author

Choose a reason for hiding this comment

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

@copilot this was added so @claude could create comments when it executes the PR. Is write not needed, or is there a better way to allow claude to generate comments?

Comment on lines 21 to 27
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
pull-requests: write
issues: write
id-token: write

Comment on lines +39 to +46
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: |
Generate release notes for the tag ${{ github.ref_name }}.
Use `git log` to find all commits since the previous tag.
Format the release notes in markdown with sections for Features, Bug Fixes, and Improvements (omit empty sections).
Use the `gh release edit ${{ github.ref_name }}` command to update the GitHub release body with the generated notes.
Copy link

Copilot AI commented Mar 17, 2026

@chrisghill I've opened a new pull request, #224, to work on those changes. Once the pull request is ready, I'll request review from you.

@chrisghill chrisghill closed this Mar 17, 2026
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.

5 participants