Skip to content

feat(workbenches): implement PR follow-up feature - #789

Open
floreks wants to merge 5 commits into
mainfrom
sebastian/prod-5078-plural-workbencheswb-pr-followup-command
Open

feat(workbenches): implement PR follow-up feature#789
floreks wants to merge 5 commits into
mainfrom
sebastian/prod-5078-plural-workbencheswb-pr-followup-command

Conversation

@floreks

@floreks floreks commented Jul 28, 2026

Copy link
Copy Markdown
Member
  • Add CreateWorkbenchPRFollowup method in console client mocks.
  • Implement pr-followup command to send follow-up prompts for workbench jobs.
  • Include workbenches command in CLI to manage Plural workbenches.
  • Rename ListaStacks to ListStacks in multiple files for consistency.
  • Update dependencies in go.mod.

Add tests for workbench features, including PR follow-up client and resolver logic.

Summary

Labels

Test Plan

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • I have added relevant labels to this PR to help with categorization for release notes.

- Add `CreateWorkbenchPRFollowup` method in console client mocks.
- Implement `pr-followup` command to send follow-up prompts for workbench jobs.
- Include `workbenches` command in CLI to manage Plural workbenches.
- Rename `ListaStacks` to `ListStacks` in multiple files for consistency.
- Update dependencies in `go.mod`.

Add tests for workbench features, including PR follow-up client and resolver logic.
@floreks floreks self-assigned this Jul 28, 2026
@floreks floreks added the enhancement New feature or request label Jul 28, 2026
@linear

linear Bot commented Jul 28, 2026

Copy link
Copy Markdown

PROD-5078

@socket-security

socket-security Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub.com/​pluralsh/​console/​go/​client@​v1.76.5 ⏵ v1.79.1100 +110010010070

View full report

Comment thread pkg/console/console.go
@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds workbench PR follow-up support to the CLI.

  • Registers the new workbenches pr-followup command.
  • Resolves pull request URLs from explicit URLs, Git commit subjects, and repository remotes.
  • Adds the Console client operation, mocks, and resolver/command tests.
  • Renames the internal stack-listing method and updates dependencies.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
cmd/command/workbenches/pr_followup_service.go Adds prompt validation, pull request resolution, follow-up creation, and optional missing-job handling.
cmd/command/workbenches/pull_request_resolver.go Adds provider-aware pull request URL inference from explicit inputs and Git metadata.
cmd/command/workbenches/workbenches.go Defines and wires the new workbenches PR follow-up CLI command.
pkg/console/workbenches.go Adds the Console GraphQL client wrapper for creating workbench PR follow-ups.
pkg/console/console.go Extends the internal Console client contract and consistently applies the stack-listing method rename.
go.mod Updates the Console client and associated transitive dependency selections.

Reviews (2): Last reviewed commit: "refactor(workbenches): remove pr_followu..." | Re-trigger Greptile

floreks added 2 commits July 28, 2026 15:34
…tallation

- Fix typo in `ListStacks` API error response parameter in `stacks.go`
- Update Plural CLI installation command with specific commit hash in GitHub Actions workflow
- Delete file `pr_followup_service_test.go` as it is no longer needed
- Modify `pr_followup_service.go` to use `console.ConsoleClient` directly
- Simplify client interface in `NewPRFollowupService` function
@floreks

floreks commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

@greptileai

@michaeljguarino

Copy link
Copy Markdown
Member

@floreks made a few basic modifications to have this use the new queued prompt based mutations, feel free to modify it as you wish (think the gql client code generated weirdly for instance).

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