-
Notifications
You must be signed in to change notification settings - Fork 31
feat(automation): Add Amber issue-to-PR automation system #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if: | | ||
| (github.event.label.name == 'amber:auto-fix' || | ||
| github.event.label.name == 'amber:refactor' || | ||
| github.event.label.name == 'amber:test-coverage' || | ||
| contains(github.event.comment.body, '/amber execute')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restrict /amber execute to trusted commenters
The workflow listens to issue_comment events and the only guard before running with contents: write permissions and the Anthropic API key is the label/command check here. Without checking github.event.comment.author_association (or similar), any external user who can comment on a public issue can post /amber execute and drive a run that clones the repo, creates branches, and pushes commits with your secrets. Lock the job to trusted roles or remove secrets from untrusted triggers to avoid a privilege-escalation path.
Useful? React with 👍 / 👎.
Claude Code ReviewSummaryThis PR introduces a comprehensive Amber background agent system for GitHub issue-to-PR automation. The vision and documentation are excellent, but there are critical implementation issues that will prevent the workflow from functioning. Overall Assessment: Outstanding planning and documentation, but core technical execution needs fixing before deployment. Issues by SeverityBlocker Issues
Critical Issues
Major Issues
Minor Issues
Positive Highlights
RecommendationsBefore Merge (Critical)
After Merge
Bottom Line: This is excellent vision and planning work with outstanding documentation. However, the core agent execution (issues 2-4) fundamentally won't work yet. The workflow will fail at npm install. Suggested Path Forward:
The planning is A+ but needs technical implementation to catch up with the ambition. |
Summary
This PR adds the complete Amber background agent system for automated issue-to-PR workflows via GitHub Actions.
Features
Automation Workflows
Components
Security
Files Added
.github/workflows/amber-issue-handler.yml- Main workflow.github/ISSUE_TEMPLATE/amber-*.yml- 3 issue templatesdocs/amber-quickstart.md- 5-minute setup guidedocs/amber-automation.md- Complete guide (4,000+ words)docs/diagrams/amber-workflow.md- Mermaid diagrams.claude/amber-config.yml- Automation policiesAMBER_SETUP.md- Setup checklistDocumentation
Testing
Created test issue #353 to verify workflow triggers correctly once this PR is merged.
Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com