Skip to content

feat(client): add WorkbenchPrFollowup mutation - #3922

Merged
floreks merged 1 commit into
masterfrom
feat/client-pr-followup-for-workbench
Jul 28, 2026
Merged

feat(client): add WorkbenchPrFollowup mutation#3922
floreks merged 1 commit into
masterfrom
feat/client-pr-followup-for-workbench

Conversation

@floreks

@floreks floreks commented Jul 28, 2026

Copy link
Copy Markdown
Member
  • Introduce WorkbenchPrFollowup mutation for handling follow-up operations

Test Plan

Test environment: https://console.your-env.onplural.sh/

Checklist

  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have deployed the agent to a test environment and verified that it works as expected (required only when changing agent code).

Plural Flow: console

- Introduce `WorkbenchPrFollowup` mutation for handling follow-up operations
@floreks floreks self-assigned this Jul 28, 2026
@floreks floreks added the enhancement New feature or request label Jul 28, 2026
@floreks floreks changed the title feat(workbench): add WorkbenchPrFollowup mutation feat(client): add WorkbenchPrFollowup mutation Jul 28, 2026
@soffi-ai

soffi-ai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Soffi AI Summary

This PR extends the Go GraphQL client (go/client) to support a new WorkbenchPrFollowup mutation, enabling the AI Workbench to trigger follow-up operations on pull requests by URL. The motivation is to allow the workbench to react to and act upon existing PRs (e.g., applying further AI-driven changes or reviews after a PR is created), closing a gap in the workbench's PR automation lifecycle.

Two supporting model additions accompany the core mutation: a ClusterID field on AgentRuntimeAttributes (required for user-authenticated upserts) and a Sentinels capability flag on WorkbenchInfrastructure/WorkbenchInfrastructureAttributes. All changes are auto-generated from the updated .graphql operation file and regenerated client.go/models_gen.go — no manual edits to generated artifacts.

Commits

Commit Summary
fff2334 Adds the WorkbenchPrFollowup GraphQL mutation to the Go client, including the operation definition in workbench.graphql, generated request/response types in client.go, model updates in models_gen.go (adding ClusterID to AgentRuntimeAttributes and Sentinels to WorkbenchInfrastructure), and registration in the persisted-queries manifest.

Deploy in Soffi


Updated: 2026-07-28 09:05 UTC

@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds a generated Go client method for the WorkbenchPrFollowup GraphQL mutation.

  • Registers the operation in the persisted-query manifest.
  • Generates response types matching the mutation’s WorkbenchJobActivity selection.
  • Refreshes generated models with current schema fields for agent runtimes and workbench infrastructure.

Confidence Score: 5/5

The PR appears safe to merge, with the generated client operation aligned with the existing server schema and persisted-query workflow.

The mutation arguments, selected response fields, nullability mappings, generated request method, and persisted-query registration are consistent, and the incidental optional model additions do not alter current callers.

Important Files Changed

Filename Overview
go/client/client.go Adds the generated client interface method, response model, operation document, request implementation, and operation-name registration; these match the server schema.
go/client/graph/workbench.graphql Defines the follow-up mutation with arguments and selected fields consistent with the server-side GraphQL contract.
go/client/generated/persisted-queries/queries.json Regenerates the persisted-query registry to include the new operation.
go/client/models_gen.go Refreshes generated models with optional schema-backed fields without changing existing callers’ serialization behavior.

Reviews (1): Last reviewed commit: "feat(workbench): add WorkbenchPrFollowup..." | Re-trigger Greptile

@floreks
floreks merged commit 610dee4 into master Jul 28, 2026
48 checks passed
@floreks
floreks deleted the feat/client-pr-followup-for-workbench branch July 28, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants