{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/routes/issues/62","repository_url":"https://api.github.com/repos/octokit/routes","labels_url":"https://api.github.com/repos/octokit/routes/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/octokit/routes/issues/62/comments","events_url":"https://api.github.com/repos/octokit/routes/issues/62/events","html_url":"https://github.com/octokit/routes/issues/62","id":308838067,"number":62,"title":"List pull requests: parameter type \"enum\" should be \"string\"","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars3.githubusercontent.com/u/39992?v=4","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"labels":[{"id":859574631,"url":"https://api.github.com/repos/octokit/routes/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":881811920,"url":"https://api.github.com/repos/octokit/routes/labels/has-failing-test","name":"has-failing-test","color":"111111","default":false}],"state":"closed","locked":false,"assignee":{"login":"gr2m","id":39992,"avatar_url":"https://avatars3.githubusercontent.com/u/39992?v=4","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"assignees":[{"login":"gr2m","id":39992,"avatar_url":"https://avatars3.githubusercontent.com/u/39992?v=4","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-27T06:31:03Z","updated_at":"2018-03-30T08:41:29Z","closed_at":"2018-03-30T08:34:10Z","author_association":"COLLABORATOR","body":"- endpoint scope: Pull Requests\r\n- endpoint name: List pull requests\r\n- route: `GET /repos/:owner/:repo/pulls`\r\n- documentation URL: https://developer.github.com/v3/pulls/#list-pull-requests\r\n\r\n### Current specification\r\n\r\nhttps://github.com/octokit/routes/blob/fe0a25467e167c54628c2072884911a50c93269a/routes/pulls/list-pull-requests.json#L1-L74\r\n\r\n### I expected\r\n\r\n<details>\r\n  <summary>\"enum\" should be \"string\"</summary>\r\n\r\n```json\r\n{\r\n  \"name\": \"List pull requests\",\r\n  \"enabledForApps\": true,\r\n  \"method\": \"GET\",\r\n  \"path\": \"/repos/:owner/:repo/pulls\",\r\n  \"params\": [\r\n    {\r\n      \"name\": \"owner\",\r\n      \"type\": \"string\",\r\n      \"required\": true,\r\n      \"description\": \"\"\r\n    },\r\n    {\r\n      \"name\": \"repo\",\r\n      \"type\": \"string\",\r\n      \"required\": true,\r\n      \"description\": \"\"\r\n    },\r\n    {\r\n      \"name\": \"state\",\r\n      \"type\": \"string\",\r\n      \"enum\": [\r\n        \"open\",\r\n        \"closed\",\r\n        \"all\"\r\n      ],\r\n      \"description\": \"Either `open`, `closed`, or `all` to filter by state.\",\r\n      \"default\": \"open\",\r\n      \"required\": false\r\n    },\r\n    {\r\n      \"name\": \"head\",\r\n      \"type\": \"string\",\r\n      \"description\": \"Filter pulls by head user and branch name in the format of `user:ref-name`. Example: `github:new-script-format`.\",\r\n      \"required\": false\r\n    },\r\n    {\r\n      \"name\": \"base\",\r\n      \"type\": \"string\",\r\n      \"description\": \"Filter pulls by base branch name. Example: `gh-pages`.\",\r\n      \"required\": false\r\n    },\r\n    {\r\n      \"name\": \"sort\",\r\n      \"type\": \"string\",\r\n      \"description\": \"What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).\",\r\n      \"default\": \"created\",\r\n      \"required\": false\r\n    },\r\n    {\r\n      \"name\": \"direction\",\r\n      \"type\": \"string\",\r\n      \"description\": \"The direction of the sort. Can be either `asc` or `desc`.\",\r\n      \"default\": \"`desc` when sort is `created` or sort is not specified, otherwise `asc`\",\r\n      \"required\": false\r\n    },\r\n    {\r\n      \"name\": \"per_page\",\r\n      \"type\": \"number\",\r\n      \"required\": false,\r\n      \"description\": \"Results per page (max 100)\",\r\n      \"default\": 30\r\n    },\r\n    {\r\n      \"name\": \"page\",\r\n      \"type\": \"number\",\r\n      \"required\": false,\r\n      \"description\": \"Page number of the results to fetch.\",\r\n      \"default\": 1\r\n    }\r\n  ],\r\n  \"description\": \"\",\r\n  \"documentationUrl\": \"https://developer.github.com/v3/pulls/#list-pull-requests\"\r\n}\r\n```\r\n</details>\r\n\r\nhas failing test at #73"},"comment":{"url":"https://api.github.com/repos/octokit/routes/issues/comments/377479268","html_url":"https://github.com/octokit/routes/issues/62#issuecomment-377479268","issue_url":"https://api.github.com/repos/octokit/routes/issues/62","id":377479268,"user":{"login":"octokitbot","id":33075676,"avatar_url":"https://avatars2.githubusercontent.com/u/33075676?v=4","gravatar_id":"","url":"https://api.github.com/users/octokitbot","html_url":"https://github.com/octokitbot","followers_url":"https://api.github.com/users/octokitbot/followers","following_url":"https://api.github.com/users/octokitbot/following{/other_user}","gists_url":"https://api.github.com/users/octokitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/octokitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokitbot/subscriptions","organizations_url":"https://api.github.com/users/octokitbot/orgs","repos_url":"https://api.github.com/users/octokitbot/repos","events_url":"https://api.github.com/users/octokitbot/events{/privacy}","received_events_url":"https://api.github.com/users/octokitbot/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T08:41:29Z","updated_at":"2018-03-30T08:41:29Z","author_association":"COLLABORATOR","body":":tada: This issue has been resolved in version 5.0.0 :tada:\n\nThe release is available on:\n- [npm package (@latest dist-tag)](https://www.npmjs.com/package/@octokit/routes)\n- [GitHub release](https://github.com/octokit/routes/releases/tag/v5.0.0)\n\nYour **[semantic-release](https://github.com/semantic-release/semantic-release)** bot :package::rocket:"}}
{"actor":{"display_login":"octokitbot"}}