Documentation ¶
Index ¶
- func NewContext()
- func NotifyAutoMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
- func NotifyCreateIssueComment(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifyCreateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)
- func NotifyDeleteComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment)
- func NotifyDeleteIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)
- func NotifyDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifyDeleteRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)
- func NotifyDeleteRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository)
- func NotifyDeleteWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyEditWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyForkRepository(ctx context.Context, doer *user_model.User, ...)
- func NotifyIssueChangeAssignee(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueChangeLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueChangeMilestone(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueChangeRef(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueChangeStatus(ctx context.Context, doer *user_model.User, commitID string, ...)
- func NotifyIssueChangeTitle(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyIssueClearLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)
- func NotifyMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
- func NotifyMigrateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)
- func NotifyNewIssue(ctx context.Context, issue *issues_model.Issue, mentions []*user_model.User)
- func NotifyNewPullRequest(ctx context.Context, pr *issues_model.PullRequest, mentions []*user_model.User)
- func NotifyNewRelease(ctx context.Context, rel *repo_model.Release)
- func NotifyNewWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyPackageCreate(ctx context.Context, doer *user_model.User, ...)
- func NotifyPackageDelete(ctx context.Context, doer *user_model.User, ...)
- func NotifyPullRequestChangeTargetBranch(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, ...)
- func NotifyPullRequestCodeComment(ctx context.Context, pr *issues_model.PullRequest, ...)
- func NotifyPullRequestPushCommits(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, ...)
- func NotifyPullRequestReview(ctx context.Context, pr *issues_model.PullRequest, review *issues_model.Review, ...)
- func NotifyPullRequestSynchronized(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
- func NotifyPullReviewDismiss(ctx context.Context, doer *user_model.User, review *issues_model.Review, ...)
- func NotifyPullReviewRequest(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, ...)
- func NotifyPushCommits(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifyRenameRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyRepoPendingTransfer(ctx context.Context, doer, newOwner *user_model.User, ...)
- func NotifySyncCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifySyncDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifySyncPushCommits(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, ...)
- func NotifyTransferRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...)
- func NotifyUpdateComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment, ...)
- func NotifyUpdateRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)
- func RegisterNotifier(notifier base.Notifier)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyAutoMergePullRequest ¶
func NotifyAutoMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
NotifyAutoMergePullRequest notifies merge pull request to notifiers
func NotifyCreateIssueComment ¶
func NotifyCreateIssueComment(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, issue *issues_model.Issue, comment *issues_model.Comment, mentions []*user_model.User, )
NotifyCreateIssueComment notifies issue comment related message to notifiers
func NotifyCreateRef ¶
func NotifyCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refType, refFullName, refID string)
NotifyCreateRef notifies branch or tag creation to notifiers
func NotifyCreateRepository ¶
func NotifyCreateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)
NotifyCreateRepository notifies create repository to notifiers
func NotifyDeleteComment ¶
func NotifyDeleteComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment)
NotifyDeleteComment notifies delete comment to notifiers
func NotifyDeleteIssue ¶
func NotifyDeleteIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)
NotifyDeleteIssue notify when some issue deleted
func NotifyDeleteRef ¶
func NotifyDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifyDeleteRef notifies branch or tag deletion to notifiers
func NotifyDeleteRelease ¶
func NotifyDeleteRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)
NotifyDeleteRelease notifies delete release to notifiers
func NotifyDeleteRepository ¶
func NotifyDeleteRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository)
NotifyDeleteRepository notifies delete repository to notifiers
func NotifyDeleteWikiPage ¶
func NotifyDeleteWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, page string)
NotifyDeleteWikiPage notifies deleting wiki pages to notifiers
func NotifyEditWikiPage ¶
func NotifyEditWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, page, comment string)
NotifyEditWikiPage notifies editing or renaming wiki pages to notifiers
func NotifyForkRepository ¶
func NotifyForkRepository(ctx context.Context, doer *user_model.User, oldRepo, repo *repo_model.Repository)
NotifyForkRepository notifies fork repository to notifiers
func NotifyIssueChangeAssignee ¶
func NotifyIssueChangeAssignee(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, assignee *user_model.User, removed bool, comment *issues_model.Comment)
NotifyIssueChangeAssignee notifies change content to notifiers
func NotifyIssueChangeContent ¶
func NotifyIssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldContent string)
NotifyIssueChangeContent notifies change content to notifiers
func NotifyIssueChangeLabels ¶
func NotifyIssueChangeLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, addedLabels, removedLabels []*issues_model.Label, )
NotifyIssueChangeLabels notifies change labels to notifiers
func NotifyIssueChangeMilestone ¶
func NotifyIssueChangeMilestone(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldMilestoneID int64)
NotifyIssueChangeMilestone notifies change milestone to notifiers
func NotifyIssueChangeRef ¶
func NotifyIssueChangeRef(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldRef string)
NotifyIssueChangeRef notifies change reference to notifiers
func NotifyIssueChangeStatus ¶
func NotifyIssueChangeStatus(ctx context.Context, doer *user_model.User, commitID string, issue *issues_model.Issue, actionComment *issues_model.Comment, closeOrReopen bool)
NotifyIssueChangeStatus notifies close or reopen issue to notifiers
func NotifyIssueChangeTitle ¶
func NotifyIssueChangeTitle(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldTitle string)
NotifyIssueChangeTitle notifies change title to notifiers
func NotifyIssueClearLabels ¶
func NotifyIssueClearLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)
NotifyIssueClearLabels notifies clear labels to notifiers
func NotifyMergePullRequest ¶
func NotifyMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
NotifyMergePullRequest notifies merge pull request to notifiers
func NotifyMigrateRepository ¶
func NotifyMigrateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)
NotifyMigrateRepository notifies create repository to notifiers
func NotifyNewIssue ¶
func NotifyNewIssue(ctx context.Context, issue *issues_model.Issue, mentions []*user_model.User)
NotifyNewIssue notifies new issue to notifiers
func NotifyNewPullRequest ¶
func NotifyNewPullRequest(ctx context.Context, pr *issues_model.PullRequest, mentions []*user_model.User)
NotifyNewPullRequest notifies new pull request to notifiers
func NotifyNewRelease ¶
func NotifyNewRelease(ctx context.Context, rel *repo_model.Release)
NotifyNewRelease notifies new release to notifiers
func NotifyNewWikiPage ¶
func NotifyNewWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, page, comment string)
NotifyNewWikiPage notifies creating new wiki pages to notifiers
func NotifyPackageCreate ¶
func NotifyPackageCreate(ctx context.Context, doer *user_model.User, pd *packages_model.PackageDescriptor)
NotifyPackageCreate notifies creation of a package to notifiers
func NotifyPackageDelete ¶
func NotifyPackageDelete(ctx context.Context, doer *user_model.User, pd *packages_model.PackageDescriptor)
NotifyPackageDelete notifies deletion of a package to notifiers
func NotifyPullRequestChangeTargetBranch ¶
func NotifyPullRequestChangeTargetBranch(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, oldBranch string)
NotifyPullRequestChangeTargetBranch notifies when a pull request's target branch was changed
func NotifyPullRequestCodeComment ¶
func NotifyPullRequestCodeComment(ctx context.Context, pr *issues_model.PullRequest, comment *issues_model.Comment, mentions []*user_model.User)
NotifyPullRequestCodeComment notifies new pull request code comment
func NotifyPullRequestPushCommits ¶
func NotifyPullRequestPushCommits(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest, comment *issues_model.Comment)
NotifyPullRequestPushCommits notifies when push commits to pull request's head branch
func NotifyPullRequestReview ¶
func NotifyPullRequestReview(ctx context.Context, pr *issues_model.PullRequest, review *issues_model.Review, comment *issues_model.Comment, mentions []*user_model.User)
NotifyPullRequestReview notifies new pull request review
func NotifyPullRequestSynchronized ¶
func NotifyPullRequestSynchronized(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)
NotifyPullRequestSynchronized notifies Synchronized pull request
func NotifyPullReviewDismiss ¶
func NotifyPullReviewDismiss(ctx context.Context, doer *user_model.User, review *issues_model.Review, comment *issues_model.Comment)
NotifyPullReviewDismiss notifies when a review was dismissed by repo admin
func NotifyPullReviewRequest ¶
func NotifyPullReviewRequest(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment)
NotifyPullReviewRequest notifies Request Review change
func NotifyPushCommits ¶
func NotifyPushCommits(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
NotifyPushCommits notifies commits pushed to notifiers
func NotifyRenameRepository ¶
func NotifyRenameRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, oldName string)
NotifyRenameRepository notifies repository renamed
func NotifyRepoPendingTransfer ¶
func NotifyRepoPendingTransfer(ctx context.Context, doer, newOwner *user_model.User, repo *repo_model.Repository)
NotifyRepoPendingTransfer notifies creation of pending transfer to notifiers
func NotifySyncCreateRef ¶
func NotifySyncCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refType, refFullName, refID string)
NotifySyncCreateRef notifies branch or tag creation to notifiers
func NotifySyncDeleteRef ¶
func NotifySyncDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refType, refFullName string)
NotifySyncDeleteRef notifies branch or tag deletion to notifiers
func NotifySyncPushCommits ¶
func NotifySyncPushCommits(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
NotifySyncPushCommits notifies commits pushed to notifiers
func NotifyTransferRepository ¶
func NotifyTransferRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, newOwnerName string)
NotifyTransferRepository notifies create repository to notifiers
func NotifyUpdateComment ¶
func NotifyUpdateComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment, oldContent string)
NotifyUpdateComment notifies update comment to notifiers
func NotifyUpdateRelease ¶
func NotifyUpdateRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)
NotifyUpdateRelease notifies update release to notifiers
func RegisterNotifier ¶
RegisterNotifier providers method to receive notify messages
Types ¶
This section is empty.