helix-cli icon indicating copy to clipboard operation
helix-cli copied to clipboard

Add Claude Code Action for automatic Renovate PR fixes

Open trieloff opened this issue 1 month ago • 1 comments

Summary

This PR adds a GitHub Actions workflow that uses Claude Code to automatically fix common issues in Renovate dependency update PRs.

What it does

The workflow triggers on Renovate PRs (opened and synchronize events) and automatically:

  1. Fixes package-lock.json issues - Renovate often fails to correctly regenerate package-lock.json files. Claude will run npm install in both the root directory and packages/browser-injectables to ensure lock files are properly updated.

  2. Fixes small API changes - When tests fail due to minor API changes (≤5 lines of code), Claude will detect and fix them automatically.

  3. Performs security review - Checks dependency changes for known security issues and flags any concerns in a comment.

Example PRs with issues

  • #2622 - Required 3 manual commits to fix package-lock.json
  • #2621 - Similar package-lock issues
  • #2620 - Similar package-lock issues

Configuration

The workflow:

  • Uses CLAUDE_CODE_OAUTH_TOKEN from repository secrets (already configured)
  • Uses ADOBE_BOT_GITHUB_TOKEN for GitHub operations
  • Only runs on PRs from renovate[bot]
  • Has write permissions to fix issues and push commits

Testing

This workflow will activate on the next Renovate PR. Claude will analyze the PR, fix any issues, and commit the changes directly to the PR branch.

🤖 Generated with Claude Code

trieloff avatar Nov 03 '25 20:11 trieloff

This PR will trigger a minor release when merged.

github-actions[bot] avatar Nov 03 '25 20:11 github-actions[bot]