Add require signed commit for protected branch (#9708)
* Add require signed commit for protected branch
* Fix fmt
* Make editor show if they will be signed
* bugfix
* Add basic merge check and better information for CRUD
* linting comment
* Add descriptors to merge signing
* Slight refactor
* Slight improvement to appearances
* Handle Merge API
* manage CRUD API
* Move error to error.go
* Remove fix to delete.go
* prep for merge
* need to tolerate \r\n in message
* check protected branch before trying to load it
* Apply suggestions from code review
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* fix commit-reader
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
@ -748,6 +748,7 @@ editor.name_your_file = Name your file…
editor.filename_help=Add a directory by typing its name followed by a slash ('/'). Remove a directory by typing backspace at the beginning of the input field.
editor.or=or
editor.cancel_lower=Cancel
editor.commit_signed_changes=Commit Signed Changes
editor.commit_changes=Commit Changes
editor.add_tmpl=Add '<filename>'
editor.add=Add '%s'
@ -780,6 +781,9 @@ editor.unable_to_upload_files = Failed to upload files to '%s' with error: %v
editor.upload_file_is_locked=File '%s' is locked by %s.
editor.upload_files_to_dir=Upload files to '%s'
editor.cannot_commit_to_protected_branch=Cannot commit to protected branch '%s'.
editor.no_commit_to_branch=Unable to commit directly to branch because:
editor.user_no_push_to_branch=User cannot push to branch
editor.require_signed_commit=Branch requires a signed commit
settings.protect_approvals_whitelist_teams=Whitelisted teams for reviews:
settings.dismiss_stale_approvals=Dismiss stale approvals
settings.dismiss_stale_approvals_desc=When new commits that change the content of the pull request are pushed to the branch, old approvals will be dismissed.
settings.require_signed_commits=Require Signed Commits
settings.require_signed_commits_desc=Reject pushes to this branch if they are unsigned or unverifiable