{"action":"created","issue":{"url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/32","repository_url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin","labels_url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/32/comments","events_url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/32/events","html_url":"https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/32","id":179300693,"number":32,"title":"Remove target remote name from branch name in safe manner","user":{"login":"djaara","id":823690,"avatar_url":"https://avatars.githubusercontent.com/u/823690?v=3","gravatar_id":"","url":"https://api.github.com/users/djaara","html_url":"https://github.com/djaara","followers_url":"https://api.github.com/users/djaara/followers","following_url":"https://api.github.com/users/djaara/following{/other_user}","gists_url":"https://api.github.com/users/djaara/gists{/gist_id}","starred_url":"https://api.github.com/users/djaara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djaara/subscriptions","organizations_url":"https://api.github.com/users/djaara/orgs","repos_url":"https://api.github.com/users/djaara/repos","events_url":"https://api.github.com/users/djaara/events{/privacy}","received_events_url":"https://api.github.com/users/djaara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-26T18:19:16Z","updated_at":"2016-11-14T17:38:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/pulls/32","html_url":"https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/32","diff_url":"https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/32.diff","patch_url":"https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/32.patch"},"body":"New code walks through all configured remote repositories\nand and checks whether branch name starts with repository\nname + /; first repository name found in branch name is\nremoved and rest is returned back.\n\nOriginal code returned was created with intention to remove\nname of source repository - for example \"origin\" or \"gerrit\".\nIt used naive approach that repository name is always propagated\nto Artifactory plugin as part of branch name. For branch\nnames without source repository names it returned empty string.\nThus it whole final part of release process failed on\ncommitting and pushing changes into git as it made all changes\non top of branch ''.\n\nAlso for builds of branches without source repository name, but\nwith slash in name - for example \"features/feature1\" it broke\nbranch name, as suddenly working branch was only \"feature1\".\n\nThis also fixes compatibility with BitBucket Branch Source plugin\nas this plugin returns branch name without repository name.\n"},"comment":{"url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/comments/260404606","html_url":"https://github.com/JFrogDev/jenkins-artifactory-plugin/pull/32#issuecomment-260404606","issue_url":"https://api.github.com/repos/JFrogDev/jenkins-artifactory-plugin/issues/32","id":260404606,"user":{"login":"eyalbe4","id":7830056,"avatar_url":"https://avatars.githubusercontent.com/u/7830056?v=3","gravatar_id":"","url":"https://api.github.com/users/eyalbe4","html_url":"https://github.com/eyalbe4","followers_url":"https://api.github.com/users/eyalbe4/followers","following_url":"https://api.github.com/users/eyalbe4/following{/other_user}","gists_url":"https://api.github.com/users/eyalbe4/gists{/gist_id}","starred_url":"https://api.github.com/users/eyalbe4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyalbe4/subscriptions","organizations_url":"https://api.github.com/users/eyalbe4/orgs","repos_url":"https://api.github.com/users/eyalbe4/repos","events_url":"https://api.github.com/users/eyalbe4/events{/privacy}","received_events_url":"https://api.github.com/users/eyalbe4/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T17:38:21Z","updated_at":"2016-11-14T17:38:21Z","body":"Opened [HAP-842](https://www.jfrog.com/jira/browse/HAP-842) to track this fix."}}
{"actor":{"display_login":"eyalbe4"}}