Interface RepositoryUpdate

    • Method Detail

      • allowForking

        Optional<Boolean> allowForking()
        Either true to allow private forks, or false to prevent private forks.

        Default: false

      • allowSquashMerge

        Optional<Boolean> allowSquashMerge()
        Allow squash merges
      • allowMergeCommit

        Optional<Boolean> allowMergeCommit()
        Allow merge commits
      • allowRebaseMerge

        Optional<Boolean> allowRebaseMerge()
        Allow rebase merges
      • allowUpdateBranch

        Optional<Boolean> allowUpdateBranch()
        Either true to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise.

        Default: false

      • defaultBranch

        Optional<String> defaultBranch()
        Updates the default branch for this repository.
      • deleteBranchOnMerge

        Optional<Boolean> deleteBranchOnMerge()
        Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.

        Default: false

      • isArchived

        Optional<Boolean> isArchived()
        Whether to archive this repository. false will unarchive a previously archived repository.

        Default: false

      • isTemplate

        Optional<Boolean> isTemplate()
        Either true to make this repo available as a template repository or false to prevent it. Default: false
      • squashMergeCommitMessage

        Optional<String> squashMergeCommitMessage()
        The default value for a squash merge commit message:

        PR_BODY - default to the pull request's body. COMMIT_MESSAGES - default to the branch's commit messages. BLANK - default to a blank commit message. Can be one of: PR_BODY, COMMIT_MESSAGES, BLANK

      • squashMergeCommitTitle

        Optional<String> squashMergeCommitTitle()
        squash_merge_commit_title string The default value for a squash merge commit title:

        PR_TITLE - default to the pull request's title. COMMIT_OR_PR_TITLE - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). Can be one of: PR_TITLE, COMMIT_OR_PR_TITLE

      • mergeCommitMessage

        Optional<String> mergeCommitMessage()
        The default value for a merge commit message.

        PR_TITLE - default to the pull request's title. PR_BODY - default to the pull request's body. BLANK - default to a blank commit message.

      • mergeCommitTitle

        Optional<String> mergeCommitTitle()
        The default value for a merge commit title.

        PR_TITLE - default to the pull request's title. MERGE_MESSAGE - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). Can be one of: PR_TITLE, MERGE_MESSAGE

      • teamId

        Optional<Integer> teamId()
        The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. Default: false
      • visibility

        Optional<String> visibility()
        The visibility of the repo. Can be one of `public`, `private`, `internal`
      • webCommitSignoffRequired

        Optional<Boolean> webCommitSignoffRequired()
        Either true to require contributors to sign off on web-based commits, or false to not require contributors to sign off on web-based commits.

        Default: false