dcloud git repositories update

Change description, visibility, default branch or archive state

IAM git:UpdateRepositoryChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud git repositories update repoId [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --descriptionOptional

    string

    One line about the repository, shown in lists and the About column

    Constraints: max 500 chars

  • --homepageOptional

    string

    The About link (http or https); null removes it

    Constraints: url, max 300 chars

    May be null.

  • --topicsOptional

    array of string

    Topics: lowercase letters, digits and hyphens, at most 20

    Constraints: /^[a-z0-9][a-z0-9-]{0,49}$/

  • --visibilityOptional

    enum

    Who can see it; making it public also needs git:PublishRepository

    One of: private, internal, public

  • --default-branchOptional

    string

    The branch clones check out and pull requests target by default

    Constraints: 1-100 chars

  • --is-archivedOptional

    boolean (--is-archived / --no-is-archived)

    true archives it (read-only: pushes, merges and edits refused); false unarchives

  • --allow-merge-commitOptional

    boolean (--allow-merge-commit / --no-allow-merge-commit)

    Pull requests may merge with a merge commit

  • --allow-squash-mergeOptional

    boolean (--allow-squash-merge / --no-allow-squash-merge)

    Pull requests may be squash-merged

  • --allow-rebase-mergeOptional

    boolean (--allow-rebase-merge / --no-allow-rebase-merge)

    Pull requests may be rebase-merged

  • --delete-branch-on-mergeOptional

    boolean (--delete-branch-on-merge / --no-delete-branch-on-merge)

    Delete the source branch when a pull request is merged

  • --default-workflow-permissionsOptional

    enum

    What a workflow job's GITHUB_TOKEN may do when its file sets no `permissions:`: restricted (contents and packages read; new repositories) or permissive (read and write)

    One of: restricted, permissive

Example

dcloud git repositories update repoId

Generated from the API description, the same one the API checks requests against and the CLI is built from.