Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/toml-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,18 +437,18 @@ merge-queue = {
# (optional - default `false`)
enabled = false
}
# Whether to prevent branch creation.
# Whether to prevent branch or tag creation.
# (optional - default `true`)
prevent-creation = true
# Whether to prevent branch deletion.
# Whether to prevent branch or tag deletion.
# (optional - default `true`)
prevent-deletion = true
# Whether to prevent force pushes to the branch.
# Whether to prevent force pushes to the branch or tag.
# (optional - default `true`)
prevent-force-push = true
# Whether to prevent updates to the branch.
# (optional - default `false`)
prevent-update = false
# Whether to prevent updates (pushes) to the branch or tag.
# (optional - default `true`)
prevent-update = true
# Whether the protection applies to branches or tags.
# Options are "branch" or "tag".
# (optional - default `branch`)
Expand Down
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ pub const fn branch_protection_default_prevent_creation() -> bool {
}

pub const fn branch_protection_default_prevent_update() -> bool {
false
true
}

pub const fn branch_protection_default_prevent_deletion() -> bool {
Expand Down
4 changes: 2 additions & 2 deletions tests/static-api/_expected/v1/repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"allowed_merge_apps": [],
"merge_queue": false,
"prevent_creation": true,
"prevent_update": false,
"prevent_update": true,
"prevent_deletion": true,
"prevent_force_push": true
}
Expand Down Expand Up @@ -72,7 +72,7 @@
"allowed_merge_apps": [],
"merge_queue": false,
"prevent_creation": true,
"prevent_update": false,
"prevent_update": true,
"prevent_deletion": true,
"prevent_force_push": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/static-api/_expected/v1/repos/archived_repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"allowed_merge_apps": [],
"merge_queue": false,
"prevent_creation": true,
"prevent_update": false,
"prevent_update": true,
"prevent_deletion": true,
"prevent_force_push": true
}
Expand Down
2 changes: 1 addition & 1 deletion tests/static-api/_expected/v1/repos/some_repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"allowed_merge_apps": [],
"merge_queue": false,
"prevent_creation": true,
"prevent_update": false,
"prevent_update": true,
"prevent_deletion": true,
"prevent_force_push": true
}
Expand Down
Loading