Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ yarn-error.log*
# TypeScript build info (but keep dist/ for GitHub Actions)
*.tsbuildinfo

# TypeScript compiled output in src/ (we use tsx to run directly)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment "we use tsx to run directly" is misleading in the context of this PR. According to action.yml, the action runs pre-compiled JavaScript from the dist/ directory (node ${{ github.action_path }}/dist/index.js), not TypeScript via tsx.

Suggested improvement:

# TypeScript compiled output in src/ (dist/ contains the built action)

src/**/*.js
src/**/*.d.ts
src/**/*.js.map
src/**/*.d.ts.map

# Test coverage
coverage/

Expand Down
12 changes: 6 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Use the built-in npm scripts for easy version bumping:

```bash
# For patch releases (bug fixes): 0.1.0 -> 0.1.1
bun run version:patch
npm run version:patch

# For minor releases (new features): 0.1.0 -> 0.2.0
bun run version:minor
npm run version:minor

# For major releases (breaking changes): 0.1.0 -> 1.0.0
bun run version:major
npm run version:major
```

These scripts will:
Expand All @@ -31,13 +31,13 @@ If you prefer manual control:
1. **Update the version in package.json:**

```bash
bun version 0.1.1 # or whatever version you want
npm version 0.1.1 # or whatever version you want
```

2. **Type check the project:**

```bash
bun run typecheck
npm run typecheck
```

3. **Commit the changes:**
Expand Down Expand Up @@ -93,7 +93,7 @@ This allows users to pin to major versions for automatic updates:

**Type check failures:**

- Run `bun run typecheck` locally to check for TypeScript errors
- Run `npm run typecheck` locally to check for TypeScript errors
- Ensure all dependencies are properly installed

**Release not created:**
Expand Down
39 changes: 28 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,32 @@ runs:
env:
CUSTOM_GUIDELINES: ${{ inputs.custom_guidelines }}

- name: Run Augment Agent
uses: augmentcode/augment-agent@v0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
augment_session_auth: ${{ inputs.augment_session_auth }}
github_token: ${{ inputs.github_token }}
template_directory: "${{ github.action_path }}/templates"
pull_number: ${{ inputs.pull_number }}
repo_name: ${{ inputs.repo_name }}
custom_context: ${{ steps.custom_context.outputs.context }}
model: ${{ inputs.model }}
rules: ${{ inputs.rules }}
mcp_configs: ${{ inputs.mcp_configs }}
node-version: "22"

- name: Install Dependencies
run: npm ci --production=false
shell: bash
working-directory: ${{ github.action_path }}

- name: Build TypeScript
run: npm run build
shell: bash
working-directory: ${{ github.action_path }}

- name: Run Augment Agent
run: node ${{ github.action_path }}/dist/index.js
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical Issue: This step attempts to run node ${{ github.action_path }}/dist/index.js, but the dist/ directory doesn't exist in the repository and is excluded by .gitignore.

This will cause the action to fail with a "Cannot find module" error.

Required actions:

  1. Remove dist from .gitignore (currently on line 86 of .gitignore)
  2. Run npm run build locally to generate the dist/ directory
  3. Commit the dist/ directory with all compiled artifacts
  4. Add dist/ to the files field in package.json

Without these changes, the action cannot execute successfully.

shell: bash
env:
INPUT_AUGMENT_SESSION_AUTH: ${{ inputs.augment_session_auth }}
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_PULL_NUMBER: ${{ inputs.pull_number }}
INPUT_REPO_NAME: ${{ inputs.repo_name }}
INPUT_CUSTOM_GUIDELINES: ${{ inputs.custom_guidelines }}
INPUT_MODEL: ${{ inputs.model }}
INPUT_RULES: ${{ inputs.rules }}
INPUT_MCP_CONFIGS: ${{ inputs.mcp_configs }}
INPUT_TEMPLATE_DIRECTORY: "${{ github.action_path }}/templates"
INPUT_CUSTOM_CONTEXT: ${{ steps.custom_context.outputs.context }}
14 changes: 0 additions & 14 deletions bun.lock

This file was deleted.

Loading