Skip to content

Commit ccef394

Browse files
jeremyederclaude
andcommitted
Add ambient-action workflow for issue comment automation
Triggers an ACP session when org members comment @ambient on issues. Restricted to OWNER and MEMBER author associations for security. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4717397 commit ccef394

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ambient.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Ambient
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
ambient:
9+
if: >-
10+
startsWith(github.event.comment.body, '@ambient') &&
11+
contains(fromJSON('["OWNER","MEMBER"]'), github.event.comment.author_association)
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: ambient-code/ambient-action@v2
15+
with:
16+
api-url: ${{ secrets.AMBIENT_API_URL }}
17+
api-token: ${{ secrets.AMBIENT_BOT_TOKEN }}
18+
project: gps-ambient-action
19+
prompt: ${{ github.event.comment.body }}
20+
display-name: "Issue #${{ github.event.issue.number }}"
21+
repos: '[{"url": "https://github.com/${{ github.repository }}", "branch": "main", "autoPush": true}]'
22+
labels: '{"source": "github-issue", "issue": "${{ github.event.issue.number }}"}'

0 commit comments

Comments
 (0)