|
|
@ -62,8 +62,6 @@ func (m *webhookNotifier) NotifyIssueClearLabels(doer *models.User, issue *model |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -78,8 +76,6 @@ func (m *webhookNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", oldRepo.ID, err) |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", oldRepo.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(oldRepo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
u := repo.MustOwner() |
|
|
|
u := repo.MustOwner() |
|
|
@ -93,8 +89,6 @@ func (m *webhookNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -109,8 +103,6 @@ func (m *webhookNotifier) NotifyCreateRepository(doer *models.User, u *models.Us |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
Sender: doer.APIFormat(), |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -127,7 +119,6 @@ func (m *webhookNotifier) NotifyDeleteRepository(doer *models.User, repo *models |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
log.Error("PrepareWebhooks [repo_id: %d]: %v", repo.ID, err) |
|
|
|
} |
|
|
|
} |
|
|
|
go webhook_module.HookQueue.Add(repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -175,8 +166,6 @@ func (m *webhookNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *mo |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (m *webhookNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string) { |
|
|
|
func (m *webhookNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string) { |
|
|
@ -217,8 +206,6 @@ func (m *webhookNotifier) NotifyIssueChangeTitle(doer *models.User, issue *model |
|
|
|
|
|
|
|
|
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -259,8 +246,6 @@ func (m *webhookNotifier) NotifyIssueChangeStatus(doer *models.User, issue *mode |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v, is_closed: %v]: %v", issue.IsPull, isClosed, err) |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v, is_closed: %v]: %v", issue.IsPull, isClosed, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.Repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -274,8 +259,6 @@ func (m *webhookNotifier) NotifyNewIssue(issue *models.Issue) { |
|
|
|
Sender: issue.Poster.APIFormat(), |
|
|
|
Sender: issue.Poster.APIFormat(), |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -312,8 +295,6 @@ func (m *webhookNotifier) NotifyIssueChangeContent(doer *models.User, issue *mod |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -347,8 +328,6 @@ func (m *webhookNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme |
|
|
|
IsPull: c.Issue.IsPull, |
|
|
|
IsPull: c.Issue.IsPull, |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", c.ID, err) |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", c.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(c.Issue.Repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -364,8 +343,6 @@ func (m *webhookNotifier) NotifyCreateIssueComment(doer *models.User, repo *mode |
|
|
|
IsPull: issue.IsPull, |
|
|
|
IsPull: issue.IsPull, |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", comment.ID, err) |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", comment.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -395,8 +372,6 @@ func (m *webhookNotifier) NotifyDeleteComment(doer *models.User, comment *models |
|
|
|
IsPull: comment.Issue.IsPull, |
|
|
|
IsPull: comment.Issue.IsPull, |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", comment.ID, err) |
|
|
|
log.Error("PrepareWebhooks [comment_id: %d]: %v", comment.ID, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(comment.Issue.Repo.ID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -442,7 +417,5 @@ func (m *webhookNotifier) NotifyIssueChangeLabels(doer *models.User, issue *mode |
|
|
|
} |
|
|
|
} |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
log.Error("PrepareWebhooks [is_pull: %v]: %v", issue.IsPull, err) |
|
|
|
} else { |
|
|
|
|
|
|
|
go webhook_module.HookQueue.Add(issue.RepoID) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|