Merged
Conversation
There was a problem hiding this comment.
2 issues found across 16 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="pkg/cmd/document/list-versions/list_versions.go">
<violation number="1" location="pkg/cmd/document/list-versions/list_versions.go:120">
P2: Validate `--order-direction` before building `orderBy`; currently invalid values are forwarded to GraphQL instead of failing fast with a clear CLI error.</violation>
</file>
<file name="pkg/cmd/document/create-draft/create_draft.go">
<violation number="1" location="pkg/cmd/document/create-draft/create_draft.go:58">
P2: This command introduces a positional `document-id` argument, but project CLI conventions require user inputs to be passed via flags.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
8c147cd to
8543fb6
Compare
Add list, create, view, update, delete, archive, and unarchive subcommands under `prb document`. Add document version subcommands: list-versions, view-version, create-draft, delete-draft, update-version, publish-major, and publish-minor. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
8543fb6 to
fbb4c29
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add list, create, view, update, delete, archive, and unarchive subcommands under
prb document.Add document version subcommands: list-versions, view-version, create-draft, delete-draft, update-version, publish-major, and publish-minor.
Summary by cubic
Adds a new
prb documentCLI for document and version management, including create/list/view/update/delete, archive flows, version drafts, and publishing. Supports sorting, filtering, pagination, interactive prompts, and JSON output.prb documentcommand.list,create,view,update,delete,archive,unarchive(includes--trust-center-visibilityon create/update).list-versions,view-version,create-draft,update-version,delete-draft,publish-major,publish-minor(optional--changelog).listandlist-versions;--output jsonsupported forlist,view,list-versions, andview-version.createand safe delete confirmations; input enums validated.Written for commit fbb4c29. Summary will update on new commits.