Interface RepositoryUpdate
-
- All Known Implementing Classes:
ImmutableRepositoryUpdate
@Immutable public interface RepositoryUpdate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Boolean>
allowAutoMerge()
Allow auto mergesOptional<Boolean>
allowForking()
Either true to allow private forks, or false to prevent private forks.Optional<Boolean>
allowMergeCommit()
Allow merge commitsOptional<Boolean>
allowRebaseMerge()
Allow rebase mergesOptional<Boolean>
allowSquashMerge()
Allow squash mergesOptional<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.Optional<String>
defaultBranch()
Updates the default branch for this repository.Optional<Boolean>
deleteBranchOnMerge()
Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent automatic deletion.Optional<String>
description()
DescriptionOptional<Boolean>
hasDownloads()
Does it have downloadsOptional<Boolean>
hasIssues()
Does it have issuesOptional<Boolean>
hasPages()
Does it have pagesOptional<Boolean>
hasProjects()
Does it have projectsOptional<Boolean>
hasWiki()
Does it have wikiOptional<String>
homepage()
Homepage URLOptional<Boolean>
isArchived()
Whether to archive this repository.Optional<Boolean>
isPrivate()
Is it privateOptional<Boolean>
isTemplate()
Either true to make this repo available as a template repository or false to prevent it.Optional<String>
mergeCommitMessage()
The default value for a merge commit message.Optional<String>
mergeCommitTitle()
The default value for a merge commit title.Optional<String>
squashMergeCommitMessage()
The default value for a squash merge commit message:Optional<String>
squashMergeCommitTitle()
squash_merge_commit_title string The default value for a squash merge commit title:Optional<Integer>
teamId()
The id of the team that will be granted access to this repository.Optional<String>
visibility()
The visibility of the repo.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.
-
-
-
Method Detail
-
allowForking
Optional<Boolean> allowForking()
Either true to allow private forks, or false to prevent private forks.Default: false
-
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
-
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`
-
-