base

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Run()
	NotifyCreateRepository(doer, u *user_model.User, repo *repo_model.Repository)
	NotifyMigrateRepository(doer, 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 *issues_model.Issue, mentions []*user_model.User)
	NotifyIssueChangeStatus(*user_model.User, *issues_model.Issue, *issues_model.Comment, bool)
	NotifyDeleteIssue(*user_model.User, *issues_model.Issue)
	NotifyIssueChangeMilestone(doer *user_model.User, issue *issues_model.Issue, oldMilestoneID int64)
	NotifyIssueChangeAssignee(doer *user_model.User, issue *issues_model.Issue, assignee *user_model.User, removed bool, comment *issues_model.Comment)
	NotifyPullReviewRequest(doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment)
	NotifyIssueChangeContent(doer *user_model.User, issue *issues_model.Issue, oldContent string)
	NotifyIssueClearLabels(doer *user_model.User, issue *issues_model.Issue)
	NotifyIssueChangeTitle(doer *user_model.User, issue *issues_model.Issue, oldTitle string)
	NotifyIssueChangeRef(doer *user_model.User, issue *issues_model.Issue, oldRef string)
	NotifyIssueChangeLabels(doer *user_model.User, issue *issues_model.Issue,
		addedLabels, removedLabels []*issues_model.Label)
	NotifyNewPullRequest(pr *issues_model.PullRequest, mentions []*user_model.User)
	NotifyMergePullRequest(*issues_model.PullRequest, *user_model.User)
	NotifyPullRequestSynchronized(doer *user_model.User, pr *issues_model.PullRequest)
	NotifyPullRequestReview(pr *issues_model.PullRequest, review *issues_model.Review, comment *issues_model.Comment, mentions []*user_model.User)
	NotifyPullRequestCodeComment(pr *issues_model.PullRequest, comment *issues_model.Comment, mentions []*user_model.User)
	NotifyPullRequestChangeTargetBranch(doer *user_model.User, pr *issues_model.PullRequest, oldBranch string)
	NotifyPullRequestPushCommits(doer *user_model.User, pr *issues_model.PullRequest, comment *issues_model.Comment)
	NotifyPullRevieweDismiss(doer *user_model.User, review *issues_model.Review, comment *issues_model.Comment)
	NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository,
		issue *issues_model.Issue, comment *issues_model.Comment, mentions []*user_model.User)
	NotifyUpdateComment(*user_model.User, *issues_model.Comment, string)
	NotifyDeleteComment(*user_model.User, *issues_model.Comment)
	NotifyNewWikiPage(doer *user_model.User, repo *repo_model.Repository, page, comment string)
	NotifyEditWikiPage(doer *user_model.User, repo *repo_model.Repository, page, comment string)
	NotifyDeleteWikiPage(doer *user_model.User, repo *repo_model.Repository, page string)
	NotifyNewRelease(rel *repo_model.Release)
	NotifyUpdateRelease(doer *user_model.User, rel *repo_model.Release)
	NotifyDeleteRelease(doer *user_model.User, rel *repo_model.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, refID 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, refID string)
	NotifySyncDeleteRef(doer *user_model.User, repo *repo_model.Repository, refType, refFullName string)
	NotifyRepoPendingTransfer(doer, newOwner *user_model.User, repo *repo_model.Repository)
	NotifyPackageCreate(doer *user_model.User, pd *packages_model.PackageDescriptor)
	NotifyPackageDelete(doer *user_model.User, pd *packages_model.PackageDescriptor)
}

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 *issues_model.Issue, comment *issues_model.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, refID 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 *issues_model.Comment)

NotifyDeleteComment places a place holder function

func (*NullNotifier) NotifyDeleteIssue added in v1.17.0

func (*NullNotifier) NotifyDeleteIssue(doer *user_model.User, issue *issues_model.Issue)

NotifyDeleteIssue notify when some issue deleted

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 *repo_model.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) NotifyDeleteWikiPage added in v1.17.4

func (*NullNotifier) NotifyDeleteWikiPage(doer *user_model.User, repo *repo_model.Repository, page string)

NotifyDeleteWikiPage places a place holder function

func (*NullNotifier) NotifyEditWikiPage added in v1.17.4

func (*NullNotifier) NotifyEditWikiPage(doer *user_model.User, repo *repo_model.Repository, page, comment string)

NotifyEditWikiPage 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 *issues_model.Issue, assignee *user_model.User, removed bool, comment *issues_model.Comment)

NotifyIssueChangeAssignee places a place holder function

func (*NullNotifier) NotifyIssueChangeContent added in v1.8.0

func (*NullNotifier) NotifyIssueChangeContent(doer *user_model.User, issue *issues_model.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 *issues_model.Issue,
	addedLabels, removedLabels []*issues_model.Label)

NotifyIssueChangeLabels places a place holder function

func (*NullNotifier) NotifyIssueChangeMilestone added in v1.8.0

func (*NullNotifier) NotifyIssueChangeMilestone(doer *user_model.User, issue *issues_model.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 *issues_model.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 *issues_model.Issue, actionComment *issues_model.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 *issues_model.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 *issues_model.Issue)

NotifyIssueClearLabels places a place holder function

func (*NullNotifier) NotifyMergePullRequest added in v1.8.0

func (*NullNotifier) NotifyMergePullRequest(pr *issues_model.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 *issues_model.Issue, mentions []*user_model.User)

NotifyNewIssue places a place holder function

func (*NullNotifier) NotifyNewPullRequest added in v1.8.0

func (*NullNotifier) NotifyNewPullRequest(pr *issues_model.PullRequest, mentions []*user_model.User)

NotifyNewPullRequest places a place holder function

func (*NullNotifier) NotifyNewRelease added in v1.8.0

func (*NullNotifier) NotifyNewRelease(rel *repo_model.Release)

NotifyNewRelease places a place holder function

func (*NullNotifier) NotifyNewWikiPage added in v1.17.4

func (*NullNotifier) NotifyNewWikiPage(doer *user_model.User, repo *repo_model.Repository, page, comment string)

NotifyNewWikiPage places a place holder function

func (*NullNotifier) NotifyPackageCreate added in v1.17.0

func (*NullNotifier) NotifyPackageCreate(doer *user_model.User, pd *packages_model.PackageDescriptor)

NotifyPackageCreate places a place holder function

func (*NullNotifier) NotifyPackageDelete added in v1.17.0

func (*NullNotifier) NotifyPackageDelete(doer *user_model.User, pd *packages_model.PackageDescriptor)

NotifyPackageDelete places a place holder function

func (*NullNotifier) NotifyPullRequestChangeTargetBranch added in v1.11.0

func (*NullNotifier) NotifyPullRequestChangeTargetBranch(doer *user_model.User, pr *issues_model.PullRequest, oldBranch string)

NotifyPullRequestChangeTargetBranch places a place holder function

func (*NullNotifier) NotifyPullRequestCodeComment added in v1.13.2

func (*NullNotifier) NotifyPullRequestCodeComment(pr *issues_model.PullRequest, comment *issues_model.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 *issues_model.PullRequest, comment *issues_model.Comment)

NotifyPullRequestPushCommits notifies when push commits to pull request's head branch

func (*NullNotifier) NotifyPullRequestReview added in v1.8.0

func (*NullNotifier) NotifyPullRequestReview(pr *issues_model.PullRequest, r *issues_model.Review, comment *issues_model.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 *issues_model.PullRequest)

NotifyPullRequestSynchronized places a place holder function

func (*NullNotifier) NotifyPullReviewRequest added in v1.12.0

func (*NullNotifier) NotifyPullReviewRequest(doer *user_model.User, issue *issues_model.Issue, reviewer *user_model.User, isRequest bool, comment *issues_model.Comment)

NotifyPullReviewRequest places a place holder function

func (*NullNotifier) NotifyPullRevieweDismiss added in v1.14.0

func (*NullNotifier) NotifyPullRevieweDismiss(doer *user_model.User, review *issues_model.Review, comment *issues_model.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, refID 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 *issues_model.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 *repo_model.Release)

NotifyUpdateRelease places a place holder function

func (*NullNotifier) Run added in v1.8.0

func (*NullNotifier) Run()

Run places a place holder function

Jump to

Keyboard shortcuts

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