{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/523","labels_url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/523/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/523/events","html_url":"https://github.com/gitlabhq/gitlab-ci/issues/523","id":53092780,"number":523,"title":"Add Gitlab-CI API request to trigger new build from branch / tag","user":{"login":"sammcj","id":862951,"avatar_url":"https://avatars.githubusercontent.com/u/862951?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcj","html_url":"https://github.com/sammcj","followers_url":"https://api.github.com/users/sammcj/followers","following_url":"https://api.github.com/users/sammcj/following{/other_user}","gists_url":"https://api.github.com/users/sammcj/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcj/subscriptions","organizations_url":"https://api.github.com/users/sammcj/orgs","repos_url":"https://api.github.com/users/sammcj/repos","events_url":"https://api.github.com/users/sammcj/events{/privacy}","received_events_url":"https://api.github.com/users/sammcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-12-30T04:37:42Z","updated_at":"2015-02-04T13:49:19Z","closed_at":null,"body":"As per http://doc.gitlab.com/ci/api/projects.html there is no way to trigger a new build from a branch or tag using the gitlab-ci API, adding support for this would be useful for many reasons including:\r\n\r\n* A possible fix for #522\r\n* Triggering a build as part of another project's build (think upstream dependencies)"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/comments/72856630","html_url":"https://github.com/gitlabhq/gitlab-ci/issues/523#issuecomment-72856630","issue_url":"https://api.github.com/repos/gitlabhq/gitlab-ci/issues/523","id":72856630,"user":{"login":"nfantone","id":476069,"avatar_url":"https://avatars.githubusercontent.com/u/476069?v=3","gravatar_id":"","url":"https://api.github.com/users/nfantone","html_url":"https://github.com/nfantone","followers_url":"https://api.github.com/users/nfantone/followers","following_url":"https://api.github.com/users/nfantone/following{/other_user}","gists_url":"https://api.github.com/users/nfantone/gists{/gist_id}","starred_url":"https://api.github.com/users/nfantone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfantone/subscriptions","organizations_url":"https://api.github.com/users/nfantone/orgs","repos_url":"https://api.github.com/users/nfantone/repos","events_url":"https://api.github.com/users/nfantone/events{/privacy}","received_events_url":"https://api.github.com/users/nfantone/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T13:49:19Z","updated_at":"2015-02-04T13:49:19Z","body":"Is there anyway I can configure a specific job to run on a given set of branches? Say, running a deploy build **only** triggered by pushes to `master`.\r\n\r\nI have [asked this question over at StackOverflow](http://stackoverflow.com/questions/28026682/how-do-i-execute-a-job-for-specific-branch-tag-on-gitlab-ci-5-4) but I hardly got an answer."}}