Nikos Filippakis
630b6d4b22
Filter RSS feed items by keywords
closes #236 , closes #296
Signed-off-by: Nikos Filippakis <me@nfil.dev>
6 years ago
Nikos Filippakis
1d8036f1ba
Show author of RSS feed item if available
closes #298
Signed-off-by: Nikos Filippakis <me@nfil.dev>
6 years ago
Kegan Dougal
d9213d61a4
Make it compile
6 years ago
Richard van der Hoff
f4686c0402
Add a 'SilenceURL' for the alertmanager templates ( #305 )
The intention is that this URL can then be referenced from the HTML template in
the service to provide a handy link to set up a silence.
6 years ago
Richard van der Hoff
24819dabe1
Better error handling for the alertmanager service ( #306 )
* when there is a problem with the templates in the service, say what the
problem is.
* when there is a problem interpolating the template, log the error and return
a 500.
6 years ago
Ville Ranki
7e0f2f6196
Add spaces between url and parenthesis
7 years ago
Andrew Morgan
5188df5d0e
Don't mutate the passed in attribute
7 years ago
Andrew Morgan
0bf5586881
Use feed's title if item does not have one
This prevents a link from not being shown if an item's title could not be extracted.
Workaround(?) fix for matrix-org#284.
7 years ago
Andrew Morgan
6f1879f359
Fix mismatching types error ( #277 )
7 years ago
thomas-profitt
4febdd6330
Improve formatting of RSS posts ( #269 )
Better on clients that don't support formatting and doesn't waste space on those that do.
7 years ago
Michael Kaye
2938b1bd22
Make golint happy
7 years ago
Jan Christian Grünhage
02c0c80a20
alertmanager support
7 years ago
Konstantinos Sideris
408fd35c3d
Fix invalid HTML on bot message when a branch is deleted
7 years ago
Will Hunt
468cc87b1d
Drop unused dependency
7 years ago
Will Hunt
149d66f995
Remove "url" from RSS metric
It's not really that useful
7 years ago
Michael Kaye
e51bdcf6ac
If we have a LOG_DIR, then disable standard stderr logging.
Currently we log everything to stderr AND to LOG_DIR, doubling log volumes.
8 years ago
Michael Telatynski
a31aaab46e
Linkify/Expand commits
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
746a8477e7
Improve [owner/repo]#issue expansion regex so that it is less greedy
and no longer matches #1a a#1 as a default match for #1 .
8 years ago
Michael Telatynski
aa00ab2322
fix typos
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
8f60839c77
DRY code - [NEEDS TESTING]
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
f9b708a31f
fix help message
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
dbda4d0119
add !github reopen cmd
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
64328cbb53
change loop to better define its behaviour
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
c9eb00221e
escape title and login, to prevent XSS
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
1cc6d0315f
move variable definitions closer to usage
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
2141a1a5dd
fix error wording, allow github search without auth
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
da576fa12d
add more aliases and throw them into the example in the usage
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
67c121a4b0
add github's weird padded heart emoji as alias
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
a440850ff1
add a bunch of reaction aliases
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
c774bb893b
update react cmd to use a string map for aliases
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
c85abe84da
update defaultRepo wording
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
2b570d9b6c
improve error from no default repo
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
e8a4b1eda5
error-check !github react before calling Github
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
b6fe6092ab
fix cmd usage messages
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
2da64f9fba
add !github assign and tidy !github help generation code
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
c7ad22d4ee
DRY wrt cmd Usages
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
3a046cf3ad
add !github react
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
aa36440112
add !github close command
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
fd9e3a0957
fix error wording
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
58d6be0184
fix err shadowing
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
b03b3fd0f5
factor out `requireGithubClientFor`
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
Michael Telatynski
fd792f4499
adds the `!github comment` command
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
8 years ago
rosston
39d91b721b
Add ability to use downsized images from giphy.
8 years ago
Kegan Dougal
ed085d6349
Turn off gzipping; this should really be a config option
9 years ago
Kegan Dougal
38ef6c591d
Increase the max number of GUIDs we keep per RSS feed
Some feeds have >1k items such as:
- https://dashboard.downdetector.com/events/qfu1JvvwVwYf1OvgvORuD4HQMt5xMF2Y/217:405-5025.xml
If Go-NEB tracks this feed, it will continually send N-1000 items into
the matrix room because it doesn't remember all the GUIDs. This is only
a hack to fix this problem for now, to avoid DoSing Synapse.
9 years ago
Matthew Hodgson
7a234d16a4
better log msg
9 years ago
Kegan Dougal
7a643a0711
Comment the return args on getWebhook
9 years ago
Kegan Dougal
302a0238e2
Update go-neb to use util.JSONResponse
9 years ago
Richard Lewis
7314554c1c
Comment struct fields (specifically map keys)
9 years ago
Richard Lewis
ec97260b18
Comments to show intended structure use
9 years ago