@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo, branch: String, protection: gitbucket.core.api.ApiBranchProtection, knownContexts: Seq[String], info: Option[Any])(implicit context: gitbucket.core.controller.Context) @import context._ @import gitbucket.core.view.helpers._ @import gitbucket.core.model.WebHook._ @check(bool:Boolean)={@if(bool){ checked}} @html.main(s"Branch protection for ${branch}", Some(repository)){ @html.menu("settings", repository){ @menu("branches", repository){ @helper.html.information(info)
Branch protection options saved
Branch protection for @branch
Protect this branch

Disables force-pushes to this branch and prevents it from being deleted.

Require status checks to pass before merging

Choose which status checks must pass before branches can be merged into test. When enabled, commits must first be pushed to another branch, then merged or pushed directly to test after status checks have passed.

Include administrators

Enforce required status checks for repository administrators.

Status checks found in the last week for this repository
@knownContexts.map { context =>
@context
}
} } }