Skip to content

Commit 12a3d20

Browse files
authored
feat(automation): add Amber issue-to-PR automation system
Adds Amber background agent for automated GitHub issue handling. Features: - Auto-fix: Formatting, linting, trivial fixes (amber:auto-fix label) - Refactoring: Code structure improvements (amber:refactor label) - Test coverage: Add missing tests (amber:test-coverage label) - Execute proposals: Run approved implementation plans (/amber execute) Fixes: - Added id-token: write permission for OIDC/OAuth authentication - Replaced invalid prompt_file input with prompt (reading file content) - Removed non-existent auto_commit and commit_message inputs 🤖 Generated with Claude Code
1 parent 3b30d05 commit 12a3d20

File tree

2 files changed

+180
-204
lines changed

2 files changed

+180
-204
lines changed

.github/workflows/README.md

Lines changed: 12 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -97,22 +97,18 @@ This directory contains automated workflows for the Ambient Code Platform.
9797

9898
---
9999

100-
### 🔄 Amber Dependency Sync (`amber-dependency-sync.yml`)
100+
### 📋 Project Automation (`project-automation.yml`)
101101

102-
**Purpose**: Keeps Amber agent's dependency knowledge current.
102+
**Purpose**: Manages GitHub project board automation.
103103

104104
**Triggers**:
105-
- Daily at 7 AM UTC
106-
- Manual workflow dispatch
105+
- Issue/PR status changes
106+
- Label additions
107107

108108
**What It Does**:
109-
1. Extracts dependency versions from go.mod, pyproject.toml, package.json
110-
2. Updates `agents/amber.md` with current versions
111-
3. Validates sync accuracy
112-
4. Validates constitution compliance
113-
5. Auto-commits changes
114-
115-
**Documentation**: [Amber Automation Guide](../../docs/amber-automation.md)
109+
- Moves issues between project columns
110+
- Auto-assigns based on labels
111+
- Updates project metadata
116112

117113
---
118114

@@ -121,96 +117,13 @@ This directory contains automated workflows for the Ambient Code Platform.
121117
**Purpose**: Integrates Claude Code with GitHub workflows.
122118

123119
**Triggers**:
124-
- Issue/PR comments with @claude mentions
125-
- Issue/PR opened or assigned
126-
127-
**What It Does**:
128-
- Enables Claude Code AI assistance in issues/PRs
129-
- Provides AI-powered code review and suggestions
130-
- Supports fork-compatible checkouts
131-
132-
---
133-
134-
### 🔍 Claude Code Review (`claude-code-review.yml`)
135-
136-
**Purpose**: Automated code reviews using Claude.
137-
138-
**Triggers**:
139-
- Pull requests opened or synchronized
140-
141-
**What It Does**:
142-
1. Checks out PR head (supports forks)
143-
2. Minimizes old review comments
144-
3. Runs comprehensive code review
145-
4. Posts structured review (Blocker/Critical/Major/Minor issues)
146-
147-
**Requirements**:
148-
- `CLAUDE_CODE_OAUTH_TOKEN` secret configured
149-
150-
---
151-
152-
### 🛠️ Go Lint (`go-lint.yml`)
153-
154-
**Purpose**: Go code quality enforcement.
155-
156-
**Triggers**:
157-
- Push to main
158-
- Pull requests affecting Go code
159-
160-
**What It Does**:
161-
1. Detects changes to backend/operator Go code
162-
2. Checks gofmt formatting
163-
3. Runs go vet
164-
4. Runs golangci-lint
165-
166-
---
167-
168-
### 🎨 Frontend Lint (`frontend-lint.yml`)
169-
170-
**Purpose**: Frontend code quality enforcement.
171-
172-
**Triggers**:
173-
- Push to main
174-
- Pull requests affecting TypeScript/JavaScript code
175-
176-
**What It Does**:
177-
1. Detects changes to frontend code
178-
2. Runs ESLint
179-
3. TypeScript type checking
180-
4. Build validation (`npm run build`)
181-
182-
---
183-
184-
### 🚀 Production Release Deploy (`prod-release-deploy.yaml`)
185-
186-
**Purpose**: Production releases with semver versioning.
187-
188-
**Triggers**:
189-
- Manual workflow dispatch only
190-
191-
**What It Does**:
192-
1. Calculates next version (major/minor/patch bump)
193-
2. Generates changelog from git commits
194-
3. Creates git tag and GitHub release
195-
4. Builds all component images with release tag
196-
5. Deploys to production OpenShift cluster
197-
198-
**Requirements**:
199-
- `PROD_OPENSHIFT_SERVER` and `PROD_OPENSHIFT_TOKEN` secrets
200-
201-
---
202-
203-
### 📚 Documentation Deploy (`docs.yml`)
204-
205-
**Purpose**: Deploy MkDocs documentation to GitHub Pages.
206-
207-
**Triggers**:
208-
- Push to main
209-
- Manual workflow dispatch
120+
- Push to branches
121+
- PR creation/updates
210122

211123
**What It Does**:
212-
1. Builds docs with MkDocs in UBI9 container
213-
2. Deploys to GitHub Pages
124+
- Enables Claude Code suggestions in PRs
125+
- Provides AI-powered code review
126+
- Links to Claude Code sessions
214127

215128
---
216129

@@ -233,11 +146,6 @@ permissions:
233146
| Secret | Used By | Purpose |
234147
|--------|---------|---------|
235148
| `ANTHROPIC_API_KEY` | amber-issue-handler.yml | Claude API access |
236-
| `CLAUDE_CODE_OAUTH_TOKEN` | claude-code-review.yml | Claude Code action authentication |
237-
| `QUAY_USERNAME`, `QUAY_PASSWORD` | components-build-deploy.yml, prod-release-deploy.yaml | Quay.io registry access |
238-
| `REDHAT_USERNAME`, `REDHAT_PASSWORD` | components-build-deploy.yml, prod-release-deploy.yaml | Red Hat registry access |
239-
| `OPENSHIFT_SERVER`, `OPENSHIFT_TOKEN` | components-build-deploy.yml | OpenShift cluster access (dev) |
240-
| `PROD_OPENSHIFT_SERVER`, `PROD_OPENSHIFT_TOKEN` | prod-release-deploy.yaml | OpenShift cluster access (prod) |
241149
| `GITHUB_TOKEN` | All workflows | GitHub API access (auto-provided) |
242150

243151
### Command Injection Prevention

0 commit comments

Comments
 (0)