{"action":"closed","number":36,"pull_request":{"url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36","id":203668061,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNjY4MDYx","html_url":"https://github.com/web-platform-tests/wpt-pr-bot/pull/36","diff_url":"https://github.com/web-platform-tests/wpt-pr-bot/pull/36.diff","patch_url":"https://github.com/web-platform-tests/wpt-pr-bot/pull/36.patch","issue_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/36","number":36,"state":"closed","locked":false,"title":"Extend labeling logic with more special cases","user":{"login":"jugglinmike","id":677252,"node_id":"MDQ6VXNlcjY3NzI1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/677252?v=4","gravatar_id":"","url":"https://api.github.com/users/jugglinmike","html_url":"https://github.com/jugglinmike","followers_url":"https://api.github.com/users/jugglinmike/followers","following_url":"https://api.github.com/users/jugglinmike/following{/other_user}","gists_url":"https://api.github.com/users/jugglinmike/gists{/gist_id}","starred_url":"https://api.github.com/users/jugglinmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugglinmike/subscriptions","organizations_url":"https://api.github.com/users/jugglinmike/orgs","repos_url":"https://api.github.com/users/jugglinmike/repos","events_url":"https://api.github.com/users/jugglinmike/events{/privacy}","received_events_url":"https://api.github.com/users/jugglinmike/received_events","type":"User","site_admin":false},"body":"Introduce additional rules for adding labels based on file name:\r\n\r\n- Changes in tools/lint should have the `lint` label\r\n- Changes in tools/manifest should have the `manifest` label\r\n- Changes in tools/runner should have the `runner` label\r\n- Changes in tools/wptrunner should have the `wptrunner` label\r\n- Changes in tools/wptserve should have the `wptserve` label\r\n- Changes in tools/wpt should have the `wpt` label\r\n- Changes to resources/testharness.* or testharnessreport.* (files!)\r\n  should have the `testharness.js` label\r\n- Changes to resources/testdriver.* or testdriver-vendor.* (files!)\r\n  should have the `testdriver.js` label\r\n- Changes to resources/idlharness.* (files!) should have the\r\n  `idlharness.js` label\r\n- Changes to css/tools should have the `css-build-system` label\r\n\r\nSee #12\r\n\r\n---\r\n\r\nTo facilitate the implementation of this feature, I started with a bit of refactoring. Those changes are organized via dedicated commits that aren't intended to change functionality; I'm hoping that makes review a little easier.","created_at":"2018-07-24T22:03:56Z","updated_at":"2018-07-27T15:55:43Z","closed_at":"2018-07-27T15:55:43Z","merged_at":"2018-07-27T15:55:43Z","merge_commit_sha":"e93efa54cd7b7c5675a6e6aba34334dfc1797f78","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jgraham","id":294864,"node_id":"MDQ6VXNlcjI5NDg2NA==","avatar_url":"https://avatars1.githubusercontent.com/u/294864?v=4","gravatar_id":"","url":"https://api.github.com/users/jgraham","html_url":"https://github.com/jgraham","followers_url":"https://api.github.com/users/jgraham/followers","following_url":"https://api.github.com/users/jgraham/following{/other_user}","gists_url":"https://api.github.com/users/jgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/jgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgraham/subscriptions","organizations_url":"https://api.github.com/users/jgraham/orgs","repos_url":"https://api.github.com/users/jgraham/repos","events_url":"https://api.github.com/users/jgraham/events{/privacy}","received_events_url":"https://api.github.com/users/jgraham/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36/commits","review_comments_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36/comments","review_comment_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/36/comments","statuses_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/statuses/e777f742fe1e38c43b28e34bb3d2a4f33bea021e","head":{"label":"bocoup:labels-tools","ref":"labels-tools","sha":"e777f742fe1e38c43b28e34bb3d2a4f33bea021e","user":{"login":"bocoup","id":497466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NzQ2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/497466?v=4","gravatar_id":"","url":"https://api.github.com/users/bocoup","html_url":"https://github.com/bocoup","followers_url":"https://api.github.com/users/bocoup/followers","following_url":"https://api.github.com/users/bocoup/following{/other_user}","gists_url":"https://api.github.com/users/bocoup/gists{/gist_id}","starred_url":"https://api.github.com/users/bocoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocoup/subscriptions","organizations_url":"https://api.github.com/users/bocoup/orgs","repos_url":"https://api.github.com/users/bocoup/repos","events_url":"https://api.github.com/users/bocoup/events{/privacy}","received_events_url":"https://api.github.com/users/bocoup/received_events","type":"Organization","site_admin":false},"repo":{"id":137138250,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcxMzgyNTA=","name":"wpt-pr-bot","full_name":"bocoup/wpt-pr-bot","owner":{"login":"bocoup","id":497466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NzQ2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/497466?v=4","gravatar_id":"","url":"https://api.github.com/users/bocoup","html_url":"https://github.com/bocoup","followers_url":"https://api.github.com/users/bocoup/followers","following_url":"https://api.github.com/users/bocoup/following{/other_user}","gists_url":"https://api.github.com/users/bocoup/gists{/gist_id}","starred_url":"https://api.github.com/users/bocoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bocoup/subscriptions","organizations_url":"https://api.github.com/users/bocoup/orgs","repos_url":"https://api.github.com/users/bocoup/repos","events_url":"https://api.github.com/users/bocoup/events{/privacy}","received_events_url":"https://api.github.com/users/bocoup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bocoup/wpt-pr-bot","description":"Home of the wpt-pr-bot","fork":true,"url":"https://api.github.com/repos/bocoup/wpt-pr-bot","forks_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/forks","keys_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/teams","hooks_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/hooks","issue_events_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/issues/events{/number}","events_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/events","assignees_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/assignees{/user}","branches_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/branches{/branch}","tags_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/tags","blobs_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/languages","stargazers_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/stargazers","contributors_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/contributors","subscribers_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/subscribers","subscription_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/subscription","commits_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/contents/{+path}","compare_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/merges","archive_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/downloads","issues_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/issues{/number}","pulls_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/labels{/name}","releases_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/releases{/id}","deployments_url":"https://api.github.com/repos/bocoup/wpt-pr-bot/deployments","created_at":"2018-06-12T23:28:48Z","updated_at":"2018-06-12T23:28:50Z","pushed_at":"2018-07-27T15:38:20Z","git_url":"git://github.com/bocoup/wpt-pr-bot.git","ssh_url":"git@github.com:bocoup/wpt-pr-bot.git","clone_url":"https://github.com/bocoup/wpt-pr-bot.git","svn_url":"https://github.com/bocoup/wpt-pr-bot","homepage":"","size":326,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"web-platform-tests:master","ref":"master","sha":"81052185c041eafa44692962e0612160c845ff52","user":{"login":"web-platform-tests","id":37226233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjI2MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/37226233?v=4","gravatar_id":"","url":"https://api.github.com/users/web-platform-tests","html_url":"https://github.com/web-platform-tests","followers_url":"https://api.github.com/users/web-platform-tests/followers","following_url":"https://api.github.com/users/web-platform-tests/following{/other_user}","gists_url":"https://api.github.com/users/web-platform-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/web-platform-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-platform-tests/subscriptions","organizations_url":"https://api.github.com/users/web-platform-tests/orgs","repos_url":"https://api.github.com/users/web-platform-tests/repos","events_url":"https://api.github.com/users/web-platform-tests/events{/privacy}","received_events_url":"https://api.github.com/users/web-platform-tests/received_events","type":"Organization","site_admin":false},"repo":{"id":10910985,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkxMDk4NQ==","name":"wpt-pr-bot","full_name":"web-platform-tests/wpt-pr-bot","owner":{"login":"web-platform-tests","id":37226233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MjI2MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/37226233?v=4","gravatar_id":"","url":"https://api.github.com/users/web-platform-tests","html_url":"https://github.com/web-platform-tests","followers_url":"https://api.github.com/users/web-platform-tests/followers","following_url":"https://api.github.com/users/web-platform-tests/following{/other_user}","gists_url":"https://api.github.com/users/web-platform-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/web-platform-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-platform-tests/subscriptions","organizations_url":"https://api.github.com/users/web-platform-tests/orgs","repos_url":"https://api.github.com/users/web-platform-tests/repos","events_url":"https://api.github.com/users/web-platform-tests/events{/privacy}","received_events_url":"https://api.github.com/users/web-platform-tests/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/web-platform-tests/wpt-pr-bot","description":"Home of the wpt-pr-bot","fork":false,"url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot","forks_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/forks","keys_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/teams","hooks_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/hooks","issue_events_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/events{/number}","events_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/events","assignees_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/assignees{/user}","branches_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/branches{/branch}","tags_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/tags","blobs_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/languages","stargazers_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/stargazers","contributors_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/contributors","subscribers_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/subscribers","subscription_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/subscription","commits_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/contents/{+path}","compare_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/merges","archive_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/downloads","issues_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues{/number}","pulls_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/labels{/name}","releases_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/releases{/id}","deployments_url":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/deployments","created_at":"2013-06-24T14:47:18Z","updated_at":"2018-07-08T06:35:39Z","pushed_at":"2018-07-27T15:55:43Z","git_url":"git://github.com/web-platform-tests/wpt-pr-bot.git","ssh_url":"git@github.com:web-platform-tests/wpt-pr-bot.git","clone_url":"https://github.com/web-platform-tests/wpt-pr-bot.git","svn_url":"https://github.com/web-platform-tests/wpt-pr-bot","homepage":"","size":156,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":8,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36"},"html":{"href":"https://github.com/web-platform-tests/wpt-pr-bot/pull/36"},"issue":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/36"},"comments":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/web-platform-tests/wpt-pr-bot/statuses/e777f742fe1e38c43b28e34bb3d2a4f33bea021e"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jugglinmike","id":677252,"node_id":"MDQ6VXNlcjY3NzI1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/677252?v=4","gravatar_id":"","url":"https://api.github.com/users/jugglinmike","html_url":"https://github.com/jugglinmike","followers_url":"https://api.github.com/users/jugglinmike/followers","following_url":"https://api.github.com/users/jugglinmike/following{/other_user}","gists_url":"https://api.github.com/users/jugglinmike/gists{/gist_id}","starred_url":"https://api.github.com/users/jugglinmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugglinmike/subscriptions","organizations_url":"https://api.github.com/users/jugglinmike/orgs","repos_url":"https://api.github.com/users/jugglinmike/repos","events_url":"https://api.github.com/users/jugglinmike/events{/privacy}","received_events_url":"https://api.github.com/users/jugglinmike/received_events","type":"User","site_admin":false},"comments":1,"review_comments":3,"maintainer_can_modify":false,"commits":8,"additions":867,"deletions":195,"changed_files":36}}
{"actor":{"display_login":"jugglinmike"}}