Skip to content

Support PR Agents properly. On Helix, when does the PR ag...#2254

Open
chocobar wants to merge 3 commits into
mainfrom
feature/001635-support-pr-agents
Open

Support PR Agents properly. On Helix, when does the PR ag...#2254
chocobar wants to merge 3 commits into
mainfrom
feature/001635-support-pr-agents

Conversation

@chocobar
Copy link
Copy Markdown
Collaborator

Support PR Agents properly. On Helix, when does the PR agent even come into the picture? I created a project, set up a PR agent, set up a task, created a PR and merged. and I saw no interaction with the PR agent.

It appears that the PR agent only works with Azure DevOps repositories right now. GitHub and GitLab are not supported yet — they return an "unsupported external repository type" error.

The full trigger chain is:

  1. Task must be in pull_request status (i.e., a PR has been created)
  2. A git push happens to the feature branch
  3. PullRequestReviewsEnabled must be true on the project
  4. PullRequestReviewerHelixAppID must be set
  5. The repository must be Azure DevOps — GitHub/GitLab hit an unsupported path

I'm using a github repo.

Can you look into adding GitHub PR review support?


🔗 Open in Helix

🚀 Built with Helix

- Add api/pkg/types/github.go with GitHubRepositoryContext struct and
  Set/GetGitHubRepositoryContext helpers (mirrors azure_devops.go pattern)
- Add processGitHubPullRequest() handler to HelixCodeReviewTrigger:
  fetches PR details via GitHub API, sets context, calls runReviewSession()
- Add getGitHubClient() to the trigger (GitHub App > OAuth > PAT > password)
- Add ExternalRepositoryTypeGitHub case to ProcessGitPushEvent() switch

GitHub-backed projects with PullRequestReviewsEnabled and
PullRequestReviewerHelixAppID configured will now trigger the PR agent
on git push, just like Azure DevOps repositories.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Spec-Ref: helix-specs@af60281e9:001635_support-pr-agents
Add GitHub-specific PR review skills (PullRequestDiff and
CreateReviewComment) so the PR review agent can read diffs and
post inline review comments on GitHub pull requests, matching
the existing Azure DevOps PR review capability.

- Add ToolTypeGitHub and AssistantGitHub types
- Create GitHubPullRequestDiffTool (reads PR files/patches)
- Create GitHubCreateReviewCommentTool (inline + general comments)
- Register GitHub skills in inference_agent.go
- Add GitHubSkill.tsx config UI component
- Wire up Skills.tsx, types, flatten/unflatten logic
- Regenerate OpenAPI client with new types

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Spec-Ref: helix-specs@3e65f03c3
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Spec-Ref: helix-specs@f2e18ed31
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