{"action":"opened","number":8812,"pull_request":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812","id":29530934,"html_url":"https://github.com/gitlabhq/gitlabhq/pull/8812","diff_url":"https://github.com/gitlabhq/gitlabhq/pull/8812.diff","patch_url":"https://github.com/gitlabhq/gitlabhq/pull/8812.patch","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8812","number":8812,"state":"open","locked":false,"title":"Fix for TeamCity buildQueue REST API build/@branchName.","user":{"login":"opichals","id":140211,"avatar_url":"https://avatars.githubusercontent.com/u/140211?v=3","gravatar_id":"","url":"https://api.github.com/users/opichals","html_url":"https://github.com/opichals","followers_url":"https://api.github.com/users/opichals/followers","following_url":"https://api.github.com/users/opichals/following{/other_user}","gists_url":"https://api.github.com/users/opichals/gists{/gist_id}","starred_url":"https://api.github.com/users/opichals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opichals/subscriptions","organizations_url":"https://api.github.com/users/opichals/orgs","repos_url":"https://api.github.com/users/opichals/repos","events_url":"https://api.github.com/users/opichals/events{/privacy}","received_events_url":"https://api.github.com/users/opichals/received_events","type":"User","site_admin":false},"body":"Strips the refs/*/ if any to get just the branchName out of a :ref\r\ne.g.: `refs/heads/feature/newProfile` -> `feature/newProfile`\r\n\r\nThe TeamCity buildQueue POST data require the branchName attribute\r\nto contain just the branch name (just xyzbranch and not the full\r\nref in the refs/heads/xyzbranch). With the refs/heads/xyzbranch the\r\nbuild is triggered and looks like it is working however it always\r\nompiles the default branch (or master).","created_at":"2015-02-18T14:52:39Z","updated_at":"2015-02-18T14:52:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bd5e55becd14c4403358186b3585978739c2f93","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812/commits","review_comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812/comments","review_comment_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8812/comments","statuses_url":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/7ff854edb41b7010ffde8e2bd289c72eb34b0751","head":{"label":"opichals:teamcity_branchName_not_to_be_whole_ref","ref":"teamcity_branchName_not_to_be_whole_ref","sha":"7ff854edb41b7010ffde8e2bd289c72eb34b0751","user":{"login":"opichals","id":140211,"avatar_url":"https://avatars.githubusercontent.com/u/140211?v=3","gravatar_id":"","url":"https://api.github.com/users/opichals","html_url":"https://github.com/opichals","followers_url":"https://api.github.com/users/opichals/followers","following_url":"https://api.github.com/users/opichals/following{/other_user}","gists_url":"https://api.github.com/users/opichals/gists{/gist_id}","starred_url":"https://api.github.com/users/opichals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opichals/subscriptions","organizations_url":"https://api.github.com/users/opichals/orgs","repos_url":"https://api.github.com/users/opichals/repos","events_url":"https://api.github.com/users/opichals/events{/privacy}","received_events_url":"https://api.github.com/users/opichals/received_events","type":"User","site_admin":false},"repo":{"id":30969696,"name":"gitlabhq","full_name":"opichals/gitlabhq","owner":{"login":"opichals","id":140211,"avatar_url":"https://avatars.githubusercontent.com/u/140211?v=3","gravatar_id":"","url":"https://api.github.com/users/opichals","html_url":"https://github.com/opichals","followers_url":"https://api.github.com/users/opichals/followers","following_url":"https://api.github.com/users/opichals/following{/other_user}","gists_url":"https://api.github.com/users/opichals/gists{/gist_id}","starred_url":"https://api.github.com/users/opichals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opichals/subscriptions","organizations_url":"https://api.github.com/users/opichals/orgs","repos_url":"https://api.github.com/users/opichals/repos","events_url":"https://api.github.com/users/opichals/events{/privacy}","received_events_url":"https://api.github.com/users/opichals/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/opichals/gitlabhq","description":"Open source software to collaborate on code","fork":true,"url":"https://api.github.com/repos/opichals/gitlabhq","forks_url":"https://api.github.com/repos/opichals/gitlabhq/forks","keys_url":"https://api.github.com/repos/opichals/gitlabhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opichals/gitlabhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opichals/gitlabhq/teams","hooks_url":"https://api.github.com/repos/opichals/gitlabhq/hooks","issue_events_url":"https://api.github.com/repos/opichals/gitlabhq/issues/events{/number}","events_url":"https://api.github.com/repos/opichals/gitlabhq/events","assignees_url":"https://api.github.com/repos/opichals/gitlabhq/assignees{/user}","branches_url":"https://api.github.com/repos/opichals/gitlabhq/branches{/branch}","tags_url":"https://api.github.com/repos/opichals/gitlabhq/tags","blobs_url":"https://api.github.com/repos/opichals/gitlabhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opichals/gitlabhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opichals/gitlabhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/opichals/gitlabhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opichals/gitlabhq/statuses/{sha}","languages_url":"https://api.github.com/repos/opichals/gitlabhq/languages","stargazers_url":"https://api.github.com/repos/opichals/gitlabhq/stargazers","contributors_url":"https://api.github.com/repos/opichals/gitlabhq/contributors","subscribers_url":"https://api.github.com/repos/opichals/gitlabhq/subscribers","subscription_url":"https://api.github.com/repos/opichals/gitlabhq/subscription","commits_url":"https://api.github.com/repos/opichals/gitlabhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/opichals/gitlabhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/opichals/gitlabhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/opichals/gitlabhq/issues/comments/{number}","contents_url":"https://api.github.com/repos/opichals/gitlabhq/contents/{+path}","compare_url":"https://api.github.com/repos/opichals/gitlabhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opichals/gitlabhq/merges","archive_url":"https://api.github.com/repos/opichals/gitlabhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opichals/gitlabhq/downloads","issues_url":"https://api.github.com/repos/opichals/gitlabhq/issues{/number}","pulls_url":"https://api.github.com/repos/opichals/gitlabhq/pulls{/number}","milestones_url":"https://api.github.com/repos/opichals/gitlabhq/milestones{/number}","notifications_url":"https://api.github.com/repos/opichals/gitlabhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opichals/gitlabhq/labels{/name}","releases_url":"https://api.github.com/repos/opichals/gitlabhq/releases{/id}","created_at":"2015-02-18T14:50:02Z","updated_at":"2015-02-18T14:50:10Z","pushed_at":"2015-02-18T14:51:28Z","git_url":"git://github.com/opichals/gitlabhq.git","ssh_url":"git@github.com:opichals/gitlabhq.git","clone_url":"https://github.com/opichals/gitlabhq.git","svn_url":"https://github.com/opichals/gitlabhq","homepage":"https://about.gitlab.com/","size":148134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gitlabhq:master","ref":"master","sha":"0b8e41aae2d6d64d18d8034e863e72cc832d0b83","user":{"login":"gitlabhq","id":1086321,"avatar_url":"https://avatars.githubusercontent.com/u/1086321?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlabhq","html_url":"https://github.com/gitlabhq","followers_url":"https://api.github.com/users/gitlabhq/followers","following_url":"https://api.github.com/users/gitlabhq/following{/other_user}","gists_url":"https://api.github.com/users/gitlabhq/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlabhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlabhq/subscriptions","organizations_url":"https://api.github.com/users/gitlabhq/orgs","repos_url":"https://api.github.com/users/gitlabhq/repos","events_url":"https://api.github.com/users/gitlabhq/events{/privacy}","received_events_url":"https://api.github.com/users/gitlabhq/received_events","type":"Organization","site_admin":false},"repo":{"id":2500088,"name":"gitlabhq","full_name":"gitlabhq/gitlabhq","owner":{"login":"gitlabhq","id":1086321,"avatar_url":"https://avatars.githubusercontent.com/u/1086321?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlabhq","html_url":"https://github.com/gitlabhq","followers_url":"https://api.github.com/users/gitlabhq/followers","following_url":"https://api.github.com/users/gitlabhq/following{/other_user}","gists_url":"https://api.github.com/users/gitlabhq/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlabhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlabhq/subscriptions","organizations_url":"https://api.github.com/users/gitlabhq/orgs","repos_url":"https://api.github.com/users/gitlabhq/repos","events_url":"https://api.github.com/users/gitlabhq/events{/privacy}","received_events_url":"https://api.github.com/users/gitlabhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlabhq/gitlabhq","description":"Open source software to collaborate on code","fork":false,"url":"https://api.github.com/repos/gitlabhq/gitlabhq","forks_url":"https://api.github.com/repos/gitlabhq/gitlabhq/forks","keys_url":"https://api.github.com/repos/gitlabhq/gitlabhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlabhq/gitlabhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlabhq/gitlabhq/teams","hooks_url":"https://api.github.com/repos/gitlabhq/gitlabhq/hooks","issue_events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/events{/number}","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/events","assignees_url":"https://api.github.com/repos/gitlabhq/gitlabhq/assignees{/user}","branches_url":"https://api.github.com/repos/gitlabhq/gitlabhq/branches{/branch}","tags_url":"https://api.github.com/repos/gitlabhq/gitlabhq/tags","blobs_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlabhq/gitlabhq/languages","stargazers_url":"https://api.github.com/repos/gitlabhq/gitlabhq/stargazers","contributors_url":"https://api.github.com/repos/gitlabhq/gitlabhq/contributors","subscribers_url":"https://api.github.com/repos/gitlabhq/gitlabhq/subscribers","subscription_url":"https://api.github.com/repos/gitlabhq/gitlabhq/subscription","commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlabhq/gitlabhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/{number}","contents_url":"https://api.github.com/repos/gitlabhq/gitlabhq/contents/{+path}","compare_url":"https://api.github.com/repos/gitlabhq/gitlabhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlabhq/gitlabhq/merges","archive_url":"https://api.github.com/repos/gitlabhq/gitlabhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlabhq/gitlabhq/downloads","issues_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues{/number}","pulls_url":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlabhq/gitlabhq/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlabhq/gitlabhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/labels{/name}","releases_url":"https://api.github.com/repos/gitlabhq/gitlabhq/releases{/id}","created_at":"2011-10-02T16:25:27Z","updated_at":"2015-02-18T14:26:55Z","pushed_at":"2015-02-18T08:24:25Z","git_url":"git://github.com/gitlabhq/gitlabhq.git","ssh_url":"git@github.com:gitlabhq/gitlabhq.git","clone_url":"https://github.com/gitlabhq/gitlabhq.git","svn_url":"https://github.com/gitlabhq/gitlabhq","homepage":"https://about.gitlab.com/","size":148134,"stargazers_count":14910,"watchers_count":14910,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3908,"mirror_url":null,"open_issues_count":749,"forks":3908,"open_issues":749,"watchers":14910,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812"},"html":{"href":"https://github.com/gitlabhq/gitlabhq/pull/8812"},"issue":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8812"},"comments":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8812/comments"},"review_comments":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812/comments"},"review_comment":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/pulls/8812/commits"},"statuses":{"href":"https://api.github.com/repos/gitlabhq/gitlabhq/statuses/7ff854edb41b7010ffde8e2bd289c72eb34b0751"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}