gitea: code.gitea.io/gitea/modules/notification/base Index | Files

package base

import "code.gitea.io/gitea/modules/notification/base"

Index

Package Files

notifier.go null.go

type Notifier Uses

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)
    NotifyRenameRepository(doer *models.User, repo *models.Repository, oldRepoName string)
    NotifyTransferRepository(doer *models.User, repo *models.Repository, oldOwnerName string)

    NotifyNewIssue(issue *models.Issue, mentions []*models.User)
    NotifyIssueChangeStatus(*models.User, *models.Issue, *models.Comment, bool)
    NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue, oldMilestoneID int64)
    NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, assignee *models.User, removed bool, comment *models.Comment)
    NotifyPullReviewRequest(doer *models.User, issue *models.Issue, reviewer *models.User, isRequest bool, comment *models.Comment)
    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)
    NotifyIssueChangeRef(doer *models.User, issue *models.Issue, oldRef string)
    NotifyIssueChangeLabels(doer *models.User, issue *models.Issue,
        addedLabels []*models.Label, removedLabels []*models.Label)

    NotifyNewPullRequest(pr *models.PullRequest, mentions []*models.User)
    NotifyMergePullRequest(*models.PullRequest, *models.User)
    NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest)
    NotifyPullRequestReview(pr *models.PullRequest, review *models.Review, comment *models.Comment, mentions []*models.User)
    NotifyPullRequestCodeComment(pr *models.PullRequest, comment *models.Comment, mentions []*models.User)
    NotifyPullRequestChangeTargetBranch(doer *models.User, pr *models.PullRequest, oldBranch string)
    NotifyPullRequestPushCommits(doer *models.User, pr *models.PullRequest, comment *models.Comment)

    NotifyCreateIssueComment(doer *models.User, repo *models.Repository,
        issue *models.Issue, comment *models.Comment, mentions []*models.User)
    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)

    NotifyPushCommits(pusher *models.User, repo *models.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
    NotifyCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)
    NotifyDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)

    NotifySyncPushCommits(pusher *models.User, repo *models.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)
    NotifySyncCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)
    NotifySyncDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)
}

Notifier defines an interface to notify receiver

type NullNotifier Uses

type NullNotifier struct {
}

NullNotifier implements a blank notifier

func (*NullNotifier) NotifyCreateIssueComment Uses

func (*NullNotifier) NotifyCreateIssueComment(doer *models.User, repo *models.Repository,
    issue *models.Issue, comment *models.Comment, mentions []*models.User)

NotifyCreateIssueComment places a place holder function

func (*NullNotifier) NotifyCreateRef Uses

func (*NullNotifier) NotifyCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)

NotifyCreateRef notifies branch or tag creation to notifiers

func (*NullNotifier) NotifyCreateRepository Uses

func (*NullNotifier) NotifyCreateRepository(doer *models.User, u *models.User, repo *models.Repository)

NotifyCreateRepository places a place holder function

func (*NullNotifier) NotifyDeleteComment Uses

func (*NullNotifier) NotifyDeleteComment(doer *models.User, c *models.Comment)

NotifyDeleteComment places a place holder function

func (*NullNotifier) NotifyDeleteRef Uses

func (*NullNotifier) NotifyDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)

NotifyDeleteRef notifies branch or tag deleteion to notifiers

func (*NullNotifier) NotifyDeleteRelease Uses

func (*NullNotifier) NotifyDeleteRelease(doer *models.User, rel *models.Release)

NotifyDeleteRelease places a place holder function

func (*NullNotifier) NotifyDeleteRepository Uses

func (*NullNotifier) NotifyDeleteRepository(doer *models.User, repo *models.Repository)

NotifyDeleteRepository places a place holder function

func (*NullNotifier) NotifyForkRepository Uses

func (*NullNotifier) NotifyForkRepository(doer *models.User, oldRepo, repo *models.Repository)

NotifyForkRepository places a place holder function

func (*NullNotifier) NotifyIssueChangeAssignee Uses

func (*NullNotifier) NotifyIssueChangeAssignee(doer *models.User, issue *models.Issue, assignee *models.User, removed bool, comment *models.Comment)

NotifyIssueChangeAssignee places a place holder function

func (*NullNotifier) NotifyIssueChangeContent Uses

func (*NullNotifier) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string)

NotifyIssueChangeContent places a place holder function

func (*NullNotifier) NotifyIssueChangeLabels Uses

func (*NullNotifier) NotifyIssueChangeLabels(doer *models.User, issue *models.Issue,
    addedLabels []*models.Label, removedLabels []*models.Label)

NotifyIssueChangeLabels places a place holder function

func (*NullNotifier) NotifyIssueChangeMilestone Uses

func (*NullNotifier) NotifyIssueChangeMilestone(doer *models.User, issue *models.Issue, oldMilestoneID int64)

NotifyIssueChangeMilestone places a place holder function

func (*NullNotifier) NotifyIssueChangeRef Uses

func (*NullNotifier) NotifyIssueChangeRef(doer *models.User, issue *models.Issue, oldTitle string)

NotifyIssueChangeRef places a place holder function

func (*NullNotifier) NotifyIssueChangeStatus Uses

func (*NullNotifier) NotifyIssueChangeStatus(doer *models.User, issue *models.Issue, actionComment *models.Comment, isClosed bool)

NotifyIssueChangeStatus places a place holder function

func (*NullNotifier) NotifyIssueChangeTitle Uses

func (*NullNotifier) NotifyIssueChangeTitle(doer *models.User, issue *models.Issue, oldTitle string)

NotifyIssueChangeTitle places a place holder function

func (*NullNotifier) NotifyIssueClearLabels Uses

func (*NullNotifier) NotifyIssueClearLabels(doer *models.User, issue *models.Issue)

NotifyIssueClearLabels places a place holder function

func (*NullNotifier) NotifyMergePullRequest Uses

func (*NullNotifier) NotifyMergePullRequest(pr *models.PullRequest, doer *models.User)

NotifyMergePullRequest places a place holder function

func (*NullNotifier) NotifyMigrateRepository Uses

func (*NullNotifier) NotifyMigrateRepository(doer *models.User, u *models.User, repo *models.Repository)

NotifyMigrateRepository places a place holder function

func (*NullNotifier) NotifyNewIssue Uses

func (*NullNotifier) NotifyNewIssue(issue *models.Issue, mentions []*models.User)

NotifyNewIssue places a place holder function

func (*NullNotifier) NotifyNewPullRequest Uses

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

NotifyNewPullRequest places a place holder function

func (*NullNotifier) NotifyNewRelease Uses

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

NotifyNewRelease places a place holder function

func (*NullNotifier) NotifyPullRequestChangeTargetBranch Uses

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

NotifyPullRequestChangeTargetBranch places a place holder function

func (*NullNotifier) NotifyPullRequestCodeComment Uses

func (*NullNotifier) NotifyPullRequestCodeComment(pr *models.PullRequest, comment *models.Comment, mentions []*models.User)

NotifyPullRequestCodeComment places a place holder function

func (*NullNotifier) NotifyPullRequestPushCommits Uses

func (*NullNotifier) NotifyPullRequestPushCommits(doer *models.User, pr *models.PullRequest, comment *models.Comment)

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

func (*NullNotifier) NotifyPullRequestReview Uses

func (*NullNotifier) NotifyPullRequestReview(pr *models.PullRequest, r *models.Review, comment *models.Comment, mentions []*models.User)

NotifyPullRequestReview places a place holder function

func (*NullNotifier) NotifyPullRequestSynchronized Uses

func (*NullNotifier) NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest)

NotifyPullRequestSynchronized places a place holder function

func (*NullNotifier) NotifyPullReviewRequest Uses

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

NotifyPullReviewRequest places a place holder function

func (*NullNotifier) NotifyPushCommits Uses

func (*NullNotifier) NotifyPushCommits(pusher *models.User, repo *models.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)

NotifyPushCommits notifies commits pushed to notifiers

func (*NullNotifier) NotifyRenameRepository Uses

func (*NullNotifier) NotifyRenameRepository(doer *models.User, repo *models.Repository, oldRepoName string)

NotifyRenameRepository places a place holder function

func (*NullNotifier) NotifySyncCreateRef Uses

func (*NullNotifier) NotifySyncCreateRef(doer *models.User, repo *models.Repository, refType, refFullName string)

NotifySyncCreateRef places a place holder function

func (*NullNotifier) NotifySyncDeleteRef Uses

func (*NullNotifier) NotifySyncDeleteRef(doer *models.User, repo *models.Repository, refType, refFullName string)

NotifySyncDeleteRef places a place holder function

func (*NullNotifier) NotifySyncPushCommits Uses

func (*NullNotifier) NotifySyncPushCommits(pusher *models.User, repo *models.Repository, opts *repository.PushUpdateOptions, commits *repository.PushCommits)

NotifySyncPushCommits places a place holder function

func (*NullNotifier) NotifyTransferRepository Uses

func (*NullNotifier) NotifyTransferRepository(doer *models.User, repo *models.Repository, oldOwnerName string)

NotifyTransferRepository places a place holder function

func (*NullNotifier) NotifyUpdateComment Uses

func (*NullNotifier) NotifyUpdateComment(doer *models.User, c *models.Comment, oldContent string)

NotifyUpdateComment places a place holder function

func (*NullNotifier) NotifyUpdateRelease Uses

func (*NullNotifier) NotifyUpdateRelease(doer *models.User, rel *models.Release)

NotifyUpdateRelease places a place holder function

func (*NullNotifier) Run Uses

func (*NullNotifier) Run()

Run places a place holder function

Package base imports 2 packages (graph) and is imported by 30 packages. Updated 2021-01-22. Refresh now. Tools for package owners.