{"action":"created","comment":{"url":"https://api.github.com/repos/gravitational/version/pulls/comments/68334612","id":68334612,"diff_hunk":"@@ -44,12 +44,17 @@ var tagOnly = flag.Bool(\"tag\", false, \"print tag only\")\n \n var release = flag.Bool(\"os-release\", false, \"print version with OS and architecture e.g. v0.0.1-linux-amd64\")\n \n+var dockerTag = flag.Bool(\"docker-tag\", false, \"print version compatible with docker tag requirements\")\n+\n // semverPattern defines a regexp pattern to modify the results of `git describe` to be semver-complaint.\n var semverPattern = regexp.MustCompile(`(.+)-([0-9]{1,})-g([0-9a-f]{14})$`)\n \n // goVersionPattern defines a regexp pattern to parse versions of the `go tool`.\n var goVersionPattern = regexp.MustCompile(`go([1-9])\\.(\\d+)(?:.\\d+)*`)\n \n+// dockerTagAntiPatern matches all chars not accepted by docker tag requirements","path":"cmd/linkflags/main.go","position":12,"original_position":12,"commit_id":"d3981ba8343a01e9b1a8401eebbe28e9234ee202","original_commit_id":"d3981ba8343a01e9b1a8401eebbe28e9234ee202","user":{"login":"a-palchikov","id":965809,"avatar_url":"https://avatars.githubusercontent.com/u/965809?v=3","gravatar_id":"","url":"https://api.github.com/users/a-palchikov","html_url":"https://github.com/a-palchikov","followers_url":"https://api.github.com/users/a-palchikov/followers","following_url":"https://api.github.com/users/a-palchikov/following{/other_user}","gists_url":"https://api.github.com/users/a-palchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/a-palchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-palchikov/subscriptions","organizations_url":"https://api.github.com/users/a-palchikov/orgs","repos_url":"https://api.github.com/users/a-palchikov/repos","events_url":"https://api.github.com/users/a-palchikov/events{/privacy}","received_events_url":"https://api.github.com/users/a-palchikov/received_events","type":"User","site_admin":false},"body":"s/Patern/Pattern","created_at":"2016-06-23T23:45:04Z","updated_at":"2016-06-23T23:45:04Z","html_url":"https://github.com/gravitational/version/pull/4#discussion_r68334612","pull_request_url":"https://api.github.com/repos/gravitational/version/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/gravitational/version/pulls/comments/68334612"},"html":{"href":"https://github.com/gravitational/version/pull/4#discussion_r68334612"},"pull_request":{"href":"https://api.github.com/repos/gravitational/version/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/gravitational/version/pulls/4","id":75043786,"html_url":"https://github.com/gravitational/version/pull/4","diff_url":"https://github.com/gravitational/version/pull/4.diff","patch_url":"https://github.com/gravitational/version/pull/4.patch","issue_url":"https://api.github.com/repos/gravitational/version/issues/4","number":4,"state":"open","locked":false,"title":"add --docker-tag flag","user":{"login":"klizhentas","id":13717,"avatar_url":"https://avatars.githubusercontent.com/u/13717?v=3","gravatar_id":"","url":"https://api.github.com/users/klizhentas","html_url":"https://github.com/klizhentas","followers_url":"https://api.github.com/users/klizhentas/followers","following_url":"https://api.github.com/users/klizhentas/following{/other_user}","gists_url":"https://api.github.com/users/klizhentas/gists{/gist_id}","starred_url":"https://api.github.com/users/klizhentas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klizhentas/subscriptions","organizations_url":"https://api.github.com/users/klizhentas/orgs","repos_url":"https://api.github.com/users/klizhentas/repos","events_url":"https://api.github.com/users/klizhentas/events{/privacy}","received_events_url":"https://api.github.com/users/klizhentas/received_events","type":"User","site_admin":false},"body":"--docker-tag generates version compatible with docker tag\r\nrequirements","created_at":"2016-06-23T23:27:57Z","updated_at":"2016-06-23T23:45:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3382a201712ccbbcacfaa9ac342c5e9c38f30c1","assignee":{"login":"a-palchikov","id":965809,"avatar_url":"https://avatars.githubusercontent.com/u/965809?v=3","gravatar_id":"","url":"https://api.github.com/users/a-palchikov","html_url":"https://github.com/a-palchikov","followers_url":"https://api.github.com/users/a-palchikov/followers","following_url":"https://api.github.com/users/a-palchikov/following{/other_user}","gists_url":"https://api.github.com/users/a-palchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/a-palchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-palchikov/subscriptions","organizations_url":"https://api.github.com/users/a-palchikov/orgs","repos_url":"https://api.github.com/users/a-palchikov/repos","events_url":"https://api.github.com/users/a-palchikov/events{/privacy}","received_events_url":"https://api.github.com/users/a-palchikov/received_events","type":"User","site_admin":false},"assignees":[{"login":"a-palchikov","id":965809,"avatar_url":"https://avatars.githubusercontent.com/u/965809?v=3","gravatar_id":"","url":"https://api.github.com/users/a-palchikov","html_url":"https://github.com/a-palchikov","followers_url":"https://api.github.com/users/a-palchikov/followers","following_url":"https://api.github.com/users/a-palchikov/following{/other_user}","gists_url":"https://api.github.com/users/a-palchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/a-palchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-palchikov/subscriptions","organizations_url":"https://api.github.com/users/a-palchikov/orgs","repos_url":"https://api.github.com/users/a-palchikov/repos","events_url":"https://api.github.com/users/a-palchikov/events{/privacy}","received_events_url":"https://api.github.com/users/a-palchikov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/gravitational/version/pulls/4/commits","review_comments_url":"https://api.github.com/repos/gravitational/version/pulls/4/comments","review_comment_url":"https://api.github.com/repos/gravitational/version/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gravitational/version/issues/4/comments","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/d3981ba8343a01e9b1a8401eebbe28e9234ee202","head":{"label":"gravitational:sasha/tag","ref":"sasha/tag","sha":"d3981ba8343a01e9b1a8401eebbe28e9234ee202","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":48129516,"name":"version","full_name":"gravitational/version","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/version","description":"version is a library that automates the task of adding build version information to any Go package","fork":false,"url":"https://api.github.com/repos/gravitational/version","forks_url":"https://api.github.com/repos/gravitational/version/forks","keys_url":"https://api.github.com/repos/gravitational/version/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/version/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/version/teams","hooks_url":"https://api.github.com/repos/gravitational/version/hooks","issue_events_url":"https://api.github.com/repos/gravitational/version/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/version/events","assignees_url":"https://api.github.com/repos/gravitational/version/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/version/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/version/tags","blobs_url":"https://api.github.com/repos/gravitational/version/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/version/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/version/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/version/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/version/languages","stargazers_url":"https://api.github.com/repos/gravitational/version/stargazers","contributors_url":"https://api.github.com/repos/gravitational/version/contributors","subscribers_url":"https://api.github.com/repos/gravitational/version/subscribers","subscription_url":"https://api.github.com/repos/gravitational/version/subscription","commits_url":"https://api.github.com/repos/gravitational/version/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/version/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/version/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/version/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/version/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/version/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/version/merges","archive_url":"https://api.github.com/repos/gravitational/version/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/version/downloads","issues_url":"https://api.github.com/repos/gravitational/version/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/version/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/version/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/version/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/version/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/version/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/version/deployments","created_at":"2015-12-16T19:07:13Z","updated_at":"2016-05-05T16:08:21Z","pushed_at":"2016-06-23T23:27:57Z","git_url":"git://github.com/gravitational/version.git","ssh_url":"git@github.com:gravitational/version.git","clone_url":"https://github.com/gravitational/version.git","svn_url":"https://github.com/gravitational/version","homepage":null,"size":19,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":6,"default_branch":"master"}},"base":{"label":"gravitational:master","ref":"master","sha":"ffae935cafba0fac6023a96832e48d0fec6417ba","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":48129516,"name":"version","full_name":"gravitational/version","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/version","description":"version is a library that automates the task of adding build version information to any Go package","fork":false,"url":"https://api.github.com/repos/gravitational/version","forks_url":"https://api.github.com/repos/gravitational/version/forks","keys_url":"https://api.github.com/repos/gravitational/version/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/version/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/version/teams","hooks_url":"https://api.github.com/repos/gravitational/version/hooks","issue_events_url":"https://api.github.com/repos/gravitational/version/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/version/events","assignees_url":"https://api.github.com/repos/gravitational/version/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/version/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/version/tags","blobs_url":"https://api.github.com/repos/gravitational/version/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/version/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/version/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/version/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/version/languages","stargazers_url":"https://api.github.com/repos/gravitational/version/stargazers","contributors_url":"https://api.github.com/repos/gravitational/version/contributors","subscribers_url":"https://api.github.com/repos/gravitational/version/subscribers","subscription_url":"https://api.github.com/repos/gravitational/version/subscription","commits_url":"https://api.github.com/repos/gravitational/version/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/version/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/version/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/version/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/version/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/version/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/version/merges","archive_url":"https://api.github.com/repos/gravitational/version/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/version/downloads","issues_url":"https://api.github.com/repos/gravitational/version/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/version/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/version/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/version/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/version/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/version/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/version/deployments","created_at":"2015-12-16T19:07:13Z","updated_at":"2016-05-05T16:08:21Z","pushed_at":"2016-06-23T23:27:57Z","git_url":"git://github.com/gravitational/version.git","ssh_url":"git@github.com:gravitational/version.git","clone_url":"https://github.com/gravitational/version.git","svn_url":"https://github.com/gravitational/version","homepage":null,"size":19,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gravitational/version/pulls/4"},"html":{"href":"https://github.com/gravitational/version/pull/4"},"issue":{"href":"https://api.github.com/repos/gravitational/version/issues/4"},"comments":{"href":"https://api.github.com/repos/gravitational/version/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/gravitational/version/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/gravitational/version/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gravitational/version/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/gravitational/version/statuses/d3981ba8343a01e9b1a8401eebbe28e9234ee202"}}}}
{"actor":{"display_login":"a-palchikov"}}