{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/github-bot/issues/192","repository_url":"https://api.github.com/repos/nodejs/github-bot","labels_url":"https://api.github.com/repos/nodejs/github-bot/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/github-bot/issues/192/comments","events_url":"https://api.github.com/repos/nodejs/github-bot/issues/192/events","html_url":"https://github.com/nodejs/github-bot/issues/192","id":343168655,"node_id":"MDU6SXNzdWUzNDMxNjg2NTU=","number":192,"title":"Bug when adding labels to pull request","user":{"login":"maclover7","id":3020626,"node_id":"MDQ6VXNlcjMwMjA2MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3020626?v=4","gravatar_id":"","url":"https://api.github.com/users/maclover7","html_url":"https://github.com/maclover7","followers_url":"https://api.github.com/users/maclover7/followers","following_url":"https://api.github.com/users/maclover7/following{/other_user}","gists_url":"https://api.github.com/users/maclover7/gists{/gist_id}","starred_url":"https://api.github.com/users/maclover7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclover7/subscriptions","organizations_url":"https://api.github.com/users/maclover7/orgs","repos_url":"https://api.github.com/users/maclover7/repos","events_url":"https://api.github.com/users/maclover7/events{/privacy}","received_events_url":"https://api.github.com/users/maclover7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T16:20:39Z","updated_at":"2018-07-20T21:42:04Z","closed_at":null,"author_association":"MEMBER","body":"Noting it here so this isn't forgotten about (currently broken on the production server). I believe this is another issue caused by the recent `github` version bump (something something need better test coverage). At least the labels resolved correctly?\r\n\r\n```\r\n11:40:52.491 DEBUG bot: Resolved labels: doc,vm (req_id=47558d90-8c33-11e8-8f2d-6778d538d753, pr=nodejs/node/#21911, action=pull_request.opened)\r\n11:40:52.492 DEBUG bot: Trying to add labels: doc,vm (req_id=47558d90-8c33-11e8-8f2d-6778d538d753, pr=nodejs/node/#21911, action=pull_request.opened)\r\n11:40:52.492 ERROR bot: Error while adding labels (req_id=47558d90-8c33-11e8-8f2d-6778d538d753, pr=nodejs/node/#21911, action=pull_request.opened)\r\n    err: {\r\n      \"code\": \"400\",\r\n      \"status\": \"Bad Request\",\r\n      \"message\": \"Empty value for parameter 'labels': undefined\"\r\n    }\r\n```\r\n\r\n cc @Trott "},"comment":{"url":"https://api.github.com/repos/nodejs/github-bot/issues/comments/406734218","html_url":"https://github.com/nodejs/github-bot/issues/192#issuecomment-406734218","issue_url":"https://api.github.com/repos/nodejs/github-bot/issues/192","id":406734218,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjczNDIxOA==","user":{"login":"Trott","id":718899,"node_id":"MDQ6VXNlcjcxODg5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/718899?v=4","gravatar_id":"","url":"https://api.github.com/users/Trott","html_url":"https://github.com/Trott","followers_url":"https://api.github.com/users/Trott/followers","following_url":"https://api.github.com/users/Trott/following{/other_user}","gists_url":"https://api.github.com/users/Trott/gists{/gist_id}","starred_url":"https://api.github.com/users/Trott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trott/subscriptions","organizations_url":"https://api.github.com/users/Trott/orgs","repos_url":"https://api.github.com/users/Trott/repos","events_url":"https://api.github.com/users/Trott/events{/privacy}","received_events_url":"https://api.github.com/users/Trott/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T21:42:04Z","updated_at":"2018-07-20T21:42:04Z","author_association":"MEMBER","body":"@maclover7 I *think* this change will fix it. Any chance you can easily test?\r\n\r\n```diff\r\ndiff --git a/lib/node-repo.js b/lib/node-repo.js\r\nindex 7d714ec..a5e362d 100644\r\n--- a/lib/node-repo.js\r\n+++ b/lib/node-repo.js\r\n@@ -65,7 +65,7 @@ function updatePrWithLabels (options, labels) {\r\n     owner: options.owner,\r\n     repo: options.repo,\r\n     number: options.prId,\r\n-    body: labels\r\n+    label: labels\r\n   }, (err) => {\r\n     if (err) {\r\n       return options.logger.error(err, 'Error while adding labels')\r\n```"}}
{"actor":{"display_login":"Trott"}}