Struct octorust::types::ReposUpdateRequest [−][src]
pub struct ReposUpdateRequest {}Show fields
pub allow_merge_commit: bool, pub allow_rebase_merge: bool, pub allow_squash_merge: bool, pub archived: bool, pub default_branch: String, pub delete_branch_on_merge: bool, pub description: String, pub has_issues: bool, pub has_projects: bool, pub has_wiki: bool, pub homepage: String, pub is_template: bool, pub name: String, pub private: bool, pub security_and_analysis: Option<ReposUpdateRequestSecurityAnalysis>, pub visibility: Option<ReposUpdateRequestVisibility>,
Fields
allow_merge_commit: bool
Either true
to allow merging pull requests with a merge commit, or false
to prevent merging pull requests with merge commits.
allow_rebase_merge: bool
Either true
to allow rebase-merging pull requests, or false
to prevent rebase-merging.
allow_squash_merge: bool
Either true
to allow squash-merging pull requests, or false
to prevent squash-merging.
archived: bool
true
to archive this repository. **Note**: You cannot unarchive repositories through the API.
default_branch: String
Updates the default branch for this repository.
delete_branch_on_merge: bool
Either true
to allow automatically deleting head branches when pull requests are merged, or false
to prevent automatic deletion.
description: String
A short description of the repository.
has_issues: bool
Either true
to enable issues for this repository or false
to disable them.
has_projects: bool
Either true
to enable projects for this repository or false
to disable them. **Note:** If you’re creating a repository in an organization that has disabled repository projects, the default is false
, and if you pass true
, the API returns an error.
has_wiki: bool
Either true
to enable the wiki for this repository or false
to disable it.
homepage: String
A URL with more information about the repository.
is_template: bool
Either true
to make this repo available as a template repository or false
to prevent it.
name: String
The name of the repository.
private: bool
Either true
to make the repository private or false
to make it public. Default: false
.
**Note**: You will get a 422
error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private. **Note**: You will get a 422
error if the organization restricts changing repository visibility to organization owners and a non-owner tries to change the value of private.
security_and_analysis: Option<ReposUpdateRequestSecurityAnalysis>
Specify which security and analysis features to enable or disable. For example, to enable GitHub Advanced Security, use this data in the body of the PATCH request: {"security_and_analysis": {"advanced_security": {"status": "enabled"}}}
. If you have admin permissions for a private repository covered by an Advanced Security license, you can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo}
request.
visibility: Option<ReposUpdateRequestVisibility>
Can be public
or private
. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility
can also be internal
. The visibility
parameter overrides the private
parameter when you use both along with the nebula-preview
preview header.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReposUpdateRequest
impl Send for ReposUpdateRequest
impl Sync for ReposUpdateRequest
impl Unpin for ReposUpdateRequest
impl UnwindSafe for ReposUpdateRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more