{"action":"closed","number":155,"pull_request":{"url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155","id":260856605,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYwODU2NjA1","html_url":"https://github.com/zuzakistan/civilservant/pull/155","diff_url":"https://github.com/zuzakistan/civilservant/pull/155.diff","patch_url":"https://github.com/zuzakistan/civilservant/pull/155.patch","issue_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/155","number":155,"state":"closed","locked":false,"title":"Add onunload module function","user":{"login":"zuzak","id":817054,"node_id":"MDQ6VXNlcjgxNzA1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/817054?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzak","html_url":"https://github.com/zuzak","followers_url":"https://api.github.com/users/zuzak/followers","following_url":"https://api.github.com/users/zuzak/following{/other_user}","gists_url":"https://api.github.com/users/zuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzak/subscriptions","organizations_url":"https://api.github.com/users/zuzak/orgs","repos_url":"https://api.github.com/users/zuzak/repos","events_url":"https://api.github.com/users/zuzak/events{/privacy}","received_events_url":"https://api.github.com/users/zuzak/received_events","type":"User","site_admin":false},"body":"This commit adds an onunload module method in the same fashion as the\r\nexisting onload method. These aren't events.\r\n\r\nThis method will be run shortly before a module is (re)loaded if the\r\nmodule was already loaded, in order to allow module authors to\r\ngracefully tear down things they set up in the onload function, such as\r\ntimers.\r\n\r\nIt doesn't run on quit.\r\n\r\nFixes #152.","created_at":"2019-03-13T17:02:14Z","updated_at":"2019-03-19T21:27:41Z","closed_at":"2019-03-19T21:27:41Z","merged_at":"2019-03-19T21:27:41Z","merge_commit_sha":"94477f25f6a1839933574a562a2bcd955d181be8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/zuzakistan/civilservant/milestones/1","html_url":"https://github.com/zuzakistan/civilservant/milestone/1","labels_url":"https://api.github.com/repos/zuzakistan/civilservant/milestones/1/labels","id":3699298,"node_id":"MDk6TWlsZXN0b25lMzY5OTI5OA==","number":1,"title":"Modernisation and cleanup","description":"The codebase civilservant is based on is fairly old now, and there are better JavaScript features we're currently missing out on.\r\n\r\nIt's also badly maintained and we should remove the bits we're not too proud of.","creator":{"login":"zuzak","id":817054,"node_id":"MDQ6VXNlcjgxNzA1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/817054?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzak","html_url":"https://github.com/zuzak","followers_url":"https://api.github.com/users/zuzak/followers","following_url":"https://api.github.com/users/zuzak/following{/other_user}","gists_url":"https://api.github.com/users/zuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzak/subscriptions","organizations_url":"https://api.github.com/users/zuzak/orgs","repos_url":"https://api.github.com/users/zuzak/repos","events_url":"https://api.github.com/users/zuzak/events{/privacy}","received_events_url":"https://api.github.com/users/zuzak/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2018-09-30T17:20:15Z","updated_at":"2019-03-19T21:27:41Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155/commits","review_comments_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155/comments","review_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/155/comments","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/5e1f8ced703aba80d1c5c1814ee3c5dbb59c7aac","head":{"label":"zuzakistan:onunload","ref":"onunload","sha":"5e1f8ced703aba80d1c5c1814ee3c5dbb59c7aac","user":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"repo":{"id":16521444,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyMTQ0NA==","name":"civilservant","full_name":"zuzakistan/civilservant","private":false,"owner":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zuzakistan/civilservant","description":"Feature-crept IRC bot","fork":false,"url":"https://api.github.com/repos/zuzakistan/civilservant","forks_url":"https://api.github.com/repos/zuzakistan/civilservant/forks","keys_url":"https://api.github.com/repos/zuzakistan/civilservant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuzakistan/civilservant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuzakistan/civilservant/teams","hooks_url":"https://api.github.com/repos/zuzakistan/civilservant/hooks","issue_events_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/events{/number}","events_url":"https://api.github.com/repos/zuzakistan/civilservant/events","assignees_url":"https://api.github.com/repos/zuzakistan/civilservant/assignees{/user}","branches_url":"https://api.github.com/repos/zuzakistan/civilservant/branches{/branch}","tags_url":"https://api.github.com/repos/zuzakistan/civilservant/tags","blobs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuzakistan/civilservant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuzakistan/civilservant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/{sha}","languages_url":"https://api.github.com/repos/zuzakistan/civilservant/languages","stargazers_url":"https://api.github.com/repos/zuzakistan/civilservant/stargazers","contributors_url":"https://api.github.com/repos/zuzakistan/civilservant/contributors","subscribers_url":"https://api.github.com/repos/zuzakistan/civilservant/subscribers","subscription_url":"https://api.github.com/repos/zuzakistan/civilservant/subscription","commits_url":"https://api.github.com/repos/zuzakistan/civilservant/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuzakistan/civilservant/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuzakistan/civilservant/contents/{+path}","compare_url":"https://api.github.com/repos/zuzakistan/civilservant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuzakistan/civilservant/merges","archive_url":"https://api.github.com/repos/zuzakistan/civilservant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuzakistan/civilservant/downloads","issues_url":"https://api.github.com/repos/zuzakistan/civilservant/issues{/number}","pulls_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls{/number}","milestones_url":"https://api.github.com/repos/zuzakistan/civilservant/milestones{/number}","notifications_url":"https://api.github.com/repos/zuzakistan/civilservant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuzakistan/civilservant/labels{/name}","releases_url":"https://api.github.com/repos/zuzakistan/civilservant/releases{/id}","deployments_url":"https://api.github.com/repos/zuzakistan/civilservant/deployments","created_at":"2014-02-04T18:39:27Z","updated_at":"2019-03-19T20:51:25Z","pushed_at":"2019-03-19T21:27:41Z","git_url":"git://github.com/zuzakistan/civilservant.git","ssh_url":"git@github.com:zuzakistan/civilservant.git","clone_url":"https://github.com/zuzakistan/civilservant.git","svn_url":"https://github.com/zuzakistan/civilservant","homepage":"","size":470,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":4,"open_issues":63,"watchers":1,"default_branch":"master"}},"base":{"label":"zuzakistan:master","ref":"master","sha":"8f8f8c6caec2b4e20196b54507c104be871ab45e","user":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"repo":{"id":16521444,"node_id":"MDEwOlJlcG9zaXRvcnkxNjUyMTQ0NA==","name":"civilservant","full_name":"zuzakistan/civilservant","private":false,"owner":{"login":"zuzakistan","id":6226775,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjY3NzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6226775?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzakistan","html_url":"https://github.com/zuzakistan","followers_url":"https://api.github.com/users/zuzakistan/followers","following_url":"https://api.github.com/users/zuzakistan/following{/other_user}","gists_url":"https://api.github.com/users/zuzakistan/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzakistan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzakistan/subscriptions","organizations_url":"https://api.github.com/users/zuzakistan/orgs","repos_url":"https://api.github.com/users/zuzakistan/repos","events_url":"https://api.github.com/users/zuzakistan/events{/privacy}","received_events_url":"https://api.github.com/users/zuzakistan/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/zuzakistan/civilservant","description":"Feature-crept IRC bot","fork":false,"url":"https://api.github.com/repos/zuzakistan/civilservant","forks_url":"https://api.github.com/repos/zuzakistan/civilservant/forks","keys_url":"https://api.github.com/repos/zuzakistan/civilservant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zuzakistan/civilservant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zuzakistan/civilservant/teams","hooks_url":"https://api.github.com/repos/zuzakistan/civilservant/hooks","issue_events_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/events{/number}","events_url":"https://api.github.com/repos/zuzakistan/civilservant/events","assignees_url":"https://api.github.com/repos/zuzakistan/civilservant/assignees{/user}","branches_url":"https://api.github.com/repos/zuzakistan/civilservant/branches{/branch}","tags_url":"https://api.github.com/repos/zuzakistan/civilservant/tags","blobs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zuzakistan/civilservant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zuzakistan/civilservant/git/refs{/sha}","trees_url":"https://api.github.com/repos/zuzakistan/civilservant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zuzakistan/civilservant/statuses/{sha}","languages_url":"https://api.github.com/repos/zuzakistan/civilservant/languages","stargazers_url":"https://api.github.com/repos/zuzakistan/civilservant/stargazers","contributors_url":"https://api.github.com/repos/zuzakistan/civilservant/contributors","subscribers_url":"https://api.github.com/repos/zuzakistan/civilservant/subscribers","subscription_url":"https://api.github.com/repos/zuzakistan/civilservant/subscription","commits_url":"https://api.github.com/repos/zuzakistan/civilservant/commits{/sha}","git_commits_url":"https://api.github.com/repos/zuzakistan/civilservant/git/commits{/sha}","comments_url":"https://api.github.com/repos/zuzakistan/civilservant/comments{/number}","issue_comment_url":"https://api.github.com/repos/zuzakistan/civilservant/issues/comments{/number}","contents_url":"https://api.github.com/repos/zuzakistan/civilservant/contents/{+path}","compare_url":"https://api.github.com/repos/zuzakistan/civilservant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zuzakistan/civilservant/merges","archive_url":"https://api.github.com/repos/zuzakistan/civilservant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zuzakistan/civilservant/downloads","issues_url":"https://api.github.com/repos/zuzakistan/civilservant/issues{/number}","pulls_url":"https://api.github.com/repos/zuzakistan/civilservant/pulls{/number}","milestones_url":"https://api.github.com/repos/zuzakistan/civilservant/milestones{/number}","notifications_url":"https://api.github.com/repos/zuzakistan/civilservant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zuzakistan/civilservant/labels{/name}","releases_url":"https://api.github.com/repos/zuzakistan/civilservant/releases{/id}","deployments_url":"https://api.github.com/repos/zuzakistan/civilservant/deployments","created_at":"2014-02-04T18:39:27Z","updated_at":"2019-03-19T20:51:25Z","pushed_at":"2019-03-19T21:27:41Z","git_url":"git://github.com/zuzakistan/civilservant.git","ssh_url":"git@github.com:zuzakistan/civilservant.git","clone_url":"https://github.com/zuzakistan/civilservant.git","svn_url":"https://github.com/zuzakistan/civilservant","homepage":"","size":470,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":4,"open_issues":63,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155"},"html":{"href":"https://github.com/zuzakistan/civilservant/pull/155"},"issue":{"href":"https://api.github.com/repos/zuzakistan/civilservant/issues/155"},"comments":{"href":"https://api.github.com/repos/zuzakistan/civilservant/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zuzakistan/civilservant/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/zuzakistan/civilservant/statuses/5e1f8ced703aba80d1c5c1814ee3c5dbb59c7aac"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"zuzak","id":817054,"node_id":"MDQ6VXNlcjgxNzA1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/817054?v=4","gravatar_id":"","url":"https://api.github.com/users/zuzak","html_url":"https://github.com/zuzak","followers_url":"https://api.github.com/users/zuzak/followers","following_url":"https://api.github.com/users/zuzak/following{/other_user}","gists_url":"https://api.github.com/users/zuzak/gists{/gist_id}","starred_url":"https://api.github.com/users/zuzak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuzak/subscriptions","organizations_url":"https://api.github.com/users/zuzak/orgs","repos_url":"https://api.github.com/users/zuzak/repos","events_url":"https://api.github.com/users/zuzak/events{/privacy}","received_events_url":"https://api.github.com/users/zuzak/received_events","type":"User","site_admin":false},"comments":3,"review_comments":1,"maintainer_can_modify":false,"commits":4,"additions":31,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"zuzak"}}