79 Commits

Author SHA1 Message Date
FoxxMD
318a1d3326 Set heroku url to default branch 0.2.0 2021-06-08 16:16:58 -04:00
FoxxMD
08db50426b Show check details and summary by default (info level) 2021-06-08 16:15:36 -04:00
FoxxMD
77f7a0167c Wiki value typo 2021-06-08 16:10:44 -04:00
FoxxMD
23a9f9d652 Remove potentially problematic heroku env 2021-06-08 16:09:00 -04:00
FoxxMD
72ed72ce4a Add heroku quick deploy button 2021-06-08 16:07:53 -04:00
FoxxMD
8cea19c7f2 Remove default env vars 2021-06-08 16:01:18 -04:00
FoxxMD
8eeaac2d53 Update heroku app file 2021-06-08 15:41:57 -04:00
FoxxMD
3cf838ba9f Create heroku app file 2021-06-08 15:39:14 -04:00
FoxxMD
16f3c2268b Create heroku file 2021-06-08 15:31:34 -04:00
FoxxMD
3be20b910d Fix missing return on activity filter 2021-06-08 14:03:49 -04:00
FoxxMD
78aed4321a Add support for reddit permalink when running check command 2021-06-08 13:55:03 -04:00
FoxxMD
0fe2fa8934 Add submission from comments convenience method 2021-06-08 13:46:45 -04:00
FoxxMD
37ba1dc1bf Fix default value when reference submission has no repeats 2021-06-08 13:46:08 -04:00
FoxxMD
5905c910b0 Implement name references for actions and rules
Action/Rule objects they can now be referenced by name from anywhere in the configuration
2021-06-08 12:40:00 -04:00
FoxxMD
d239d3c6cc Update dockerfile to use default run command 2021-06-08 00:52:23 -04:00
FoxxMD
16d0eebac6 Some small fixes for attribution 2021-06-08 00:35:34 -04:00
FoxxMD
1a393944c0 Refactor AttributionRule to be more robust and handle multiple window/thresholds
It's more useful to be abel to check thresholds for multiple windows to get a more holistic idea of attribution percents
2021-06-08 00:32:25 -04:00
FoxxMD
9f270010b7 Add trace to winston log levels so it can be used with snoowrap 2021-06-08 00:31:31 -04:00
FoxxMD
2548cff367 Friendly print schema validation errors 2021-06-08 00:30:57 -04:00
FoxxMD
c7acda46a0 Implement AttributionRule 2021-06-07 17:45:08 -04:00
FoxxMD
530675179b Refactor activity window
* Truncate items to window length when too many retrieved
* Correctly compare dates
2021-06-07 17:44:20 -04:00
FoxxMD
7960423678 Fix missing bold format character 2021-06-07 14:09:11 -04:00
FoxxMD
4ddb0f0963 Update readme with new cli syntax 2021-06-07 13:58:16 -04:00
FoxxMD
8a54ce15cd Refactor RepeatSubmission rule into RepeatActivity to allow more flexibility in use
* Refactor item repeat logic completely to simplify allow scenarios
* Can check for repeat comments now
* Add more context data and markdown content to display all repeats
2021-06-07 13:39:50 -04:00
FoxxMD
01161c3493 Implement specific activity checking through cli
* Refactor application input to use commando for extensibility
* Add all args/env as options for easy readout on command line
* Add 'check' command to allow running checks against a specific activity
* BC: must specify 'run' to run regular manager/unattended operation
2021-06-07 13:38:37 -04:00
FoxxMD
9970156a3d Fix leaf detection when undefined 2021-06-07 13:36:11 -04:00
FoxxMD
b437156d99 Clean up logging 2021-06-04 16:20:25 -04:00
FoxxMD
de3a279dc3 More verbose debug logging of checks added to subreddit manager on load 2021-06-04 15:07:30 -04:00
FoxxMD
86a6a75119 Add missing domain prefix to permalink 2021-06-04 15:03:32 -04:00
FoxxMD
9634b59b3a Add some temporal convenience logging
* heartbeat logging with configurable interval
* configurable api limit warning
2021-06-04 14:58:13 -04:00
FoxxMD
37f7c99155 Add snoodebug arg/env to control snoowrap debug output independently 2021-06-04 14:53:59 -04:00
FoxxMD
a99ab9a64a Add permalink to peek content to make logs more convenient 2021-06-04 14:53:29 -04:00
FoxxMD
51fb942d34 Fix collapse formatting 0.1.1 2021-06-04 14:04:26 -04:00
FoxxMD
2433610c7f Add documentation on templating 2021-06-04 13:59:44 -04:00
FoxxMD
473e4b7684 Update readme
* Add wikiConfig env
* Collapse for config example
* Config example showcases templating
2021-06-04 13:20:36 -04:00
FoxxMD
020da4b5fe Refactor action parameters to use RuleResults for templating when rendering content 2021-06-04 13:12:18 -04:00
FoxxMD
08c085e3a9 Specify name on rule/check/action must conform to pattern
alphanumeric with spaces, underscore, dashes -- so we can use them to normalize rule results for templating
2021-06-04 13:11:56 -04:00
FoxxMD
c9c42e68f8 Pass manager options back from json build function 2021-06-04 13:10:52 -04:00
FoxxMD
53983475b6 Add more data to RuleResults for use in templating 2021-06-04 13:10:08 -04:00
FoxxMD
1883039391 Content convenience methods
* Use rule result data to make templating more betterer
* Convenience method for extracting item title/content
2021-06-04 13:09:38 -04:00
FoxxMD
574195475f Fix truncate function
Should be removing length of truncate string as well
2021-06-04 13:08:22 -04:00
FoxxMD
cb02345960 Add wikiLocation arg/env for specifying config location 2021-06-04 13:07:48 -04:00
FoxxMD
fc20ee9561 Truncate report content length to 100 characters to fit reddit spec 2021-06-04 10:17:18 -04:00
FoxxMD
d750a3a4e6 Comment out debug statement 0.1 2021-06-03 23:58:07 -04:00
FoxxMD
b70d9f53fe Fix report action content reference 2021-06-03 23:56:26 -04:00
FoxxMD
0e4efda588 Fix refresh token env name 2021-06-03 23:44:45 -04:00
FoxxMD
76ad00f76f Working dockerfile
Closes #7
2021-06-03 23:44:10 -04:00
FoxxMD
00d9660d33 Update package lock 2021-06-03 23:43:51 -04:00
FoxxMD
d3daaacf0b Implement dockerfile
#7
2021-06-03 23:16:04 -04:00
FoxxMD
bd1ad7bffa Specify minimum node level 2021-06-03 23:15:42 -04:00