{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/arcade/pulls/comments/186546841","pull_request_review_id":118147569,"id":186546841,"diff_hunk":"@@ -0,0 +1,62 @@\n+# Microsoft.DotNet.Build.Tasks.Versioning\n+===============================\n+\n+Task package which handles generation of version strings. \n+The format that we use is described here: Documentation/Versioning.md\n+\n+## Sample Usage\n+\n+Property        | Type        | Description\n+----------------|-------------|--------------------------------------------------------------------------------\n+Major           | string      | Major version number.\n+Minor           | string      | Minor version number.\n+Patch           | string      | Patch number.\n+Prerelease      | string      | Prerelease label. E.g. \"beta\", \"preview\", etc.\n+ShortDate       | string      | Date to be used in the version string.\n+Builds          | string      | Number of builds for current date.\n+ShortSha        | string      | SHA of the repo last commit.\n+FormatName      | string      | The name of the format string you want to use. Defaults are \"dev\", \"stable\" and \"final\".\n+FormatStrings   | ItemGroup   | Your custom format strings.\n+ExitCode        | integer     | **Output** Indicate whether an error happened (1) or not (0).\n+VersionString   | string      | **Output** Version string produced.\n+\n+```xml\n+<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\n+\n+  <PropertyGroup>\n+    <Major>1</Major>\n+    <Minor>2</Minor>\n+    <Patch>3</Patch>\n+    <Prerelease>beta1</Prerelease>\n+    <ShortDate>3111985</ShortDate>\n+    <Builds>5</Builds>\n+    <ShortSha>asd23fer</ShortSha>\n+    \n+    <SomethingCustom>Custom format:</SomethingCustom>\n+\n+    <FormatName>final</FormatName>\n+  </PropertyGroup>\n+  \n+  <ItemGroup>\n+    <FormatStrings Include=\"dev\">\n+      <Format>$(SomethingCustom) $(major).$(minor).$(patch)-$(prerelease).$(shortdate).$(builds)+$(shortsha)</Format>\n+    </FormatStrings>\n+\n+    <FormatStrings Include=\"stable\">\n+      <Format>$(SomethingCustom) $(major).$(minor).$(patch)-$(prerelease)</Format>\n+    </FormatStrings>\n+\n+    <FormatStrings Include=\"final\">\n+      <Format>$(SomethingCustom) $(major).$(minor).$(patch)</Format>\n+    </FormatStrings>\n+  </ItemGroup>\n+  \n+  <Target Name=\"TestIt\" DependsOnTargets=\"Versioning\">","path":"src/Microsoft.DotNet.Build.Tasks.Versioning/README.md","position":54,"original_position":54,"commit_id":"e723275e4b73aeb1351bf24689c6c1923858ca80","original_commit_id":"e723275e4b73aeb1351bf24689c6c1923858ca80","user":{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false},"body":"It was intended just as an example in the documentation. However, I might in fact use it to implement some tests for the versioning task..; I am open to sugestions..","created_at":"2018-05-07T20:53:59Z","updated_at":"2018-05-07T20:54:00Z","html_url":"https://github.com/dotnet/arcade/pull/137#discussion_r186546841","pull_request_url":"https://api.github.com/repos/dotnet/arcade/pulls/137","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/comments/186546841"},"html":{"href":"https://github.com/dotnet/arcade/pull/137#discussion_r186546841"},"pull_request":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/137"}},"in_reply_to_id":186530183},"pull_request":{"url":"https://api.github.com/repos/dotnet/arcade/pulls/137","id":184462211,"html_url":"https://github.com/dotnet/arcade/pull/137","diff_url":"https://github.com/dotnet/arcade/pull/137.diff","patch_url":"https://github.com/dotnet/arcade/pull/137.patch","issue_url":"https://api.github.com/repos/dotnet/arcade/issues/137","number":137,"state":"open","locked":false,"title":"MSBuild Task for Semantic Versioning & Tests","user":{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false},"body":"Draft for implementation of the plan described here: https://github.com/dotnet/arcade/issues/134\r\n\r\nSuggestions are welcome.","created_at":"2018-04-26T20:58:26Z","updated_at":"2018-05-07T20:54:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16363656b17f2238f648fb4bf362f42d22c61744","assignee":{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false},"assignees":[{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"markwilkie","id":6334885,"avatar_url":"https://avatars2.githubusercontent.com/u/6334885?v=4","gravatar_id":"","url":"https://api.github.com/users/markwilkie","html_url":"https://github.com/markwilkie","followers_url":"https://api.github.com/users/markwilkie/followers","following_url":"https://api.github.com/users/markwilkie/following{/other_user}","gists_url":"https://api.github.com/users/markwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/markwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markwilkie/subscriptions","organizations_url":"https://api.github.com/users/markwilkie/orgs","repos_url":"https://api.github.com/users/markwilkie/repos","events_url":"https://api.github.com/users/markwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/markwilkie/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/arcade/pulls/137/commits","review_comments_url":"https://api.github.com/repos/dotnet/arcade/pulls/137/comments","review_comment_url":"https://api.github.com/repos/dotnet/arcade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/arcade/issues/137/comments","statuses_url":"https://api.github.com/repos/dotnet/arcade/statuses/e723275e4b73aeb1351bf24689c6c1923858ca80","head":{"label":"JohnTortugo:TaskSemVersioning","ref":"TaskSemVersioning","sha":"e723275e4b73aeb1351bf24689c6c1923858ca80","user":{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false},"repo":{"id":128424206,"name":"arcade","full_name":"JohnTortugo/arcade","owner":{"login":"JohnTortugo","id":2249648,"avatar_url":"https://avatars1.githubusercontent.com/u/2249648?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnTortugo","html_url":"https://github.com/JohnTortugo","followers_url":"https://api.github.com/users/JohnTortugo/followers","following_url":"https://api.github.com/users/JohnTortugo/following{/other_user}","gists_url":"https://api.github.com/users/JohnTortugo/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnTortugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnTortugo/subscriptions","organizations_url":"https://api.github.com/users/JohnTortugo/orgs","repos_url":"https://api.github.com/users/JohnTortugo/repos","events_url":"https://api.github.com/users/JohnTortugo/events{/privacy}","received_events_url":"https://api.github.com/users/JohnTortugo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JohnTortugo/arcade","description":"Tools that provide common build infrastructure for multiple .NET Foundation projects.","fork":true,"url":"https://api.github.com/repos/JohnTortugo/arcade","forks_url":"https://api.github.com/repos/JohnTortugo/arcade/forks","keys_url":"https://api.github.com/repos/JohnTortugo/arcade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JohnTortugo/arcade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JohnTortugo/arcade/teams","hooks_url":"https://api.github.com/repos/JohnTortugo/arcade/hooks","issue_events_url":"https://api.github.com/repos/JohnTortugo/arcade/issues/events{/number}","events_url":"https://api.github.com/repos/JohnTortugo/arcade/events","assignees_url":"https://api.github.com/repos/JohnTortugo/arcade/assignees{/user}","branches_url":"https://api.github.com/repos/JohnTortugo/arcade/branches{/branch}","tags_url":"https://api.github.com/repos/JohnTortugo/arcade/tags","blobs_url":"https://api.github.com/repos/JohnTortugo/arcade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JohnTortugo/arcade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JohnTortugo/arcade/git/refs{/sha}","trees_url":"https://api.github.com/repos/JohnTortugo/arcade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JohnTortugo/arcade/statuses/{sha}","languages_url":"https://api.github.com/repos/JohnTortugo/arcade/languages","stargazers_url":"https://api.github.com/repos/JohnTortugo/arcade/stargazers","contributors_url":"https://api.github.com/repos/JohnTortugo/arcade/contributors","subscribers_url":"https://api.github.com/repos/JohnTortugo/arcade/subscribers","subscription_url":"https://api.github.com/repos/JohnTortugo/arcade/subscription","commits_url":"https://api.github.com/repos/JohnTortugo/arcade/commits{/sha}","git_commits_url":"https://api.github.com/repos/JohnTortugo/arcade/git/commits{/sha}","comments_url":"https://api.github.com/repos/JohnTortugo/arcade/comments{/number}","issue_comment_url":"https://api.github.com/repos/JohnTortugo/arcade/issues/comments{/number}","contents_url":"https://api.github.com/repos/JohnTortugo/arcade/contents/{+path}","compare_url":"https://api.github.com/repos/JohnTortugo/arcade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JohnTortugo/arcade/merges","archive_url":"https://api.github.com/repos/JohnTortugo/arcade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JohnTortugo/arcade/downloads","issues_url":"https://api.github.com/repos/JohnTortugo/arcade/issues{/number}","pulls_url":"https://api.github.com/repos/JohnTortugo/arcade/pulls{/number}","milestones_url":"https://api.github.com/repos/JohnTortugo/arcade/milestones{/number}","notifications_url":"https://api.github.com/repos/JohnTortugo/arcade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JohnTortugo/arcade/labels{/name}","releases_url":"https://api.github.com/repos/JohnTortugo/arcade/releases{/id}","deployments_url":"https://api.github.com/repos/JohnTortugo/arcade/deployments","created_at":"2018-04-06T17:19:32Z","updated_at":"2018-04-25T23:59:09Z","pushed_at":"2018-05-04T00:34:54Z","git_url":"git://github.com/JohnTortugo/arcade.git","ssh_url":"git@github.com:JohnTortugo/arcade.git","clone_url":"https://github.com/JohnTortugo/arcade.git","svn_url":"https://github.com/JohnTortugo/arcade","homepage":"","size":273,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"9de9e791ec276dd120d975d4fa6efde4ea2cf315","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":121444325,"name":"arcade","full_name":"dotnet/arcade","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/arcade","description":"Tools that provide common build infrastructure for multiple .NET Foundation projects.","fork":false,"url":"https://api.github.com/repos/dotnet/arcade","forks_url":"https://api.github.com/repos/dotnet/arcade/forks","keys_url":"https://api.github.com/repos/dotnet/arcade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/arcade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/arcade/teams","hooks_url":"https://api.github.com/repos/dotnet/arcade/hooks","issue_events_url":"https://api.github.com/repos/dotnet/arcade/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/arcade/events","assignees_url":"https://api.github.com/repos/dotnet/arcade/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/arcade/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/arcade/tags","blobs_url":"https://api.github.com/repos/dotnet/arcade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/arcade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/arcade/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/arcade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/arcade/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/arcade/languages","stargazers_url":"https://api.github.com/repos/dotnet/arcade/stargazers","contributors_url":"https://api.github.com/repos/dotnet/arcade/contributors","subscribers_url":"https://api.github.com/repos/dotnet/arcade/subscribers","subscription_url":"https://api.github.com/repos/dotnet/arcade/subscription","commits_url":"https://api.github.com/repos/dotnet/arcade/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/arcade/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/arcade/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/arcade/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/arcade/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/arcade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/arcade/merges","archive_url":"https://api.github.com/repos/dotnet/arcade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/arcade/downloads","issues_url":"https://api.github.com/repos/dotnet/arcade/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/arcade/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/arcade/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/arcade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/arcade/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/arcade/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/arcade/deployments","created_at":"2018-02-13T22:29:54Z","updated_at":"2018-05-02T15:14:38Z","pushed_at":"2018-05-04T18:14:07Z","git_url":"git://github.com/dotnet/arcade.git","ssh_url":"git@github.com:dotnet/arcade.git","clone_url":"https://github.com/dotnet/arcade.git","svn_url":"https://github.com/dotnet/arcade","homepage":"","size":272,"stargazers_count":5,"watchers_count":5,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":78,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":78,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/137"},"html":{"href":"https://github.com/dotnet/arcade/pull/137"},"issue":{"href":"https://api.github.com/repos/dotnet/arcade/issues/137"},"comments":{"href":"https://api.github.com/repos/dotnet/arcade/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/arcade/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/arcade/statuses/e723275e4b73aeb1351bf24689c6c1923858ca80"}},"author_association":"NONE"}}
{"actor":{"display_login":"JohnTortugo"}}