Skip to content

Commit cfb2751

Browse files
author
Tulga Tsogtgerel
committed
Integrate Auggie agent into GitHub Action
- Add Auggie SDK integration to process prompts from comments - Add new action inputs: prompt, augment_api_token, augment_api_url, workspace_root - Create auggie.ts module to handle Auggie agent initialization and execution - Extract comment reaction and reply logic into utils functions - Add logic to fetch issue/PR numbers from comments and post responses - Install Auggie CLI in action workflow - Update action.yml with new input parameters and environment variables - Refactor functions to use options objects to reduce parameter count - Move regex patterns to module level for better performance
1 parent 2a48669 commit cfb2751

File tree

6 files changed

+1169
-24
lines changed

6 files changed

+1169
-24
lines changed

action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ inputs:
1515
event_name:
1616
description: 'The GitHub event name (pull_request_review_comment or issue_comment)'
1717
required: true
18+
prompt:
19+
description: 'The prompt to send to Auggie agent'
20+
required: true
21+
augment_api_token:
22+
description: 'Augment API token for authentication'
23+
required: false
24+
augment_api_url:
25+
description: 'Augment API URL'
26+
required: false
27+
default: 'https://api.augmentcode.com'
28+
workspace_root:
29+
description: 'Workspace root path for Auggie to index (defaults to current directory)'
30+
required: false
1831

1932
outputs:
2033
success:
@@ -29,6 +42,10 @@ runs:
2942
with:
3043
bun-version: latest
3144

45+
- name: Install Auggie CLI
46+
run: bun install -g @augmentcode/auggie
47+
shell: bash
48+
3249
- name: Install Action Dependencies
3350
run: bun install --production
3451
shell: bash
@@ -42,5 +59,9 @@ runs:
4259
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
4360
INPUT_COMMENT_ID: ${{ inputs.comment_id }}
4461
INPUT_EVENT_NAME: ${{ inputs.event_name }}
62+
INPUT_PROMPT: ${{ inputs.prompt }}
63+
INPUT_AUGMENT_API_TOKEN: ${{ inputs.augment_api_token }}
64+
INPUT_AUGMENT_API_URL: ${{ inputs.augment_api_url }}
65+
INPUT_WORKSPACE_ROOT: ${{ inputs.workspace_root }}
4566
GITHUB_REPOSITORY: ${{ github.repository }}
4667

0 commit comments

Comments
 (0)