pub struct PullRequestMergeSettings {
pub is_merge_queue_enabled: Option<bool>,
pub squash_merge_allowed: Option<bool>,
pub auto_merge_allowed: Option<bool>,
pub rebase_merge_allowed: Option<bool>,
pub merge_commit_allowed: Option<bool>,
pub delete_branch_on_merge: Option<bool>,
pub merge_queue_merge_method: Option<PullRequestMergeMethod>,
}Expand description
Internal Merge settings and capabilities for a pull request’s repository, including which merge methods are allowed and whether features like merge queues and auto-merge are enabled.
Fields§
§is_merge_queue_enabled: Option<bool>Whether a merge queue is enabled for pull requests in this repository. When enabled, merges go through an ordered queue rather than being merged directly.
squash_merge_allowed: Option<bool>Whether squash merge is allowed for this pull request’s repository.
auto_merge_allowed: Option<bool>Whether auto-merge is allowed for the PR’s repository.
rebase_merge_allowed: Option<bool>Whether rebase merge is allowed for pull requests PR’s repository.
merge_commit_allowed: Option<bool>Whether merge commits are allowed for pull requests PR’s repository.
delete_branch_on_merge: Option<bool>Whether the branch will be deleted when the pull request is merged.
merge_queue_merge_method: Option<PullRequestMergeMethod>The merge method used by the merge queue, if applicable. Null when merge queue is not enabled or the method is not specified.
Trait Implementations§
Source§impl Clone for PullRequestMergeSettings
impl Clone for PullRequestMergeSettings
Source§fn clone(&self) -> PullRequestMergeSettings
fn clone(&self) -> PullRequestMergeSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more