Function repos_slash_create_commit_signature_protection

Source
pub async fn repos_slash_create_commit_signature_protection(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    branch: &str,
) -> Result<ProtectedBranchAdminEnforced, Error<ReposSlashCreateCommitSignatureProtectionError>>
Expand description

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub’s products in the GitHub Help documentation. When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.