{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4","id":214543780,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NTQzNzgw","html_url":"https://github.com/raymestalez/mastodon-hnbot/pull/4","diff_url":"https://github.com/raymestalez/mastodon-hnbot/pull/4.diff","patch_url":"https://github.com/raymestalez/mastodon-hnbot/pull/4.patch","issue_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/4","number":4,"state":"open","locked":false,"title":"add article links if present + many other improvements","user":{"login":"Mic92","id":96200,"node_id":"MDQ6VXNlcjk2MjAw","avatar_url":"https://avatars3.githubusercontent.com/u/96200?v=4","gravatar_id":"","url":"https://api.github.com/users/Mic92","html_url":"https://github.com/Mic92","followers_url":"https://api.github.com/users/Mic92/followers","following_url":"https://api.github.com/users/Mic92/following{/other_user}","gists_url":"https://api.github.com/users/Mic92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mic92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mic92/subscriptions","organizations_url":"https://api.github.com/users/Mic92/orgs","repos_url":"https://api.github.com/users/Mic92/repos","events_url":"https://api.github.com/users/Mic92/events{/privacy}","received_events_url":"https://api.github.com/users/Mic92/received_events","type":"User","site_admin":false},"body":"I don't expect you to merge this because I basically rewrote the bot,\r\nbut I would like you to know about the changes I made in my fork.\r\n\r\nI dropped the hashtags and added article urls (if present).\r\nIds are now looked up in a key-value database which is faster than\r\nlooping over all posted ids for each new id.\r\n\r\nFeel free to re-use the code as your liking.","created_at":"2018-09-11T07:56:55Z","updated_at":"2018-09-11T07:56:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4/commits","review_comments_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4/comments","review_comment_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/4/comments","statuses_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/statuses/294373b0cc780dec0743a27d4d24abe3bde5a84c","head":{"label":"Mic92:master","ref":"master","sha":"294373b0cc780dec0743a27d4d24abe3bde5a84c","user":{"login":"Mic92","id":96200,"node_id":"MDQ6VXNlcjk2MjAw","avatar_url":"https://avatars3.githubusercontent.com/u/96200?v=4","gravatar_id":"","url":"https://api.github.com/users/Mic92","html_url":"https://github.com/Mic92","followers_url":"https://api.github.com/users/Mic92/followers","following_url":"https://api.github.com/users/Mic92/following{/other_user}","gists_url":"https://api.github.com/users/Mic92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mic92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mic92/subscriptions","organizations_url":"https://api.github.com/users/Mic92/orgs","repos_url":"https://api.github.com/users/Mic92/repos","events_url":"https://api.github.com/users/Mic92/events{/privacy}","received_events_url":"https://api.github.com/users/Mic92/received_events","type":"User","site_admin":false},"repo":{"id":148276906,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgyNzY5MDY=","name":"mastodon-hnbot","full_name":"Mic92/mastodon-hnbot","owner":{"login":"Mic92","id":96200,"node_id":"MDQ6VXNlcjk2MjAw","avatar_url":"https://avatars3.githubusercontent.com/u/96200?v=4","gravatar_id":"","url":"https://api.github.com/users/Mic92","html_url":"https://github.com/Mic92","followers_url":"https://api.github.com/users/Mic92/followers","following_url":"https://api.github.com/users/Mic92/following{/other_user}","gists_url":"https://api.github.com/users/Mic92/gists{/gist_id}","starred_url":"https://api.github.com/users/Mic92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mic92/subscriptions","organizations_url":"https://api.github.com/users/Mic92/orgs","repos_url":"https://api.github.com/users/Mic92/repos","events_url":"https://api.github.com/users/Mic92/events{/privacy}","received_events_url":"https://api.github.com/users/Mic92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mic92/mastodon-hnbot","description":"A bot posting the Hacker News stories with 100+ points to Mastodon","fork":true,"url":"https://api.github.com/repos/Mic92/mastodon-hnbot","forks_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/forks","keys_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/teams","hooks_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/hooks","issue_events_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/issues/events{/number}","events_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/events","assignees_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/assignees{/user}","branches_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/branches{/branch}","tags_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/tags","blobs_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/statuses/{sha}","languages_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/languages","stargazers_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/stargazers","contributors_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/contributors","subscribers_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/subscribers","subscription_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/subscription","commits_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/contents/{+path}","compare_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/merges","archive_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/downloads","issues_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/issues{/number}","pulls_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/pulls{/number}","milestones_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/milestones{/number}","notifications_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/labels{/name}","releases_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/releases{/id}","deployments_url":"https://api.github.com/repos/Mic92/mastodon-hnbot/deployments","created_at":"2018-09-11T07:18:53Z","updated_at":"2018-09-11T07:30:03Z","pushed_at":"2018-09-11T07:30:02Z","git_url":"git://github.com/Mic92/mastodon-hnbot.git","ssh_url":"git@github.com:Mic92/mastodon-hnbot.git","clone_url":"https://github.com/Mic92/mastodon-hnbot.git","svn_url":"https://github.com/Mic92/mastodon-hnbot","homepage":"https://mastodon.social/@HackerNewsBot","size":507,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"raymestalez:master","ref":"master","sha":"d0d60643531a5d182241ed4765543a1c98ca4b02","user":{"login":"raymestalez","id":4761235,"node_id":"MDQ6VXNlcjQ3NjEyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/4761235?v=4","gravatar_id":"","url":"https://api.github.com/users/raymestalez","html_url":"https://github.com/raymestalez","followers_url":"https://api.github.com/users/raymestalez/followers","following_url":"https://api.github.com/users/raymestalez/following{/other_user}","gists_url":"https://api.github.com/users/raymestalez/gists{/gist_id}","starred_url":"https://api.github.com/users/raymestalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymestalez/subscriptions","organizations_url":"https://api.github.com/users/raymestalez/orgs","repos_url":"https://api.github.com/users/raymestalez/repos","events_url":"https://api.github.com/users/raymestalez/events{/privacy}","received_events_url":"https://api.github.com/users/raymestalez/received_events","type":"User","site_admin":false},"repo":{"id":87591605,"node_id":"MDEwOlJlcG9zaXRvcnk4NzU5MTYwNQ==","name":"mastodon-hnbot","full_name":"raymestalez/mastodon-hnbot","owner":{"login":"raymestalez","id":4761235,"node_id":"MDQ6VXNlcjQ3NjEyMzU=","avatar_url":"https://avatars3.githubusercontent.com/u/4761235?v=4","gravatar_id":"","url":"https://api.github.com/users/raymestalez","html_url":"https://github.com/raymestalez","followers_url":"https://api.github.com/users/raymestalez/followers","following_url":"https://api.github.com/users/raymestalez/following{/other_user}","gists_url":"https://api.github.com/users/raymestalez/gists{/gist_id}","starred_url":"https://api.github.com/users/raymestalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymestalez/subscriptions","organizations_url":"https://api.github.com/users/raymestalez/orgs","repos_url":"https://api.github.com/users/raymestalez/repos","events_url":"https://api.github.com/users/raymestalez/events{/privacy}","received_events_url":"https://api.github.com/users/raymestalez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raymestalez/mastodon-hnbot","description":"A bot posting the Hacker News stories with 100+ points to Mastodon","fork":false,"url":"https://api.github.com/repos/raymestalez/mastodon-hnbot","forks_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/forks","keys_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/teams","hooks_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/hooks","issue_events_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/events{/number}","events_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/events","assignees_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/assignees{/user}","branches_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/branches{/branch}","tags_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/tags","blobs_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/statuses/{sha}","languages_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/languages","stargazers_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/stargazers","contributors_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/contributors","subscribers_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/subscribers","subscription_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/subscription","commits_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/contents/{+path}","compare_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/merges","archive_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/downloads","issues_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues{/number}","pulls_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls{/number}","milestones_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/milestones{/number}","notifications_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/labels{/name}","releases_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/releases{/id}","deployments_url":"https://api.github.com/repos/raymestalez/mastodon-hnbot/deployments","created_at":"2017-04-07T22:29:45Z","updated_at":"2018-08-19T05:43:19Z","pushed_at":"2017-04-09T17:46:33Z","git_url":"git://github.com/raymestalez/mastodon-hnbot.git","ssh_url":"git@github.com:raymestalez/mastodon-hnbot.git","clone_url":"https://github.com/raymestalez/mastodon-hnbot.git","svn_url":"https://github.com/raymestalez/mastodon-hnbot","homepage":"https://mastodon.social/@HackerNewsBot","size":507,"stargazers_count":32,"watchers_count":32,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":1,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4"},"html":{"href":"https://github.com/raymestalez/mastodon-hnbot/pull/4"},"issue":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/4"},"comments":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/raymestalez/mastodon-hnbot/statuses/294373b0cc780dec0743a27d4d24abe3bde5a84c"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":107,"deletions":69,"changed_files":1}}
{"actor":{"display_login":"Mic92"}}