Commit graph

4223 commits

Author SHA1 Message Date
jesopo
2b4f5dc75b correctly color/phrase opened, closed and merged for MRs 2019-10-18 13:31:21 +01:00
jesopo
afd6800c98 show merge_request/merge events 2019-10-18 13:28:24 +01:00
jesopo
0e85fdbb37 better README.md webhook wording 2019-10-18 13:22:25 +01:00
jesopo
7d786baa65 "PR"->"MR" again, "open"->"opened" etc for MRs too 2019-10-18 12:20:23 +01:00
jesopo
b151e7eecd 'PR' -> 'MR' (they're "merge requests" on gitlab, not "pull requests") 2019-10-18 12:02:56 +01:00
jesopo
8b08261423 update README.md - we support gitlab webhooks now! 2019-10-18 12:01:47 +01:00
jesopo
963d0d2de7 'opened' -> 'open' etc for gitlab event categories 2019-10-18 11:58:10 +01:00
jesopo
fe9009f0c3 update CHANGELOG.md 2019-10-18 11:41:37 +01:00
jesopo
cbae4286aa define bitbot.service ExecStop as bitbotctl stop 2019-10-18 11:32:22 +01:00
jesopo
00e85c7573 bitbotctl stop should be keepalive so it exits when bitbotd exits 2019-10-18 11:29:59 +01:00
jesopo
53b2407072 'open' -> 'opened' etc for gitlab issue webhook actions 2019-10-18 11:19:16 +01:00
jesopo
f64131a10f support utf8 hostnames by punycode (idna) encoding 2019-10-18 10:58:24 +01:00
jesopo
123cdcf0da pull_request -> merge_request 2019-10-18 03:52:59 +01:00
jesopo
a1b8a4033a hook_handler should be catching TRACE logging 2019-10-17 17:49:49 +01:00
jesopo
aa2511baaa add IRCBot.stop() - use it for !shutdown and './bitbotctl stop' 2019-10-17 16:53:48 +01:00
jesopo
cf0ac7d25b move bot.conf.example to docs/ 2019-10-17 14:21:56 +01:00
jesopo
31a6306ab6 update CHANGELOG.md 2019-10-17 14:19:33 +01:00
jesopo
72ad8176bf update setup.md to mention bot.conf should be in ~/.bitbot 2019-10-17 13:59:02 +01:00
jesopo
ab6a03011d remove 'databases' folder 2019-10-17 13:51:26 +01:00
jesopo
73272fbc3b change bitbotctl to use new data dir by default 2019-10-17 13:47:58 +01:00
jesopo
176d6c1efb DEBUG log db location on startup 2019-10-17 13:42:00 +01:00
jesopo
417c4f302e default to using a "data directory" for bitbot (~/.bitbot/) 2019-10-17 12:39:56 +01:00
jesopo
8ff4ad19eb we should be showing 'title' (not 'description') for gitlab issue events 2019-10-17 11:50:57 +01:00
jesopo
a6093092b1 'issues' should be an alias for 'issue' in gitlab 2019-10-17 11:49:07 +01:00
jesopo
7b1da6c1b4 add FUNDING.yml 2019-10-16 17:32:20 +01:00
jesopo
4a4a0ac45b dont fail !weather when we decide a nickname is a location 2019-10-16 15:53:34 +01:00
jesopo
6d29291f47 also catch m.youtube.com urls 2019-10-15 17:27:02 +01:00
jesopo
fa97f12689 support AP Notes with content outside of HTML tags (e.g. pleroma) 2019-10-15 16:44:28 +01:00
jesopo
491ad531c2 mapped event names for gitlab webhooks should be 'issue' not 'issues' 2019-10-15 16:20:41 +01:00
jesopo
b895958f09 remove debug prints from IRCBot 2019-10-15 16:16:29 +01:00
jesopo
f0a9f00b57 'issues' -> 'issue', 'pull_request' -> 'merge_request' 2019-10-15 16:14:15 +01:00
jesopo
2f94e7546f actually instantiate gitlab in git_webhooks/__init__.py 2019-10-15 16:10:18 +01:00
jesopo
be30cb81af add first draft of gitlab webhook support 2019-10-15 16:04:30 +01:00
jesopo
41f5c5d607 move cve.py to bitbot-modules repo 2019-10-15 15:27:44 +01:00
jesopo
3f4eebf85b show ,fedi latest-tweet also if it's a self-reply 2019-10-15 15:24:57 +01:00
jesopo
f739064d10 show first toot if it's a boost, fix Note boost formatting 2019-10-15 15:13:28 +01:00
jesopo
205049ab6f remove unused util functions in git_webhooks/gitea.py 2019-10-15 10:53:29 +01:00
jesopo
124fc4fc42 Set duck_lines to -1 when a duck is waiting to quack - do not allow bef/trap
closes #177
2019-10-15 10:33:13 +01:00
jesopo
aa3906dfa3 fix type linting issues for client in Control.is_readable 2019-10-14 18:17:15 +01:00
jesopo
e58e9a2058 add .back suffix to database backups 2019-10-14 18:13:43 +01:00
jesopo
fe16c0132f prune database backups even if there's more than 5 2019-10-14 18:07:18 +01:00
jesopo
920456ea17 add small comment in bitbotctl about the ctl proto 2019-10-14 16:51:36 +01:00
jesopo
defe9045c3 Update CHANGELOG.md 2019-10-14 15:37:56 +01:00
jesopo
88ffa421c1 add bitbotctl reload command to reload all modules 2019-10-14 14:52:58 +01:00
jesopo
99b4663ce7 run Control callbacks on main thread
closes #180
2019-10-14 14:51:53 +01:00
jesopo
11ade023e8 eat errors for failing to parse @commit 2019-10-14 14:03:47 +01:00
jesopo
e50290046a remove safe arg from ModuleManager.load_modules() - try_reload_modules covers this now 2019-10-14 13:02:16 +01:00
jesopo
a9111c7241 add ModuleManager.try_reload_modules(), to try reloading in a transaction
if any of the modules fails to reload, rollback and use the already loaded modules. closes #179
2019-10-14 12:56:04 +01:00
jesopo
4940aff877 refactor out chosing loadable modules in to _list_valid_modules() 2019-10-14 11:37:04 +01:00
jesopo
af1fd37003 actually explicitly strip "unknown" html tags from fedi notes 2019-10-14 10:46:15 +01:00