]> source.dussan.org Git - gitea.git/commit
Allow Protected Branches to Whitelist Deploy Keys (#8483)
authorzeripath <art27@cantab.net>
Mon, 21 Oct 2019 08:21:45 +0000 (09:21 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 08:21:45 +0000 (09:21 +0100)
commit0bfe5eb10b1953cb1f85f7a7b6eb5f24724b8021
tree8844040cf40b0f37c9457eade166a8bff1a91152
parentb1c1e1549b50bbd5929e2c4dd72a1dbf4b511b50
Allow Protected Branches to Whitelist Deploy Keys (#8483)

Add an option to protected branches to add writing deploy keys to the whitelist for pushing.

Please note this is technically a breaking change: previously if the owner of a repository was on the whitelist then any writing deploy key was effectively on the whitelist. This option will now need to be set if that is desired.

Closes #8472

Details:
* Allow Protected Branches to Whitelist Deploy Keys
* Add migration
* Ensure that IsDeployKey is set to false on the http pushes
* add not null default false
13 files changed:
cmd/hook.go
cmd/serv.go
models/branches.go
models/migrations/migrations.go
models/migrations/v103.go [new file with mode: 0644]
models/update.go
modules/auth/repo_form.go
modules/private/hook.go
options/locale/locale_en-US.ini
routers/private/hook.go
routers/repo/http.go
routers/repo/setting_protected_branch.go
templates/repo/settings/protected_branch.tmpl