{"action":"created","comment":{"url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/comments/245104828","pull_request_review_id":189146771,"id":245104828,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTEwNDgyOA==","diff_hunk":"@@ -40,9 +42,48 @@ class SemVerSpecification extends Specification {\n     semVer.newTag('')\n \n     then:\n-    1 * tagFetcher.getTags() >> [\"1.1.1\", \"0.3.4\"]\n+    1 * tagFetcher.getTags(_) >> [\"1.1.1\", \"0.3.4\"]\n     1 * pullRequestEvent.getEvent() >> [labels: [[name: 'major']]]\n     1 * versionIncrement.increment(['major']) >> IncrementTypes.MAJOR\n     1 * newTagGenerator.newTag([\"1.1.1\", \"0.3.4\"], IncrementTypes.MAJOR)\n   }\n+\n+  def \"#newTag with empty increment label and a tag prefix\"() {\n+    given: \"a PR with an increment label and a tag prefix label\"\n+    def pullRequestEvent = Mock(PullRequestEvent)\n+    pullRequestEvent.getEvent() >> [labels: [[name: 'minor'], [name: 'lis']]]\n+\n+    and: \"a new Semver\"\n+    def pipeline = Stub(PipeLineScript)\n+    // only labels prefixed with 'lis-' will be taken into account because of the label in PR\n+    pipeline.sh(_) >> \"cwscms-1.0.4\\nlis-0.3.4\\nlis-0.1.2\"","path":"test/gov/ca/cwds/jenkins/semver/SemVerSpecification.groovy","position":null,"original_position":37,"commit_id":"019d4f7832fa72fb83dfda689e42e61366612c1d","original_commit_id":"e8837036f9d7731783af89e880a5d27c92234f6a","user":{"login":"SergiiRedchuk","id":19473857,"node_id":"MDQ6VXNlcjE5NDczODU3","avatar_url":"https://avatars2.githubusercontent.com/u/19473857?v=4","gravatar_id":"","url":"https://api.github.com/users/SergiiRedchuk","html_url":"https://github.com/SergiiRedchuk","followers_url":"https://api.github.com/users/SergiiRedchuk/followers","following_url":"https://api.github.com/users/SergiiRedchuk/following{/other_user}","gists_url":"https://api.github.com/users/SergiiRedchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/SergiiRedchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergiiRedchuk/subscriptions","organizations_url":"https://api.github.com/users/SergiiRedchuk/orgs","repos_url":"https://api.github.com/users/SergiiRedchuk/repos","events_url":"https://api.github.com/users/SergiiRedchuk/events{/privacy}","received_events_url":"https://api.github.com/users/SergiiRedchuk/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2019-01-03T19:19:48Z","updated_at":"2019-01-03T19:19:48Z","html_url":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21#discussion_r245104828","pull_request_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/comments/245104828"},"html":{"href":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21#discussion_r245104828"},"pull_request":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21"}},"in_reply_to_id":244883716},"pull_request":{"url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21","id":241858505,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxODU4NTA1","html_url":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21","diff_url":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21.diff","patch_url":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21.patch","issue_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/21","number":21,"state":"open","locked":false,"title":"(FIT-354) - updated Jenkins Shared Library to allow for projects with multiple artifacts","user":{"login":"SergiiRedchuk","id":19473857,"node_id":"MDQ6VXNlcjE5NDczODU3","avatar_url":"https://avatars2.githubusercontent.com/u/19473857?v=4","gravatar_id":"","url":"https://api.github.com/users/SergiiRedchuk","html_url":"https://github.com/SergiiRedchuk","followers_url":"https://api.github.com/users/SergiiRedchuk/followers","following_url":"https://api.github.com/users/SergiiRedchuk/following{/other_user}","gists_url":"https://api.github.com/users/SergiiRedchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/SergiiRedchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergiiRedchuk/subscriptions","organizations_url":"https://api.github.com/users/SergiiRedchuk/orgs","repos_url":"https://api.github.com/users/SergiiRedchuk/repos","events_url":"https://api.github.com/users/SergiiRedchuk/events{/privacy}","received_events_url":"https://api.github.com/users/SergiiRedchuk/received_events","type":"User","site_admin":false},"body":"https://osi-cwds.atlassian.net/browse/FIT-354","created_at":"2019-01-02T21:58:39Z","updated_at":"2019-01-03T19:19:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7bdbccfae5a9fe81cb4ed1df80bb678077db0b7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21/commits","review_comments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21/comments","review_comment_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/21/comments","statuses_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/statuses/019d4f7832fa72fb83dfda689e42e61366612c1d","head":{"label":"ca-cwds:FIT-354","ref":"FIT-354","sha":"019d4f7832fa72fb83dfda689e42e61366612c1d","user":{"login":"ca-cwds","id":16274270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Mjc0Mjcw","avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":153693729,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2OTM3Mjk=","name":"jenkins-pipeline-utils","full_name":"ca-cwds/jenkins-pipeline-utils","private":false,"owner":{"login":"ca-cwds","id":16274270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Mjc0Mjcw","avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ca-cwds/jenkins-pipeline-utils","description":"Contains Jenkins Shared Library files","fork":false,"url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils","forks_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/forks","keys_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/teams","hooks_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/events","assignees_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/tags","blobs_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/subscription","commits_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/merges","archive_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/downloads","issues_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/deployments","created_at":"2018-10-18T22:11:23Z","updated_at":"2018-12-21T19:58:27Z","pushed_at":"2019-01-03T19:17:42Z","git_url":"git://github.com/ca-cwds/jenkins-pipeline-utils.git","ssh_url":"git@github.com:ca-cwds/jenkins-pipeline-utils.git","clone_url":"https://github.com/ca-cwds/jenkins-pipeline-utils.git","svn_url":"https://github.com/ca-cwds/jenkins-pipeline-utils","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ca-cwds:master","ref":"master","sha":"e8764516fe3674e8248fb99c1309fc46a7e2141c","user":{"login":"ca-cwds","id":16274270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Mjc0Mjcw","avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":153693729,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2OTM3Mjk=","name":"jenkins-pipeline-utils","full_name":"ca-cwds/jenkins-pipeline-utils","private":false,"owner":{"login":"ca-cwds","id":16274270,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Mjc0Mjcw","avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ca-cwds/jenkins-pipeline-utils","description":"Contains Jenkins Shared Library files","fork":false,"url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils","forks_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/forks","keys_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/teams","hooks_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/events","assignees_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/tags","blobs_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/subscription","commits_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/merges","archive_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/downloads","issues_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/deployments","created_at":"2018-10-18T22:11:23Z","updated_at":"2018-12-21T19:58:27Z","pushed_at":"2019-01-03T19:17:42Z","git_url":"git://github.com/ca-cwds/jenkins-pipeline-utils.git","ssh_url":"git@github.com:ca-cwds/jenkins-pipeline-utils.git","clone_url":"https://github.com/ca-cwds/jenkins-pipeline-utils.git","svn_url":"https://github.com/ca-cwds/jenkins-pipeline-utils","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21"},"html":{"href":"https://github.com/ca-cwds/jenkins-pipeline-utils/pull/21"},"issue":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/21"},"comments":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/ca-cwds/jenkins-pipeline-utils/statuses/019d4f7832fa72fb83dfda689e42e61366612c1d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"SergiiRedchuk"}}