mirror of
https://github.com/go-gitea/gitea
synced 2025-02-07 07:47:00 +01:00
29 lines
791 B
Go
29 lines
791 B
Go
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package websocket
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
issues_model "code.gitea.io/gitea/models/issues"
|
||
|
repo_model "code.gitea.io/gitea/models/repo"
|
||
|
user_model "code.gitea.io/gitea/models/user"
|
||
|
notify_service "code.gitea.io/gitea/services/notify"
|
||
|
)
|
||
|
|
||
|
type webhookNotifier struct {
|
||
|
notify_service.NullNotifier
|
||
|
}
|
||
|
|
||
|
var _ notify_service.Notifier = &webhookNotifier{}
|
||
|
|
||
|
// NewNotifier create a new webhooksNotifier notifier
|
||
|
func NewNotifier() notify_service.Notifier {
|
||
|
return &webhookNotifier{}
|
||
|
}
|
||
|
|
||
|
func (n *webhookNotifier) CreateIssueComment(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, issue *issues_model.Issue, comment *issues_model.Comment, mentions []*user_model.User) {
|
||
|
// TODO
|
||
|
}
|