Skip to content

Add Auggie workflow files for AI-assisted development#1

Open
sharath333 wants to merge 1 commit intomainfrom
auggie/add-workflows
Open

Add Auggie workflow files for AI-assisted development#1
sharath333 wants to merge 1 commit intomainfrom
auggie/add-workflows

Conversation

@sharath333
Copy link
Copy Markdown

Summary

Adds 6 GitHub Actions workflow files that call reusable workflows from the augment-solutions/.github org for AI-assisted development.

Workflows Added

Workflow Trigger Purpose
auggie-implement-direct.yml Label auggieImplementDirect or /auggieImplementDirect comment Direct implementation from issues
auggie-plan.yml Label auggieImplementPlan or /auggieImplementPlan comment Generate implementation plans
auggie-pr-review.yml /auggiePRReview comment on PRs AI-powered PR review
auggie-spec.yml Label auggieSpec or /auggieApproveSpec comment Generate technical specifications
auggie-test-generate.yml /auggieTestGenerate comment on PRs Generate tests for PR changes
auggie-triage.yml Manual dispatch with workflow run ID Build failure triage

Prerequisites

  • AUGMENT_SESSION_AUTH secret must be configured in repository settings
  • Reusable workflows must be accessible from augment-solutions/.github org

Customizations for OpenSearch

  • auggie-plan.yml and auggie-spec.yml include OpenSearch-specific context in custom_instructions (Java/Gradle codebase, backward compatibility requirements, unit test expectations)

Pull Request opened by Augment Code with guidance from the PR author

Add 6 GitHub Actions workflow files that call reusable workflows from
the augment-solutions/.github org:

- auggie-implement-direct.yml: Direct implementation from issues
- auggie-plan.yml: Implementation plan generation for issues
- auggie-pr-review.yml: AI-powered PR review
- auggie-spec.yml: Technical spec generation for issues
- auggie-test-generate.yml: Test generation for PRs
- auggie-triage.yml: Build failure triage

Each workflow includes proper trigger conditions (labels/slash commands),
progress tracking via labels and reactions, and calls the corresponding
org-level reusable workflow with AUGMENT_SESSION_AUTH secret.
@augment-app-staging
Copy link
Copy Markdown

Code Review Triage 🛡️ · Requires Review

Recommendation: 👉 Start Assisted Review

What happens in the Assisted Review?

This link launches a collaborative AI-human code review that walks through:

  • PR Purpose
  • Risk Analysis
  • Architecture & Design
  • API Changes
  • Correctness & Logic
  • Tests
  • Readability & Consistency
Justification

This PR adds 6 new GitHub Actions workflow files under .github/workflows/, which is an opted-out directory that always requires full review. The workflows define CI/CD automation with elevated permissions (contents: write, pull-requests: write, issues: write), reference external reusable workflows from augment-solutions/.github, and use repository secrets (AUGMENT_SESSION_AUTH, GITHUB_TOKEN). Changes to workflow definitions and permissions require careful human review.

Reach out to #feedback-code-review-agent for feedback

Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot left a comment

Choose a reason for hiding this comment

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

Review completed. 4 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

if: github.event.issue.pull_request != null
runs-on: ubuntu-latest
permissions:
pull-requests: write
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

github.rest.reactions.createForIssueComment uses the issues-comments API, but this job’s permissions only include pull-requests: write, so the reaction call may be denied at runtime. Same applies to the post-review-comment job and the workflow-level permissions block.

Severity: medium

Other Locations
  • .github/workflows/auggie-pr-review.yml:21
  • .github/workflows/auggie-pr-review.yml:93

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.


permissions:
contents: write
pull-requests: write
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

This workflow calls github.rest.reactions.createForIssueComment, which typically requires issues: write, but the workflow/job permissions only grant pull-requests: write. That can cause the reaction steps to fail even when the trigger matches.

Severity: medium

Other Locations
  • .github/workflows/auggie-test-generate.yml:28
  • .github/workflows/auggie-test-generate.yml:99

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

const issue = context.payload.issue;

// Get all comments
const comments = await github.rest.issues.listComments({
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

The comment says “Get all comments”, but issues.listComments is paginated and this call only returns the first page, so longer issues may lose context in issue_comments. Also, passing the full concatenated comment bodies via step/job outputs can hit GitHub Actions output size limits on large threads.

Severity: medium

Other Locations
  • .github/workflows/auggie-plan.yml:85

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

#
# SETUP REQUIRED:
# - Add AUGMENT_SESSION_AUTH secret to your repository
# - Add GH_TOKEN secret (GitHub token with repo and workflow permissions)
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

The header says a GH_TOKEN secret is required, but the workflow actually passes ${{ secrets.GITHUB_TOKEN }} to gh_token, which is contradictory for setup docs. This may confuse users configuring the workflow.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot left a comment

Choose a reason for hiding this comment

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

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

if: github.event.issue.pull_request != null
runs-on: ubuntu-latest
permissions:
pull-requests: write
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

In .github/workflows/auggie-pr-review.yml line 29, this job calls reactions.createForIssueComment, but that endpoint requires issues: write rather than only pull-requests: write. The first slash-command comment will therefore 403 in check-comment and the reusable PR review never starts.

Severity: high

Other Locations
  • .github/workflows/auggie-pr-review.yml:93
  • .github/workflows/auggie-test-generate.yml:28
  • .github/workflows/auggie-test-generate.yml:99

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

fi

# Check if triggered by slash command
if [ "$EVENT_NAME" = "issue_comment" ]; then
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

In .github/workflows/auggie-implement-direct.yml line 51, issue_comment also fires for pull requests, but this branch never excludes context.payload.issue.pull_request. A /auggieImplementDirect comment on a PR conversation will therefore run the issue-only implementation flow against PR metadata instead of a GitHub issue.

Severity: medium

Other Locations
  • .github/workflows/auggie-plan.yml:65
  • .github/workflows/auggie-spec.yml:70

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

const issue = context.payload.issue;

// Get all comments
const comments = await github.rest.issues.listComments({
Copy link
Copy Markdown

@augment-app-staging augment-app-staging Bot Mar 31, 2026

Choose a reason for hiding this comment

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

In .github/workflows/auggie-implement-direct.yml line 120, github.rest.issues.listComments() only returns the first page by default, so issue_comments drops everything after the 30th comment. Long-running issues would send incomplete requirements/history to the implementation workflow.

Severity: medium

Other Locations
  • .github/workflows/auggie-plan.yml:85

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant