Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 18:56:11 +01:00
forgejo/services/mailer
silverwind 37ead26e36
Fix make fmt and make fmt-check (#18633)
* Run 'make fmt'

'make fmt' currently produces this change, I'm not sure how CI did not
fail on it, I made sure I have `mvdan.cc/gofumpt@latest`.

* Fix 'make fmt-check'

`make fmt-check` did not run all commands that `make fmt` did, resulting
in missed diffs. Fix that by just depending on the `fmt` target.

Includes: https://github.com/go-gitea/gitea/pull/18633

* Make gitea-fmt work with -l and -d and integrate gofumpt

This implements -l, -w and -d with gitea-fmt and merges gofumpt.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per silverwind

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

* use -l instead of -d for fmt-check

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Andrew Thornton <art27@cantab.net>
2022-02-06 16:44:30 +01:00
..
mail.go Prevent merge messages from being sorted to the top of email chains (#18566) 2022-02-03 18:01:16 -05:00
mail_comment.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
mail_issue.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mail_release.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
mail_repo.go Unify and simplify TrN for i18n (#18141) 2022-01-02 04:33:57 +01:00
mail_test.go Fix make fmt and make fmt-check (#18633) 2022-02-06 16:44:30 +01:00
mailer.go Pause queues (#15928) 2022-01-22 21:22:14 +00:00
mailer_test.go refactoring nits (#18188) 2022-01-05 07:27:53 +01:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00