{"action":"opened","number":23201,"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/23201","id":179893062,"html_url":"https://github.com/Microsoft/TypeScript/pull/23201","diff_url":"https://github.com/Microsoft/TypeScript/pull/23201.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/23201.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23201","number":23201,"state":"open","locked":false,"title":"declare ts.versionMajorMinor as string","user":{"login":"ajafff","id":11968040,"avatar_url":"https://avatars0.githubusercontent.com/u/11968040?v=4","gravatar_id":"","url":"https://api.github.com/users/ajafff","html_url":"https://github.com/ajafff","followers_url":"https://api.github.com/users/ajafff/followers","following_url":"https://api.github.com/users/ajafff/following{/other_user}","gists_url":"https://api.github.com/users/ajafff/gists{/gist_id}","starred_url":"https://api.github.com/users/ajafff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajafff/subscriptions","organizations_url":"https://api.github.com/users/ajafff/orgs","repos_url":"https://api.github.com/users/ajafff/repos","events_url":"https://api.github.com/users/ajafff/events{/privacy}","received_events_url":"https://api.github.com/users/ajafff/received_events","type":"User","site_admin":false},"body":"Allows my script to compare `ts.versionMajorMinor` to an older or newer version:\r\n\r\n```ts\r\n// this comparison currently fails because `versionMajorMinor` has a literal type\r\nif (ts.versionMajorMinor === '2.7') {\r\n    // do something special\r\n}\r\n```","created_at":"2018-04-06T09:12:09Z","updated_at":"2018-04-06T09:12:09Z","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/Microsoft/TypeScript/pulls/23201/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/23201/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/23201/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/87af639f3892f5cfb6d964c7a77c230ec7200e02","head":{"label":"ajafff:version-string","ref":"version-string","sha":"87af639f3892f5cfb6d964c7a77c230ec7200e02","user":{"login":"ajafff","id":11968040,"avatar_url":"https://avatars0.githubusercontent.com/u/11968040?v=4","gravatar_id":"","url":"https://api.github.com/users/ajafff","html_url":"https://github.com/ajafff","followers_url":"https://api.github.com/users/ajafff/followers","following_url":"https://api.github.com/users/ajafff/following{/other_user}","gists_url":"https://api.github.com/users/ajafff/gists{/gist_id}","starred_url":"https://api.github.com/users/ajafff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajafff/subscriptions","organizations_url":"https://api.github.com/users/ajafff/orgs","repos_url":"https://api.github.com/users/ajafff/repos","events_url":"https://api.github.com/users/ajafff/events{/privacy}","received_events_url":"https://api.github.com/users/ajafff/received_events","type":"User","site_admin":false},"repo":{"id":77798035,"name":"TypeScript","full_name":"ajafff/TypeScript","owner":{"login":"ajafff","id":11968040,"avatar_url":"https://avatars0.githubusercontent.com/u/11968040?v=4","gravatar_id":"","url":"https://api.github.com/users/ajafff","html_url":"https://github.com/ajafff","followers_url":"https://api.github.com/users/ajafff/followers","following_url":"https://api.github.com/users/ajafff/following{/other_user}","gists_url":"https://api.github.com/users/ajafff/gists{/gist_id}","starred_url":"https://api.github.com/users/ajafff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajafff/subscriptions","organizations_url":"https://api.github.com/users/ajafff/orgs","repos_url":"https://api.github.com/users/ajafff/repos","events_url":"https://api.github.com/users/ajafff/events{/privacy}","received_events_url":"https://api.github.com/users/ajafff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajafff/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":true,"url":"https://api.github.com/repos/ajafff/TypeScript","forks_url":"https://api.github.com/repos/ajafff/TypeScript/forks","keys_url":"https://api.github.com/repos/ajafff/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajafff/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajafff/TypeScript/teams","hooks_url":"https://api.github.com/repos/ajafff/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/ajafff/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/ajafff/TypeScript/events","assignees_url":"https://api.github.com/repos/ajafff/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/ajafff/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/ajafff/TypeScript/tags","blobs_url":"https://api.github.com/repos/ajafff/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajafff/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajafff/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajafff/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajafff/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/ajafff/TypeScript/languages","stargazers_url":"https://api.github.com/repos/ajafff/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/ajafff/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/ajafff/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/ajafff/TypeScript/subscription","commits_url":"https://api.github.com/repos/ajafff/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajafff/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajafff/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajafff/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajafff/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/ajafff/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajafff/TypeScript/merges","archive_url":"https://api.github.com/repos/ajafff/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajafff/TypeScript/downloads","issues_url":"https://api.github.com/repos/ajafff/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/ajafff/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/ajafff/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/ajafff/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajafff/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/ajafff/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/ajafff/TypeScript/deployments","created_at":"2017-01-01T21:48:04Z","updated_at":"2018-04-06T09:04:07Z","pushed_at":"2018-04-06T09:11:37Z","git_url":"git://github.com/ajafff/TypeScript.git","ssh_url":"git@github.com:ajafff/TypeScript.git","clone_url":"https://github.com/ajafff/TypeScript.git","svn_url":"https://github.com/ajafff/TypeScript","homepage":"http://www.typescriptlang.org","size":521118,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"2167b244414a83ccec18edc6d88434cf0ace7475","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/TypeScript/deployments","created_at":"2014-06-17T15:28:39Z","updated_at":"2018-04-06T09:11:05Z","pushed_at":"2018-04-06T00:33:22Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":622037,"stargazers_count":32727,"watchers_count":32727,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4761,"mirror_url":null,"archived":false,"open_issues_count":2693,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":4761,"open_issues":2693,"watchers":32727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/23201"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/23201"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/23201"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/23201/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/23201/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/23201/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/87af639f3892f5cfb6d964c7a77c230ec7200e02"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":7,"deletions":7,"changed_files":2}}
{"actor":{"display_login":"ajafff"}}