{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/1068","labels_url":"https://api.github.com/repos/Shippable/support/issues/1068/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/1068/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/1068/events","html_url":"https://github.com/Shippable/support/issues/1068","id":58266167,"number":1068,"title":"GitHub pull request builds triggered twice","user":{"login":"adambyrtek","id":8214,"avatar_url":"https://avatars.githubusercontent.com/u/8214?v=3","gravatar_id":"","url":"https://api.github.com/users/adambyrtek","html_url":"https://github.com/adambyrtek","followers_url":"https://api.github.com/users/adambyrtek/followers","following_url":"https://api.github.com/users/adambyrtek/following{/other_user}","gists_url":"https://api.github.com/users/adambyrtek/gists{/gist_id}","starred_url":"https://api.github.com/users/adambyrtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambyrtek/subscriptions","organizations_url":"https://api.github.com/users/adambyrtek/orgs","repos_url":"https://api.github.com/users/adambyrtek/repos","events_url":"https://api.github.com/users/adambyrtek/events{/privacy}","received_events_url":"https://api.github.com/users/adambyrtek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T20:37:20Z","updated_at":"2015-02-20T00:05:13Z","closed_at":"2015-02-20T00:05:13Z","body":"Every new push to a GitHub branch corresponding to an open pull request results in two builds being triggered with the following labels:\r\n- Changeset: b456592 (PR#234), Branch: master\r\n- Changeset: b456592, Branch: foo-bar\r\n\r\nIn other words, every commit is being built twice. How to avoid that?"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/75165714","html_url":"https://github.com/Shippable/support/issues/1068#issuecomment-75165714","issue_url":"https://api.github.com/repos/Shippable/support/issues/1068","id":75165714,"user":{"login":"manishas","id":2983749,"avatar_url":"https://avatars.githubusercontent.com/u/2983749?v=3","gravatar_id":"","url":"https://api.github.com/users/manishas","html_url":"https://github.com/manishas","followers_url":"https://api.github.com/users/manishas/followers","following_url":"https://api.github.com/users/manishas/following{/other_user}","gists_url":"https://api.github.com/users/manishas/gists{/gist_id}","starred_url":"https://api.github.com/users/manishas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishas/subscriptions","organizations_url":"https://api.github.com/users/manishas/orgs","repos_url":"https://api.github.com/users/manishas/repos","events_url":"https://api.github.com/users/manishas/events{/privacy}","received_events_url":"https://api.github.com/users/manishas/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T00:05:13Z","updated_at":"2015-02-20T00:05:13Z","body":"@adambyrtek this is by design. If the commit is a part of the pull request then we trigger a build on the branch where it was committed and another one to test the merged changes. \r\n\r\nWe also show build status on your PR page on GitHub. If the status there is green, it means that CI for the master branch will pass after the merge, so the user is comfortable merging the PR. "}}