diff options
author | silverwind <me@silverwind.io> | 2022-02-23 21:16:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 20:16:07 +0000 |
commit | 2b9df564b858a9216ffb7881278f485b35946349 (patch) | |
tree | 0aaa76a02b580c1eab1cbebf54befa6e8deb5375 /modules/notification | |
parent | 2b5e0134307a45581860029de99449e8be8f807e (diff) | |
download | gitea-2b9df564b858a9216ffb7881278f485b35946349.tar.gz gitea-2b9df564b858a9216ffb7881278f485b35946349.zip |
Lock gofumpt to v0.3.0 and run it (#18866)
We can't depend on `latest` version of gofumpt because the output will
not be stable across versions. Lock it down to the latest version
released yesterday and run it again.
Diffstat (limited to 'modules/notification')
-rw-r--r-- | modules/notification/action/action.go | 3 | ||||
-rw-r--r-- | modules/notification/indexer/indexer.go | 3 | ||||
-rw-r--r-- | modules/notification/mail/mail.go | 3 | ||||
-rw-r--r-- | modules/notification/notification.go | 6 | ||||
-rw-r--r-- | modules/notification/ui/ui.go | 3 | ||||
-rw-r--r-- | modules/notification/webhook/webhook.go | 6 |
6 files changed, 16 insertions, 8 deletions
diff --git a/modules/notification/action/action.go b/modules/notification/action/action.go index ed4ce3dd1a..bab28db475 100644 --- a/modules/notification/action/action.go +++ b/modules/notification/action/action.go @@ -91,7 +91,8 @@ func (a *actionNotifier) NotifyIssueChangeStatus(doer *user_model.User, issue *m // NotifyCreateIssueComment notifies comment on an issue to notifiers func (a *actionNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { act := &models.Action{ ActUserID: doer.ID, ActUser: doer, diff --git a/modules/notification/indexer/indexer.go b/modules/notification/indexer/indexer.go index 26f19e7791..48a491f3f1 100644 --- a/modules/notification/indexer/indexer.go +++ b/modules/notification/indexer/indexer.go @@ -30,7 +30,8 @@ func NewNotifier() base.Notifier { } func (r *indexerNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { if comment.Type == models.CommentTypeComment { if issue.Comments == nil { if err := issue.LoadDiscussComments(); err != nil { diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go index 4ce2726fc6..b74482fbf7 100644 --- a/modules/notification/mail/mail.go +++ b/modules/notification/mail/mail.go @@ -29,7 +29,8 @@ func NewNotifier() base.Notifier { } func (m *mailNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { ctx, _, finished := process.GetManager().AddContext(graceful.GetManager().HammerContext(), fmt.Sprintf("mailNotifier.NotifyCreateIssueComment Issue[%d] #%d in [%d]", issue.ID, issue.Index, issue.RepoID)) defer finished() diff --git a/modules/notification/notification.go b/modules/notification/notification.go index a0acd01561..e8d5d07b34 100644 --- a/modules/notification/notification.go +++ b/modules/notification/notification.go @@ -39,7 +39,8 @@ func NewContext() { // NotifyCreateIssueComment notifies issue comment related message to notifiers func NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { for _, notifier := range notifiers { notifier.NotifyCreateIssueComment(doer, repo, issue, comment, mentions) } @@ -201,7 +202,8 @@ func NotifyIssueChangeRef(doer *user_model.User, issue *models.Issue, oldRef str // NotifyIssueChangeLabels notifies change labels to notifiers func NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, - addedLabels, removedLabels []*models.Label) { + addedLabels, removedLabels []*models.Label, +) { for _, notifier := range notifiers { notifier.NotifyIssueChangeLabels(doer, issue, addedLabels, removedLabels) } diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go index 7f6bfa398e..037167f640 100644 --- a/modules/notification/ui/ui.go +++ b/modules/notification/ui/ui.go @@ -53,7 +53,8 @@ func (ns *notificationService) Run() { } func (ns *notificationService) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { opts := issueNotificationOpts{ IssueID: issue.ID, NotificationAuthorID: doer.ID, diff --git a/modules/notification/webhook/webhook.go b/modules/notification/webhook/webhook.go index ea70faa3c7..d4d5eea6cb 100644 --- a/modules/notification/webhook/webhook.go +++ b/modules/notification/webhook/webhook.go @@ -424,7 +424,8 @@ func (m *webhookNotifier) NotifyUpdateComment(doer *user_model.User, c *models.C } func (m *webhookNotifier) NotifyCreateIssueComment(doer *user_model.User, repo *repo_model.Repository, - issue *models.Issue, comment *models.Comment, mentions []*user_model.User) { + issue *models.Issue, comment *models.Comment, mentions []*user_model.User, +) { mode, _ := models.AccessLevel(doer, repo) var err error @@ -498,7 +499,8 @@ func (m *webhookNotifier) NotifyDeleteComment(doer *user_model.User, comment *mo } func (m *webhookNotifier) NotifyIssueChangeLabels(doer *user_model.User, issue *models.Issue, - addedLabels, removedLabels []*models.Label) { + addedLabels, removedLabels []*models.Label, +) { ctx, _, finished := process.GetManager().AddContext(graceful.GetManager().HammerContext(), fmt.Sprintf("webhook.NotifyIssueChangeLabels User: %s[%d] Issue[%d] #%d in [%d]", doer.Name, doer.ID, issue.ID, issue.Index, issue.RepoID)) defer finished() |