HPI/my
Matthew Reishus 67cf4d0c04 my.coding.github ignores some events emitted by bots.
I use a service called dependabot ( https://dependabot.com/ ).  It
automatically creates pull requests in my repositories to upgrade
dependencies.  The modern front end javascript world moves really
quickly; projects have a ton of dependencies that are updating all the
time, so there are a lot of these pull requests.

Also, the PRs it makes have a lot of info in them.  Here's an example
one: https://github.com/mreishus/spades/pull/180 .  If you hit the
arrows, you can see it includes a lot of text in "Changelog" and
"Commits".  Now check out the list of closed PRs this project has:
https://github.com/mreishus/spades/pulls?q=is%3Apr+is%3Aclosed

Once I got everything working with my.coding.github, my Github.org
(using orger) was huge: 5MB.  I wanted to get rid of the dependabot
stuff, since it's mostly junk I'm not too interested it, and I got it
down to 130K (from 5MB) just from this commit.

Here's an example of an event I'm filtering out:
I'm looking to see if the "user" contains a "[bot]" tag in it.

  {
    "type": "pull_request",
    "url": "https://github.com/mreishus/spades/pull/96",
    "user": "https://github.com/dependabot-preview[bot]",
    "repository": "https://github.com/mreishus/spades",
    "title": "Bump axios from 0.19.1 to 0.19.2 in /frontend",
    "body": "Bumps [axios](https://github.com/axios/axios) from 0.19.1 to 0.19.2.\n<details>\n<summary>Release notes</summary [cut 5000 characters]
    "base": {
      "ref": "master",
      "sha": "a47687762887c6e5c0d5d0a38c3c9697f09cbcd6",
      "user": "https://github.com/mreishus",
      "repo": "https://github.com/mreishus/spades"
    },
    "head": {
      "ref": "dependabot/npm_and_yarn/frontend/axios-0.19.2",
      "sha": "0e79d0220002cb54cd40e13a40addcc0d0a01482",
      "user": "https://github.com/mreishus",
      "repo": "https://github.com/mreishus/spades"
    },
    "assignee": "https://github.com/mreishus",
    "assignees": [
      "https://github.com/mreishus"
    ],
    "milestone": null,
    "labels": [
      "https://github.com/mreishus/spades/labels/dependencies",
      "https://github.com/mreishus/spades/labels/javascript"
    ],
    "review_requests": [

    ],
    "work_in_progress": false,
    "merged_at": null,
    "closed_at": "2020-01-25T14:40:27Z",
    "created_at": "2020-01-22T13:37:17Z"
  },

Maybe this should be a config option, but I didn't know how to make them
cleanly in HPI, and I'm not sure if anyone would ever want this stuff.
2020-06-01 16:22:07 +01:00
..
bluemaestro use my.config instead of mycfg; minor cleanups and docstrings 2020-04-12 00:22:10 +01:00
body add test for dynamic config attributes (import my.cfg as config) 2020-05-04 22:08:58 +01:00
books get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
calendar get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
coding my.coding.github ignores some events emitted by bots. 2020-06-01 16:22:07 +01:00
config remove garbage org files, move example config down the hierarchy 2020-05-14 23:01:50 +01:00
core cli: add 'config init' command 2020-05-25 12:25:41 +01:00
emfit cli: integrate with stats reported by the modules 2020-05-25 11:46:30 +01:00
google/takeout Autoextract documentation for some modules, improve docs 2020-05-10 18:09:12 +01:00
jawbone use my.config instead of mycfg; minor cleanups and docstrings 2020-04-12 00:22:10 +01:00
kython polar: handle few more attributes defensively 2020-05-15 13:17:02 +01:00
lastfm Update lastfm order/tests/docs 2020-05-13 22:52:23 +01:00
location kompress.kopen improvements 2020-05-04 08:37:36 +01:00
media get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
notes add test for dynamic config attributes (import my.cfg as config) 2020-05-04 22:08:58 +01:00
photos fix photo link 2020-05-03 12:26:18 +01:00
reading twitter module: prettify top level twitter.all 2020-05-22 19:00:02 +01:00
rss cli: integrate with stats reported by the modules 2020-05-25 11:46:30 +01:00
twitter core: improvements for warnings, twitter/rss: try using @warn_if_empty 2020-05-25 00:56:03 +01:00
cfg.py core/modules: get rid of set_repo uses, it was just complicating everythin 2020-05-18 21:33:52 +01:00
common.py cleanup, mypy coverage & add common/error stubs 2020-05-06 22:54:14 +01:00
demo.py ok, seems that import_dir is a bit saner 2020-05-18 21:04:38 +01:00
error.py cleanup, mypy coverage & add common/error stubs 2020-05-06 22:54:14 +01:00
fbmessenger.py update docstrings 2020-04-13 23:48:58 +01:00
foursquare.py cli: integrate with stats reported by the modules 2020-05-25 11:46:30 +01:00
hypothesis.py pocket: reuse pockexport data access layer 2020-05-27 08:42:47 +01:00
instapaper.py documentation: generate tables of content, better navigation 2020-05-18 23:31:55 +01:00
materialistic.py get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
pdfs.py get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
pinboard.py get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
pocket.py pocket: reuse pockexport data access layer 2020-05-27 08:42:47 +01:00
py.typed move to subfolder 2019-09-17 21:33:17 +04:00
reddit.py documentation: generate tables of content, better navigation 2020-05-18 23:31:55 +01:00
rescuetime.py prettify emfit provider 2020-05-03 13:42:31 +01:00
roamresearch.py add traverse() to roam 2020-04-21 19:25:20 +01:00
rtm.py cpath tests, rely more on it 2020-05-04 08:53:41 +01:00
smscalls.py get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
stackexchange.py use my.config instead of mycfg; minor cleanups and docstrings 2020-04-12 00:22:10 +01:00
vk.py use my.config instead of mycfg; minor cleanups and docstrings 2020-04-12 00:22:10 +01:00