notification

package
v1.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext added in v1.11.0

func NewContext()

NewContext registers notification handlers

func NotifyAdoptRepository added in v1.20.0

func NotifyAdoptRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)

NotifyAdoptRepository notifies the adoption of a repository to notifiers

func NotifyAutoMergePullRequest added in v1.17.4

func NotifyAutoMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)

NotifyAutoMergePullRequest notifies merge pull request to notifiers

func NotifyCreateIssueComment added in v1.7.0

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 added in v1.11.0

func NotifyCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refFullName git.RefName, refID string)

NotifyCreateRef notifies branch or tag creation to notifiers

func NotifyCreateRepository added in v1.7.0

func NotifyCreateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)

NotifyCreateRepository notifies create repository to notifiers

func NotifyDeleteComment added in v1.7.0

func NotifyDeleteComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment)

NotifyDeleteComment notifies delete comment to notifiers

func NotifyDeleteIssue added in v1.17.0

func NotifyDeleteIssue(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)

NotifyDeleteIssue notify when some issue deleted

func NotifyDeleteRef added in v1.11.0

func NotifyDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refFullName git.RefName)

NotifyDeleteRef notifies branch or tag deletion to notifiers

func NotifyDeleteRelease added in v1.7.0

func NotifyDeleteRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)

NotifyDeleteRelease notifies delete release to notifiers

func NotifyDeleteRepository added in v1.7.0

func NotifyDeleteRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository)

NotifyDeleteRepository notifies delete repository to notifiers

func NotifyDeleteWikiPage added in v1.17.4

func NotifyDeleteWikiPage(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, page string)

NotifyDeleteWikiPage notifies deleting wiki pages to notifiers

func NotifyEditWikiPage added in v1.17.4

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 added in v1.7.0

func NotifyForkRepository(ctx context.Context, doer *user_model.User, oldRepo, repo *repo_model.Repository)

NotifyForkRepository notifies fork repository to notifiers

func NotifyIssueChangeAssignee added in v1.7.0

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 added in v1.7.0

func NotifyIssueChangeContent(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldContent string)

NotifyIssueChangeContent notifies change content to notifiers

func NotifyIssueChangeLabels added in v1.7.0

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 added in v1.7.0

func NotifyIssueChangeMilestone(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldMilestoneID int64)

NotifyIssueChangeMilestone notifies change milestone to notifiers

func NotifyIssueChangeRef added in v1.13.0

func NotifyIssueChangeRef(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldRef string)

NotifyIssueChangeRef notifies change reference to notifiers

func NotifyIssueChangeStatus added in v1.7.0

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 added in v1.7.0

func NotifyIssueChangeTitle(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldTitle string)

NotifyIssueChangeTitle notifies change title to notifiers

func NotifyIssueClearLabels added in v1.7.0

func NotifyIssueClearLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue)

NotifyIssueClearLabels notifies clear labels to notifiers

func NotifyMergePullRequest added in v1.7.0

func NotifyMergePullRequest(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)

NotifyMergePullRequest notifies merge pull request to notifiers

func NotifyMigrateRepository added in v1.7.0

func NotifyMigrateRepository(ctx context.Context, doer, u *user_model.User, repo *repo_model.Repository)

NotifyMigrateRepository notifies create repository to notifiers

func NotifyNewIssue added in v1.7.0

func NotifyNewIssue(ctx context.Context, issue *issues_model.Issue, mentions []*user_model.User)

NotifyNewIssue notifies new issue to notifiers

func NotifyNewPullRequest added in v1.7.0

func NotifyNewPullRequest(ctx context.Context, pr *issues_model.PullRequest, mentions []*user_model.User)

NotifyNewPullRequest notifies new pull request to notifiers

func NotifyNewRelease added in v1.7.0

func NotifyNewRelease(ctx context.Context, rel *repo_model.Release)

NotifyNewRelease notifies new release to notifiers

func NotifyNewWikiPage added in v1.17.4

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 added in v1.17.0

func NotifyPackageCreate(ctx context.Context, doer *user_model.User, pd *packages_model.PackageDescriptor)

NotifyPackageCreate notifies creation of a package to notifiers

func NotifyPackageDelete added in v1.17.0

func NotifyPackageDelete(ctx context.Context, doer *user_model.User, pd *packages_model.PackageDescriptor)

NotifyPackageDelete notifies deletion of a package to notifiers

func NotifyPullRequestChangeTargetBranch added in v1.11.0

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 added in v1.13.2

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 added in v1.13.0

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 added in v1.7.0

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 NotifyPullRequestReviewRequest added in v1.20.0

func NotifyPullRequestReviewRequest(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment)

NotifyPullRequestReviewRequest notifies Request Review change

func NotifyPullRequestSynchronized added in v1.11.0

func NotifyPullRequestSynchronized(ctx context.Context, doer *user_model.User, pr *issues_model.PullRequest)

NotifyPullRequestSynchronized notifies Synchronized pull request

func NotifyPullReviewDismiss added in v1.17.4

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 NotifyPushCommits added in v1.11.0

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 added in v1.11.0

func NotifyRenameRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, oldName string)

NotifyRenameRepository notifies repository renamed

func NotifyRepoPendingTransfer added in v1.14.0

func NotifyRepoPendingTransfer(ctx context.Context, doer, newOwner *user_model.User, repo *repo_model.Repository)

NotifyRepoPendingTransfer notifies creation of pending transfer to notifiers

func NotifySyncCreateRef added in v1.11.0

func NotifySyncCreateRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refFullName git.RefName, refID string)

NotifySyncCreateRef notifies branch or tag creation to notifiers

func NotifySyncDeleteRef added in v1.11.0

func NotifySyncDeleteRef(ctx context.Context, pusher *user_model.User, repo *repo_model.Repository, refFullName git.RefName)

NotifySyncDeleteRef notifies branch or tag deletion to notifiers

func NotifySyncPushCommits added in v1.11.0

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 added in v1.11.0

func NotifyTransferRepository(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, newOwnerName string)

NotifyTransferRepository notifies create repository to notifiers

func NotifyUpdateComment added in v1.7.0

func NotifyUpdateComment(ctx context.Context, doer *user_model.User, c *issues_model.Comment, oldContent string)

NotifyUpdateComment notifies update comment to notifiers

func NotifyUpdateRelease added in v1.7.0

func NotifyUpdateRelease(ctx context.Context, doer *user_model.User, rel *repo_model.Release)

NotifyUpdateRelease notifies update release to notifiers

func RegisterNotifier added in v1.7.0

func RegisterNotifier(notifier base.Notifier)

RegisterNotifier providers method to receive notify messages

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL