indes / flowerss-bot

A telegram bot for rss reader. 一个支持应用内阅读的 Telegram RSS Bot。
https://flowerss-bot.now.sh/
MIT License
1.84k stars 240 forks source link

feat: add telegraph includes/excludes #186

Closed hellodword closed 7 months ago

hellodword commented 2 years ago

例如: https://github.com/indes.atom

flowerss-bot 目前连同 https://github.com/indes/flowerss-bot/compare/9d06a7d399...2775f7af0d 这样的 link 都会尝试去生成 telegraph,观感不佳,全局关掉又很可惜。

我们可以用正则来排除掉它:

telegraph_excludes:
- '^https://github\.com/[^/]+/[^/]+/compare'

includes 和 excludes 互斥,都为空则保持原逻辑。

你觉得如何?

codecov-commenter commented 2 years ago

Codecov Report

Merging #186 (a2a7664) into master (5c856b5) will decrease coverage by 0.06%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #186      +/-   ##
==========================================
- Coverage   11.06%   10.99%   -0.07%     
==========================================
  Files          14       14              
  Lines         660      664       +4     
==========================================
  Hits           73       73              
- Misses        577      581       +4     
  Partials       10       10              
Flag Coverage Δ
unittests 10.99% <0.00%> (-0.07%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
internal/config/autoload.go 13.49% <0.00%> (-0.34%) :arrow_down:
internal/config/config.go 0.00% <ø> (ø)
internal/model/content.go 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.