Skip to content

Conversation

@jeremyeder
Copy link
Collaborator

Fix

Configures branch_prefix: "amber/" for the claude-code-action to match the manually created branches.

Problem

The workflow manually creates branches with amber/ prefix, but the claude-code-action was using default claude/ prefix, causing PR creation to fail with:

Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"}

Solution

  • Added branch_prefix: "amber/" to the action configuration
  • This aligns the action's branch management with our manually created branches
  • Ensures commits are pushed to the correct remote branch

Testing

Will test by triggering Amber workflow after merge.

🤖 Generated with Claude Code

jeremyeder and others added 5 commits November 21, 2025 15:39
Implements complete GitHub Actions workflow for automated development
tasks triggered by issue labels.

Features:
- Auto-fix workflow (amber:auto-fix) - formatting, linting, trivial fixes
- Refactoring workflow (amber:refactor) - break large files, extract patterns
- Test coverage workflow (amber:test-coverage) - add missing tests

Components:
- GitHub Actions workflow with security best practices
- Structured issue templates for guided UX
- Comprehensive documentation (quickstart + full guide)
- Configuration file with risk-based automation policies
- Workflow diagrams and architecture documentation

Security:
- No command injection (env var injection prevention)
- Minimal permissions (contents:write, issues:write, pull-requests:write)
- Token redaction in logs
- Branch protection (never pushes to main)

Documentation:
- docs/amber-quickstart.md - 5-minute setup guide
- docs/amber-automation.md - Complete 4,000+ word guide
- docs/diagrams/amber-workflow.md - Mermaid diagrams
- AMBER_SETUP.md - Setup checklist and testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Implements complete GitHub Actions workflow for automated development
tasks triggered by issue labels.

Features:
- Auto-fix workflow (amber:auto-fix) - formatting, linting, trivial fixes
- Refactoring workflow (amber:refactor) - break large files, extract patterns
- Test coverage workflow (amber:test-coverage) - add missing tests

Components:
- GitHub Actions workflow with security best practices
- Structured issue templates for guided UX
- Comprehensive documentation (quickstart + full guide)
- Configuration file with risk-based automation policies
- Workflow diagrams and architecture documentation

Security:
- No command injection (env var injection prevention)
- Minimal permissions (contents:write, issues:write, pull-requests:write)
- Token redaction in logs
- Branch protection (never pushes to main)

Documentation:
- docs/amber-quickstart.md - 5-minute setup guide
- docs/amber-automation.md - Complete 4,000+ word guide
- docs/diagrams/amber-workflow.md - Mermaid diagrams
- AMBER_SETUP.md - Setup checklist and testing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add id-token: write permission for OIDC authentication
- Replace invalid prompt_file input with prompt input
- Read prompt file content and pass as string to action
- Fixes GitHub Actions error: 'Unexpected input(s) prompt_file'

Resolves workflow failure at:
https://github.com/ambient-code/platform/actions/runs/19751306206
- Aligns action's branch management with manually created amber/ branches
- Fixes PR creation error: 'Validation Failed: field head code invalid'
- Ensures claude-code-action pushes to correct remote branch
@github-actions

This comment has been minimized.

@jeremyeder
Copy link
Collaborator Author

Closing this PR as the issues it addressed have been resolved:

  1. The branch_prefix fix was already merged in PR fix(workflows): configure claude-code-action branch prefix for Amber #382
  2. The workflow architecture changed in PR fix(workflows): enable full Claude Code tool access for Amber #385 to use direct Claude CLI execution instead of claude-code-action
  3. PR fix(workflows): improve Amber no-changes detection and reporting #386 completed the transition with CLI syntax fixes

The workflow now runs Claude Code with full tool access via direct CLI, making this PR's changes obsolete. Thank you for the contribution!

@jeremyeder jeremyeder closed this Nov 28, 2025
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.

1 participant