Documentation ¶
Index ¶
- type Notifier
- type NullNotifier
- func (*NullNotifier) NotifyCreateIssueComment(doer *models.User, repo *models.Repository, issue *models.Issue, ...)
- func (*NullNotifier) NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository)
- func (*NullNotifier) NotifyDeleteComment(doer *models.User, c *models.Comment)
- func (*NullNotifier) NotifyDeleteRelease(doer *models.User, rel *models.Release)
- func (*NullNotifier) NotifyDeleteRepository(doer *models.User, repo *models.Repository)
- func (*NullNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository)
- func (*NullNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool)
- func (*NullNotifier) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)
- func (*NullNotifier) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue, addedLabels []*models.Label, ...)
- func (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue)
- func (*NullNotifier) NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, isClosed bool)
- func (*NullNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string)
- func (*NullNotifier) NotifyIssueClearLabels(doer *models.User, issue *models.Issue)
- func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository)
- func (*NullNotifier) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository)
- func (*NullNotifier) NotifyNewIssue(issue *models.Issue)
- func (*NullNotifier) NotifyNewPullRequest(pr *models.PullRequest)
- func (*NullNotifier) NotifyNewRelease(rel *models.Release)
- func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment)
- func (*NullNotifier) NotifyUpdateComment(doer *models.User, c *models.Comment, oldContent string)
- func (*NullNotifier) NotifyUpdateRelease(doer *models.User, rel *models.Release)
- func (*NullNotifier) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface { Run() NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository) NotifyDeleteRepository(doer *models.User, repo *models.Repository) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository) NotifyNewIssue(*models.Issue) NotifyIssueChangeStatus(*models.User, *models.Issue, bool) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string) NotifyIssueClearLabels(doer *models.User, issue *models.Issue) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue, addedLabels []*models.Label, removedLabels []*models.Label) NotifyNewPullRequest(*models.PullRequest) NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) NotifyPullRequestReview(*models.PullRequest, *models.Review, *models.Comment) NotifyCreateIssueComment(*models.User, *models.Repository, *models.Issue, *models.Comment) NotifyUpdateComment(*models.User, *models.Comment, string) NotifyDeleteComment(*models.User, *models.Comment) NotifyNewRelease(rel *models.Release) NotifyUpdateRelease(doer *models.User, rel *models.Release) NotifyDeleteRelease(doer *models.User, rel *models.Release) }
Notifier defines an interface to notify receiver
type NullNotifier ¶ added in v1.8.1
type NullNotifier struct { }
NullNotifier implements a blank notifier
func (*NullNotifier) NotifyCreateIssueComment ¶ added in v1.8.1
func (*NullNotifier) NotifyCreateIssueComment(doer *models.User, repo *models.Repository, issue *models.Issue, comment *models.Comment)
NotifyCreateIssueComment places a place holder function
func (*NullNotifier) NotifyCreateRepository ¶ added in v1.8.1
func (*NullNotifier) NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository)
NotifyCreateRepository places a place holder function
func (*NullNotifier) NotifyDeleteComment ¶ added in v1.8.1
func (*NullNotifier) NotifyDeleteComment(doer *models.User, c *models.Comment)
NotifyDeleteComment places a place holder function
func (*NullNotifier) NotifyDeleteRelease ¶ added in v1.8.1
func (*NullNotifier) NotifyDeleteRelease(doer *models.User, rel *models.Release)
NotifyDeleteRelease places a place holder function
func (*NullNotifier) NotifyDeleteRepository ¶ added in v1.8.1
func (*NullNotifier) NotifyDeleteRepository(doer *models.User, repo *models.Repository)
NotifyDeleteRepository places a place holder function
func (*NullNotifier) NotifyForkRepository ¶ added in v1.8.1
func (*NullNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository)
NotifyForkRepository places a place holder function
func (*NullNotifier) NotifyIssueChangeAssignee ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, removed bool)
NotifyIssueChangeAssignee places a place holder function
func (*NullNotifier) NotifyIssueChangeContent ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)
NotifyIssueChangeContent places a place holder function
func (*NullNotifier) NotifyIssueChangeLabels ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue, addedLabels []*models.Label, removedLabels []*models.Label)
NotifyIssueChangeLabels places a place holder function
func (*NullNotifier) NotifyIssueChangeMilestone ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue)
NotifyIssueChangeMilestone places a place holder function
func (*NullNotifier) NotifyIssueChangeStatus ¶ added in v1.8.1
NotifyIssueChangeStatus places a place holder function
func (*NullNotifier) NotifyIssueChangeTitle ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string)
NotifyIssueChangeTitle places a place holder function
func (*NullNotifier) NotifyIssueClearLabels ¶ added in v1.8.1
func (*NullNotifier) NotifyIssueClearLabels(doer *models.User, issue *models.Issue)
NotifyIssueClearLabels places a place holder function
func (*NullNotifier) NotifyMergePullRequest ¶ added in v1.8.1
func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User, baseRepo *git.Repository)
NotifyMergePullRequest places a place holder function
func (*NullNotifier) NotifyMigrateRepository ¶ added in v1.8.1
func (*NullNotifier) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository)
NotifyMigrateRepository places a place holder function
func (*NullNotifier) NotifyNewIssue ¶ added in v1.8.1
func (*NullNotifier) NotifyNewIssue(issue *models.Issue)
NotifyNewIssue places a place holder function
func (*NullNotifier) NotifyNewPullRequest ¶ added in v1.8.1
func (*NullNotifier) NotifyNewPullRequest(pr *models.PullRequest)
NotifyNewPullRequest places a place holder function
func (*NullNotifier) NotifyNewRelease ¶ added in v1.8.1
func (*NullNotifier) NotifyNewRelease(rel *models.Release)
NotifyNewRelease places a place holder function
func (*NullNotifier) NotifyPullRequestReview ¶ added in v1.8.1
func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment)
NotifyPullRequestReview places a place holder function
func (*NullNotifier) NotifyUpdateComment ¶ added in v1.8.1
NotifyUpdateComment places a place holder function
func (*NullNotifier) NotifyUpdateRelease ¶ added in v1.8.1
func (*NullNotifier) NotifyUpdateRelease(doer *models.User, rel *models.Release)
NotifyUpdateRelease places a place holder function
func (*NullNotifier) Run ¶ added in v1.8.1
func (*NullNotifier) Run()
Run places a place holder function