Skip to content

cml-pr failure handling #758

Open
@casperdcl

Description

@casperdcl
  • p1/p0?: cml pr should complain (exit non-zero) if a PR already exists, and also have a --force flag to suppress the warning and force-push an update to the PR. This is a likely scenario in case of e.g.
    • restarted workflow, or
    • long-running job where the user wants to open a draft PR and update it multiple times
  • p2: if branch "${BASE}-cml-pr-${SHA}" already exists on the remote but there is no associated PR, then cmp pr fails. Instead, it should open a PR.

originally from iterative/cml.dev#114 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions