(refs #1154)Fix path of request to the branch protection API

This commit is contained in:
Naoki Takezoe
2016-04-20 01:13:08 +09:00
parent 90b63090cc
commit b916595da3

View File

@@ -107,7 +107,7 @@ function submitForm(e){
var protection = getValue();
$.ajax({
method:'PATCH',
url:'/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)',
url:'@path/api/v3/repos/@repository.owner/@repository.name/branches/@encodeRefName(branch)',
contentType: 'application/json',
dataType: 'json',
data:JSON.stringify({protection:protection}),