Documentation ¶
Index ¶
- type Notifier
- type NullNotifier
- func (*NullNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, issue *models.Issue, ...)
- func (*NullNotifier) NotifyCreateRef(doer *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifyCreateRepository(doer, u *user_model.User, repo *repo_model.Repository)
- func (*NullNotifier) NotifyDeleteComment(doer *user_model.User, c *models.Comment)
- func (*NullNotifier) NotifyDeleteRef(doer *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifyDeleteRelease(doer *user_model.User, rel *models.Release)
- func (*NullNotifier) NotifyDeleteRepository(doer *user_model.User, repo *repo_model.Repository)
- func (*NullNotifier) NotifyForkRepository(doer *user_model.User, oldRepo, repo *repo_model.Repository)
- func (*NullNotifier) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, ...)
- func (*NullNotifier) NotifyIssueChangeContent(doer *user_model.User, issue *models.Issue, oldContent string)
- func (*NullNotifier) NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, addedLabels []*models.Label, ...)
- func (*NullNotifier) NotifyIssueChangeMilestone(doer *user_model.User, issue *models.Issue, oldMilestoneID int64)
- func (*NullNotifier) NotifyIssueChangeRef(doer *user_model.User, issue *models.Issue, oldTitle string)
- func (*NullNotifier) NotifyIssueChangeStatus(doer *user_model.User, issue *models.Issue, actionComment *models.Comment, ...)
- func (*NullNotifier) NotifyIssueChangeTitle(doer *user_model.User, issue *models.Issue, oldTitle string)
- func (*NullNotifier) NotifyIssueClearLabels(doer *user_model.User, issue *models.Issue)
- func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *user_model.User)
- func (*NullNotifier) NotifyMigrateRepository(doer, u *user_model.User, repo *repo_model.Repository)
- func (*NullNotifier) NotifyNewIssue(issue *models.Issue, mentions []*user_model.User)
- func (*NullNotifier) NotifyNewPullRequest(pr *models.PullRequest, mentions []*user_model.User)
- func (*NullNotifier) NotifyNewRelease(rel *models.Release)
- func (*NullNotifier) NotifyPullRequestChangeTargetBranch(doer *user_model.User, pr *models.PullRequest, oldBranch string)
- func (*NullNotifier) NotifyPullRequestCodeComment(pr *models.PullRequest, comment *models.Comment, mentions []*user_model.User)
- func (*NullNotifier) NotifyPullRequestPushCommits(doer *user_model.User, pr *models.PullRequest, comment *models.Comment)
- func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment, ...)
- func (*NullNotifier) NotifyPullRequestSynchronized(doer *user_model.User, pr *models.PullRequest)
- func (*NullNotifier) NotifyPullReviewRequest(doer *user_model.User, issue *models.Issue, reviewer *user_model.User, ...)
- func (*NullNotifier) NotifyPullRevieweDismiss(doer *user_model.User, review *models.Review, comment *models.Comment)
- func (*NullNotifier) NotifyPushCommits(pusher *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifyRenameRepository(doer *user_model.User, repo *repo_model.Repository, oldRepoName string)
- func (*NullNotifier) NotifyRepoPendingTransfer(doer, newOwner *user_model.User, repo *repo_model.Repository)
- func (*NullNotifier) NotifySyncCreateRef(doer *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifySyncDeleteRef(doer *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifySyncPushCommits(pusher *user_model.User, repo *repo_model.Repository, ...)
- func (*NullNotifier) NotifyTransferRepository(doer *user_model.User, repo *repo_model.Repository, oldOwnerName string)
- func (*NullNotifier) NotifyUpdateComment(doer *user_model.User, c *models.Comment, oldContent string)
- func (*NullNotifier) NotifyUpdateRelease(doer *user_model.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 *user_model.User, u *user_model.User, repo *repo_model.Repository) NotifyMigrateRepository(doer *user_model.User, u *user_model.User, repo *repo_model.Repository) NotifyDeleteRepository(doer *user_model.User, repo *repo_model.Repository) NotifyForkRepository(doer *user_model.User, oldRepo, repo *repo_model.Repository) NotifyRenameRepository(doer *user_model.User, repo *repo_model.Repository, oldRepoName string) NotifyTransferRepository(doer *user_model.User, repo *repo_model.Repository, oldOwnerName string) NotifyNewIssue(issue *models.Issue, mentions []*user_model.User) NotifyIssueChangeStatus(*user_model.User, *models.Issue, *models.Comment, bool) NotifyIssueChangeMilestone(doer *user_model.User, issue *models.Issue, oldMilestoneID int64) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, removed bool, comment *models.Comment) NotifyPullReviewRequest(doer *user_model.User, issue *models.Issue, reviewer *user_model.User, isRequest bool, comment *models.Comment) NotifyIssueChangeContent(doer *user_model.User, issue *models.Issue, oldContent string) NotifyIssueClearLabels(doer *user_model.User, issue *models.Issue) NotifyIssueChangeTitle(doer *user_model.User, issue *models.Issue, oldTitle string) NotifyIssueChangeRef(doer *user_model.User, issue *models.Issue, oldRef string) NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, addedLabels []*models.Label, removedLabels []*models.Label) NotifyNewPullRequest(pr *models.PullRequest, mentions []*user_model.User) NotifyMergePullRequest(*models.PullRequest, *user_model.User) NotifyPullRequestSynchronized(doer *user_model.User, pr *models.PullRequest) NotifyPullRequestReview(pr *models.PullRequest, review *models.Review, comment *models.Comment, mentions []*user_model.User) NotifyPullRequestCodeComment(pr *models.PullRequest, comment *models.Comment, mentions []*user_model.User) NotifyPullRequestChangeTargetBranch(doer *user_model.User, pr *models.PullRequest, oldBranch string) NotifyPullRequestPushCommits(doer *user_model.User, pr *models.PullRequest, comment *models.Comment) NotifyPullRevieweDismiss(doer *user_model.User, review *models.Review, comment *models.Comment) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, issue *models.Issue, comment *models.Comment, mentions []*user_model.User) NotifyUpdateComment(*user_model.User, *models.Comment, string) NotifyDeleteComment(*user_model.User, *models.Comment) NotifyNewRelease(rel *models.Release) NotifyUpdateRelease(doer *user_model.User, rel *models.Release) NotifyDeleteRelease(doer *user_model.User, rel *models.Release) NotifyPushCommits(pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits) NotifyCreateRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string) NotifyDeleteRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string) NotifySyncPushCommits(pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits) NotifySyncCreateRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string) NotifySyncDeleteRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string) NotifyRepoPendingTransfer(doer, newOwner *user_model.User, repo *repo_model.Repository) }
Notifier defines an interface to notify receiver
type NullNotifier ¶ added in v1.8.0
type NullNotifier struct { }
NullNotifier implements a blank notifier
func (*NullNotifier) NotifyCreateIssueComment ¶ added in v1.8.0
func (*NullNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, issue *models.Issue, comment *models.Comment, mentions []*user_model.User)
NotifyCreateIssueComment places a place holder function
func (*NullNotifier) NotifyCreateRef ¶ added in v1.11.0
func (*NullNotifier) NotifyCreateRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifyCreateRef notifies branch or tag creation to notifiers
func (*NullNotifier) NotifyCreateRepository ¶ added in v1.8.0
func (*NullNotifier) NotifyCreateRepository(doer, u *user_model.User, repo *repo_model.Repository)
NotifyCreateRepository places a place holder function
func (*NullNotifier) NotifyDeleteComment ¶ added in v1.8.0
func (*NullNotifier) NotifyDeleteComment(doer *user_model.User, c *models.Comment)
NotifyDeleteComment places a place holder function
func (*NullNotifier) NotifyDeleteRef ¶ added in v1.11.0
func (*NullNotifier) NotifyDeleteRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifyDeleteRef notifies branch or tag deletion to notifiers
func (*NullNotifier) NotifyDeleteRelease ¶ added in v1.8.0
func (*NullNotifier) NotifyDeleteRelease(doer *user_model.User, rel *models.Release)
NotifyDeleteRelease places a place holder function
func (*NullNotifier) NotifyDeleteRepository ¶ added in v1.8.0
func (*NullNotifier) NotifyDeleteRepository(doer *user_model.User, repo *repo_model.Repository)
NotifyDeleteRepository places a place holder function
func (*NullNotifier) NotifyForkRepository ¶ added in v1.8.0
func (*NullNotifier) NotifyForkRepository(doer *user_model.User, oldRepo, repo *repo_model.Repository)
NotifyForkRepository places a place holder function
func (*NullNotifier) NotifyIssueChangeAssignee ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, removed bool, comment *models.Comment)
NotifyIssueChangeAssignee places a place holder function
func (*NullNotifier) NotifyIssueChangeContent ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeContent(doer *user_model.User, issue *models.Issue, oldContent string)
NotifyIssueChangeContent places a place holder function
func (*NullNotifier) NotifyIssueChangeLabels ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, addedLabels []*models.Label, removedLabels []*models.Label)
NotifyIssueChangeLabels places a place holder function
func (*NullNotifier) NotifyIssueChangeMilestone ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeMilestone(doer *user_model.User, issue *models.Issue, oldMilestoneID int64)
NotifyIssueChangeMilestone places a place holder function
func (*NullNotifier) NotifyIssueChangeRef ¶ added in v1.13.0
func (*NullNotifier) NotifyIssueChangeRef(doer *user_model.User, issue *models.Issue, oldTitle string)
NotifyIssueChangeRef places a place holder function
func (*NullNotifier) NotifyIssueChangeStatus ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeStatus(doer *user_model.User, issue *models.Issue, actionComment *models.Comment, isClosed bool)
NotifyIssueChangeStatus places a place holder function
func (*NullNotifier) NotifyIssueChangeTitle ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueChangeTitle(doer *user_model.User, issue *models.Issue, oldTitle string)
NotifyIssueChangeTitle places a place holder function
func (*NullNotifier) NotifyIssueClearLabels ¶ added in v1.8.0
func (*NullNotifier) NotifyIssueClearLabels(doer *user_model.User, issue *models.Issue)
NotifyIssueClearLabels places a place holder function
func (*NullNotifier) NotifyMergePullRequest ¶ added in v1.8.0
func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *user_model.User)
NotifyMergePullRequest places a place holder function
func (*NullNotifier) NotifyMigrateRepository ¶ added in v1.8.0
func (*NullNotifier) NotifyMigrateRepository(doer, u *user_model.User, repo *repo_model.Repository)
NotifyMigrateRepository places a place holder function
func (*NullNotifier) NotifyNewIssue ¶ added in v1.8.0
func (*NullNotifier) NotifyNewIssue(issue *models.Issue, mentions []*user_model.User)
NotifyNewIssue places a place holder function
func (*NullNotifier) NotifyNewPullRequest ¶ added in v1.8.0
func (*NullNotifier) NotifyNewPullRequest(pr *models.PullRequest, mentions []*user_model.User)
NotifyNewPullRequest places a place holder function
func (*NullNotifier) NotifyNewRelease ¶ added in v1.8.0
func (*NullNotifier) NotifyNewRelease(rel *models.Release)
NotifyNewRelease places a place holder function
func (*NullNotifier) NotifyPullRequestChangeTargetBranch ¶ added in v1.11.0
func (*NullNotifier) NotifyPullRequestChangeTargetBranch(doer *user_model.User, pr *models.PullRequest, oldBranch string)
NotifyPullRequestChangeTargetBranch places a place holder function
func (*NullNotifier) NotifyPullRequestCodeComment ¶ added in v1.13.2
func (*NullNotifier) NotifyPullRequestCodeComment(pr *models.PullRequest, comment *models.Comment, mentions []*user_model.User)
NotifyPullRequestCodeComment places a place holder function
func (*NullNotifier) NotifyPullRequestPushCommits ¶ added in v1.13.0
func (*NullNotifier) NotifyPullRequestPushCommits(doer *user_model.User, pr *models.PullRequest, comment *models.Comment)
NotifyPullRequestPushCommits notifies when push commits to pull request's head branch
func (*NullNotifier) NotifyPullRequestReview ¶ added in v1.8.0
func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment, mentions []*user_model.User)
NotifyPullRequestReview places a place holder function
func (*NullNotifier) NotifyPullRequestSynchronized ¶ added in v1.11.0
func (*NullNotifier) NotifyPullRequestSynchronized(doer *user_model.User, pr *models.PullRequest)
NotifyPullRequestSynchronized places a place holder function
func (*NullNotifier) NotifyPullReviewRequest ¶ added in v1.12.0
func (*NullNotifier) NotifyPullReviewRequest(doer *user_model.User, issue *models.Issue, reviewer *user_model.User, isRequest bool, comment *models.Comment)
NotifyPullReviewRequest places a place holder function
func (*NullNotifier) NotifyPullRevieweDismiss ¶ added in v1.14.0
func (*NullNotifier) NotifyPullRevieweDismiss(doer *user_model.User, review *models.Review, comment *models.Comment)
NotifyPullRevieweDismiss notifies when a review was dismissed by repo admin
func (*NullNotifier) NotifyPushCommits ¶ added in v1.11.0
func (*NullNotifier) NotifyPushCommits(pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
NotifyPushCommits notifies commits pushed to notifiers
func (*NullNotifier) NotifyRenameRepository ¶ added in v1.11.0
func (*NullNotifier) NotifyRenameRepository(doer *user_model.User, repo *repo_model.Repository, oldRepoName string)
NotifyRenameRepository places a place holder function
func (*NullNotifier) NotifyRepoPendingTransfer ¶ added in v1.14.0
func (*NullNotifier) NotifyRepoPendingTransfer(doer, newOwner *user_model.User, repo *repo_model.Repository)
NotifyRepoPendingTransfer places a place holder function
func (*NullNotifier) NotifySyncCreateRef ¶ added in v1.11.0
func (*NullNotifier) NotifySyncCreateRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifySyncCreateRef places a place holder function
func (*NullNotifier) NotifySyncDeleteRef ¶ added in v1.11.0
func (*NullNotifier) NotifySyncDeleteRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifySyncDeleteRef places a place holder function
func (*NullNotifier) NotifySyncPushCommits ¶ added in v1.11.0
func (*NullNotifier) NotifySyncPushCommits(pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
NotifySyncPushCommits places a place holder function
func (*NullNotifier) NotifyTransferRepository ¶ added in v1.11.0
func (*NullNotifier) NotifyTransferRepository(doer *user_model.User, repo *repo_model.Repository, oldOwnerName string)
NotifyTransferRepository places a place holder function
func (*NullNotifier) NotifyUpdateComment ¶ added in v1.8.0
func (*NullNotifier) NotifyUpdateComment(doer *user_model.User, c *models.Comment, oldContent string)
NotifyUpdateComment places a place holder function
func (*NullNotifier) NotifyUpdateRelease ¶ added in v1.8.0
func (*NullNotifier) NotifyUpdateRelease(doer *user_model.User, rel *models.Release)
NotifyUpdateRelease places a place holder function
func (*NullNotifier) Run ¶ added in v1.8.0
func (*NullNotifier) Run()
Run places a place holder function