Dmitry Verkhoturov
edfc5b9d76
Automatic fix of errors reported by golangci-lint v2
...
- Use strings.ReplaceAll
- Remove redundant internal structure names
2025-03-24 22:46:43 +01:00
Dmitry Verkhoturov and Umputun
7604548035
Update go to 1.23, golangci-lint to 1.61, baseimage to 1.14
2024-11-08 16:19:58 -06:00
Dmitry Verkhoturov and Umputun
95966f6407
add escaping of comment text in webhook default JSON template
2024-07-01 23:41:50 -05:00
Dmitry Verkhoturov and Umputun
d7e9be99f9
make Close() calls idempotent
...
Previously, few of them resulted in panics when called more than once.
2023-01-03 01:41:26 -06:00
Dmitry Verkhoturov and Umputun
c86bff8811
remove duplicate type definitions from function signatures
...
I haven't found a linter for these, so I had to catch these manually.
I found #757 to fix one of these, and I thought it would be good
to fix everything at once.
2022-11-13 11:51:51 -06:00
Dmitry Verkhoturov
86d059bf99
move templates from rakyll/statik to go:embed
...
There is no need for the rakyll/statik package starting with Go 1.16,
which provides us with tools for embedding files
without third-party libraries.
2022-07-29 19:07:49 +02:00
Dmitry Verkhoturov and Umputun
3b5f44da46
bump go modules, fix StartTLS email notifications
...
In #1359 , we discovered that StartTLS was not working\
due to the wrong host passed. This bumps the library for the fix.
Also, after a switch to go-pkgz/notify MailGun email sending
broke due to the difference in the destination email parsing,
the fix is also applied after this commit.
2022-05-20 16:00:30 -05:00
Dmitry Verkhoturov and Umputun
a980bdbad2
switch to go-pkgz/notify package: email
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
0d9c80aec7
switch to go-pkgz/notify package: slack
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
59fb68ab2d
switch to go-pkgz/notify package: telegram
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
ad0ac693de
switch to go-pkgz/notify package: webhook
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
ba86db1263
replace errors package with fmt.Errorf
...
https://gist.github.com/Peltoche/60b8b81dfbf70164d0e2b88988003229
was used for it, thanks to @Peltoche for publishing it.
2022-04-26 00:25:09 -05:00
Dmitry Verkhoturov and Umputun
2a7966b9e6
replace numbers with proper HTTP status codes in tests
...
Also, remove unneeded whitespaces using whitespace
linter for golangci-lint.
2022-04-17 19:42:45 -05:00
Dmitry Verkhoturov and Umputun
8d42d0714f
bump backend dependencies
...
Also, switch from fork github.com/umputun/go-flags back to original
github.com/jessevdk/go-flags.
2022-01-31 14:24:33 -06:00
Ivan Nedzveckij and Umputun
c3b39b41ae
telegram notifications format headers, resolve #1202
2022-01-12 11:40:00 -06:00
Dmitry Verkhoturov and Umputun
4f672cdec5
fix formatting for telegram reply notifications
2021-12-20 00:07:15 -06:00
Dmitry Verkhoturov and Umputun
90e537358d
update golangci-lint to 1.43.0, fix found issues
2021-11-23 15:00:40 -06:00
Dmitry Verkhoturov and Umputun
c027dcd765
enable telegram notify trough writing bot a message
...
Previously it was done through writing bot first,
clicking a button, copying the token, and pasting
it into the web interface.
The new flow is way simpler: click the link
to write bot a message, then click the "Check"
button in the web UI and you got notifications
enabled.
2021-11-07 11:51:28 -06:00
Dmitry Verkhoturov and Umputun
6449b7d92b
improve telegram notifications
...
These changes are designed to ease the transition into
the simplified telegram notifications verification model.
2021-11-01 14:35:37 -05:00
Dmitry Verkhoturov and Umputun
8fc9141f19
extract TelegramBotInfo structure
2021-10-25 16:47:15 -05:00
Dmitry Verkhoturov and Umputun
498073c509
send telegram messages in HTML mode
...
That resolves problem with inability
to properly render message text in the
resulting telegram message due to markdown
escaping trickiness.
2021-10-24 14:05:06 -05:00
Dmitry Verkhoturov and Umputun
f817fd38ed
improve telegram messages escaping
...
Due to the wrong order of `html.UnescapeString`
applying, messages sometimes ended up crippled.
Due to `parse_mode=Markdown` set in Telegram
send message call, `ParseMode` in message
was ignored.
2021-10-24 14:05:06 -05:00
bakurin and Umputun
be46e849a4
Webhook destination for notifications
2021-08-28 12:50:36 -05:00
Umputun
ad54a9450b
fix parent tg formatting
2021-07-04 00:30:11 -05:00
Umputun
b8050f817c
quote parrent comment in tg notif
2021-07-04 00:03:23 -05:00
Umputun
70245504f5
restore link to original in tg notif
2021-07-03 23:52:20 -05:00
Umputun
05a85b6bfd
reformat tg message to make it readable again
2021-07-03 23:48:00 -05:00
Dmitry Verkhoturov and Umputun
83ae758573
address review commends
2021-07-03 14:57:09 -05:00
Dmitry Verkhoturov and Umputun
200733ed03
add user telegram notifications
2021-07-03 14:57:09 -05:00
Dmitry Verkhoturov and Umputun
1847184960
clarify telegram notifications code and text
2021-06-13 19:07:56 -05:00
Dmitry Verkhoturov and Umputun
fd4c6ceb18
add UserDetailTelegram support
2021-06-13 13:18:33 -05:00
Dmitry Verkhoturov and Umputun
d6167980f4
remove ability to set telegram API, clarify params
2021-06-13 01:49:15 -05:00
Dmitry Verkhoturov and Umputun
ea15b28bf6
clarification of notify comments and code
2021-06-12 12:59:26 -05:00
Dmitry Verkhoturov and Umputun
b13fa228b6
start using the provided timeout in the telegram notify
2021-05-25 13:29:19 -05:00
Umputun and GitHub
d5246c9689
Deps bump ( #956 )
...
* remove redundant sprintf
* bump many deps
* missing vendors
2021-04-27 00:30:38 -05:00
ronan and Umputun
df4b0c80ac
Support for Slack notifications
...
Slack notifications: remove debug log
Slack notifications: code lint
Slack notifications: code lint
Slack notifications: code lint
fix according to comments
2021-04-21 12:56:14 -05:00
Dmitry Verkhoturov and Umputun
5fabbe33d9
make flapping notify drops test less sensitive
2021-03-29 12:48:37 -05:00
Dmitry Verkhoturov and Umputun
8a3f434bc1
fix flapping notify drops test, clarify debug logs
2021-03-28 14:06:58 -05:00
Umputun
d624526473
adjust email test to be less go version-specific
2021-03-26 12:51:25 -05:00
Aleksandr Veselov and GitHub
a38fd1fdc3
Encode e-mail subject to support non-ASCII chars ( #888 )
...
* Encode e-mail subject to support non-ASCII chars
* Add test for email subject with unicode
* Fix wrong test argument
* Cleanup test function
2021-02-18 16:23:53 -06:00
Umputun
a0b2bbf1ed
typo
2021-01-03 03:14:19 -06:00
Umputun
2a02a946e7
lint: make scopelint happy on test
2021-01-03 03:13:20 -06:00
Umputun
0cb0232fa1
escape [ ] ( ) from tg title #839
2021-01-03 03:09:21 -06:00
Dmitry Verkhoturov and Umputun
b447863542
add deduplication of emails in recursive notifications
2020-10-20 11:08:04 -05:00
Dmitry Verkhoturov and Umputun
4ba32141fa
add recursive email notifications up to highest parent
2020-10-20 11:08:04 -05:00
Dmitry Verkhoturov and Umputun
1ce3cf3d1f
simplify admin email notifications
2020-10-20 11:02:04 -05:00
Dmitry Verkhoturov and Umputun
6f122f93d1
extract Email.buildAndSendMessage from Email.Send
2020-10-18 17:29:44 -05:00
Dmitry Verkhoturov and Umputun
ced40b525a
move email notification logic into Email struct
2020-10-18 17:29:44 -05:00
Dmitry Verkhoturov and Umputun
c9b395f60d
separate notify.SubmitVerification from notify.Submit
2020-10-11 23:13:24 -05:00
Dmitry Verkhoturov and Umputun
1980f30666
rewrite notify.Service.do from range to select
2020-10-11 23:13:24 -05:00