Exemplo n.º 1
0
 public static bool EnsureWebHook(ProjectHook webHook)
 {
     return webHook.BuildEvents && webHook.PushEvents && webHook.MergeRequestsEvents && !webHook.EnableSSLVerification;
 }
Exemplo n.º 2
0
 public ProjectHook UpdateProjectHook(Project project, ProjectHook hook, Uri uri, bool mergeRequestEvents, bool pushEvents, bool buildEvents)
 {
     var repository = this.client.GetRepository(project.Id);
     return repository.ProjectHooks.Update(hook.Id, new ProjectHookUpsert() { Url = uri, MergeRequestsEvents = mergeRequestEvents, PushEvents = pushEvents, BuildEvents = buildEvents, EnableSSLVerification = false});
 }