36 Commits

Author SHA1 Message Date
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
FoxxMD
ec54564178 Remove guard references 2021-06-03 23:15:29 -04:00
FoxxMD
3cbc1cb095 Add usage, option definitions, and how-to for getting credentials
Closes #6
2021-06-03 16:16:21 -04:00
FoxxMD
c9c9e68250 Better schema documentation in readme 2021-06-03 15:25:54 -04:00
FoxxMD
b7da84d4fc Add direct link to schema viewer 2021-06-03 15:22:39 -04:00
FoxxMD
985d08fddc Update schema filename/link in readme 2021-06-03 15:20:09 -04:00
FoxxMD
bf70a23a25 Refactor json parsing to use ajv for all validation instead of guards
* Generate individual schemas for root objects from config (Rule, RuleSet, Action)
* Using ajv validation means we can also report all validation errors
* Remove noisy generated guard files
2021-06-03 15:19:47 -04:00
FoxxMD
c632efbbb2 More annotation improvements 2021-06-03 14:32:56 -04:00
FoxxMD
81e95e2cc8 Further improvements for json schema 2021-06-03 12:05:51 -04:00
FoxxMD
e7d4c9dd91 Add example configuration 2021-06-02 20:48:17 -04:00
FoxxMD
2363445848 Update readme with configuration reference and other section stubs 2021-06-02 20:39:38 -04:00
FoxxMD
0943fc4e80 Update schema documentation
#6
2021-06-02 20:38:34 -04:00
FoxxMD
517fb83211 More readme stubs 2021-06-02 19:31:29 -04:00
FoxxMD
b8068b534b Add readme 2021-06-02 19:14:47 -04:00
FoxxMD
76593c0bc3 Add license 2021-06-02 18:32:36 -04:00
FoxxMD
4ccec4021a Refactor winston to use nested labels for better context
Closes #3
2021-06-02 18:29:02 -04:00
FoxxMD
60b81fb401 Implement Author rule
Closes #4
2021-06-02 15:35:21 -04:00
FoxxMD
6eeef81d66 Make rule return value useful for information and subsequent rule runs
* Return plain data (RuleResult) with setup (premise), boolean triggered, and optional result text/data (for later use in action maybe?)
* Use RuleResult to prevent running a rule that has already been run with the same setup (premise) -- will speed up execution and prevent extraneous api calls
2021-06-02 15:11:00 -04:00
FoxxMD
5d755e384a Refactor author checks in utility function for reusability 2021-06-02 11:46:48 -04:00
FoxxMD
c6857999bc Implement basic actions #1 2021-06-01 23:39:18 -04:00
FoxxMD
69eea271cb Implement wiki comment action
* Get comment text from wiki page with 'wiki:' prefix in content
* Cache for 5 minutes (will make configurable later)
* Render comment content with Mustache template

Closes #2
2021-06-01 23:24:47 -04:00
FoxxMD
2badffc75f Fix listing end check 2021-06-01 22:45:52 -04:00
FoxxMD
bbb09bb9fb Manager improvements
* Add configurable limit/poll time
* Wait until after first listing event before processing items so we only get new since bot start
2021-06-01 22:31:55 -04:00
FoxxMD
ce0e03f310 Implement comment action
#2 and #1
2021-06-01 18:35:51 -04:00
FoxxMD
942da1ffdb Simplify/clarify rule behavior for pass/fail 2021-06-01 17:47:29 -04:00
FoxxMD
9a6e7af208 Implement recent activity rule 2021-06-01 17:25:38 -04:00
FoxxMD
f3b9beba57 Add js/map files to gitignore 2021-06-01 15:39:41 -04:00
FoxxMD
fc854d3d73 Implement repeat submissions rule 2021-06-01 15:38:07 -04:00
FoxxMD
75a6d2c0a6 Fix rotated log name 2021-05-27 17:28:53 -04:00
FoxxMD
18023b1edc Initial commit 2021-05-27 17:27:26 -04:00