示例#1
0
 public ProjectHook Update(int hookId, ProjectHookUpsert hook)
 {
     return(_api.Put().With(hook).To <ProjectHook>(_path + "/" + hookId));
 }
示例#2
0
 public Branch Protect(string name)
 {
     return(_api.Put().To <Branch>(_repoPath + "/branches/" + name + "/protect"));
 }
示例#3
0
 public void Update(FileUpsert file)
 {
     _api.Put().With(file).Stream(_repoPath + "/files", s => { });
 }
示例#4
0
 public Issue Edit(int projectId, IssueEdit issueEdit)
 {
     return(_api.Put().With(issueEdit).To <Issue>(string.Format(SingleIssueUrl, projectId, issueEdit.Id)));
 }
示例#5
0
 public User Update(int id, UserUpsert user)
 {
     return(_api.Put().With(user).To <User>(User.Url + "/" + id));
 }
示例#6
0
 public MergeRequest Update(int mergeRequestId, MergeRequestUpdate mergeRequest)
 {
     return(_api
            .Put().With(mergeRequest)
            .To <MergeRequest>(_projectPath + "/merge_request/" + mergeRequestId));
 }
示例#7
0
 public Label Edit(LabelEdit label)
 {
     return(_api.Put().With(label).To <Label>(string.Format(ProjectLabelUrl, label.Id)));
 }