Skip to content

cub draft propose

cub draft propose

Propose a draft for review

Synopsis

Propose a draft for review: create the change set it will land in, in the original space, and ask reviewers to look at it. The change set is named draft-. It is opened on no unit, so the original space is not locked: "cub draft land" opens it on the original units the draft changed when it lands.

--change-workflow governs the change set with a ChangeWorkflow, whose Final prerequisites gate closing it, which is the last step of landing. When the original space is a variant of a Component that lists the ChangeWorkflows it allows, the one given has to be among them, and without --change-workflow the change set is governed by the one workflow with no stages among them, when there is exactly one. A Component that requires a ChangeWorkflow refuses a change set without one, before it is created.

Proposing again changes the review requests: --request-review asks another reviewer, or re-requests a review already asked for, and --withdraw-review-request withdraws one. The description and the ChangeWorkflow are set when the change set is created. The description can be changed afterwards with "cub changeset update --description"; the ChangeWorkflow cannot.

Examples:

  cub draft propose acme-base/raise-web-memory --request-review alice \
      --description "Raise the web container's memory to 1Gi"

  # Gate landing on a ChangeWorkflow's approvals.
  cub draft propose acme-base/raise-web-memory --change-workflow platform/changeset-review \
      --request-review alice,bob
cub draft propose <draft> [flags]

Options

      --change-workflow string            ChangeWorkflow to govern the change set, as <slug> (in the original space), <space>/<slug> or ID; set when it is created
      --description string                description of the change, for review, recorded on the change set when it is created
  -h, --help                              help for propose
      --request-review strings            ask a user (username or ID) to review the change set. Asking again re-requests the review (can be repeated or comma-separated)
      --withdraw-review-request strings   withdraw the review requested of a user (username or ID) (can be repeated or comma-separated)

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO

  • cub draft - Draft a change to a space in a space of its own, then land it