{"action":"created","issue":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/817","labels_url":"https://api.github.com/repos/Block8/PHPCI/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/Block8/PHPCI/issues/817/comments","events_url":"https://api.github.com/repos/Block8/PHPCI/issues/817/events","html_url":"https://github.com/Block8/PHPCI/issues/817","id":58763295,"number":817,"title":"Create a build using a hook or console command","user":{"login":"kevin-jones","id":3753940,"avatar_url":"https://avatars.githubusercontent.com/u/3753940?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-jones","html_url":"https://github.com/kevin-jones","followers_url":"https://api.github.com/users/kevin-jones/followers","following_url":"https://api.github.com/users/kevin-jones/following{/other_user}","gists_url":"https://api.github.com/users/kevin-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-jones/subscriptions","organizations_url":"https://api.github.com/users/kevin-jones/orgs","repos_url":"https://api.github.com/users/kevin-jones/repos","events_url":"https://api.github.com/users/kevin-jones/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-jones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Block8/PHPCI/labels/enhancement:feature","name":"enhancement:feature","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-24T16:28:23Z","updated_at":"2015-02-26T17:43:11Z","closed_at":null,"body":"Our preferred CI process is for a new build to be created automatically when someone commits.  We use hooks in Bitbucket to trigger the /project/build/[id] URL in PHPCI for this.  However, sometimes it is useful for a commit on one project to trigger a build of a different project - this is currently not possible in PHPCI.\r\n\r\nWe've tried adding a web hook to REPO-A and telling it to trigger a build on REPO-B using a POST to /project/build/1 for example.\r\n\r\nThe reason it didn't work is that PHPCI expects a commit hash to be provided by the hook, and the hash needs to be a valid commit on the project being built.\r\n\r\nIt would be great if a build can be triggered on any project easily via a hook or console command, mirroring what happens when click 'Build Now' in the PHPCI admin system."},"comment":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/comments/76226377","html_url":"https://github.com/Block8/PHPCI/issues/817#issuecomment-76226377","issue_url":"https://api.github.com/repos/Block8/PHPCI/issues/817","id":76226377,"user":{"login":"kevin-jones","id":3753940,"avatar_url":"https://avatars.githubusercontent.com/u/3753940?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-jones","html_url":"https://github.com/kevin-jones","followers_url":"https://api.github.com/users/kevin-jones/followers","following_url":"https://api.github.com/users/kevin-jones/following{/other_user}","gists_url":"https://api.github.com/users/kevin-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-jones/subscriptions","organizations_url":"https://api.github.com/users/kevin-jones/orgs","repos_url":"https://api.github.com/users/kevin-jones/repos","events_url":"https://api.github.com/users/kevin-jones/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-jones/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T17:43:11Z","updated_at":"2015-02-26T17:43:11Z","body":"The simplest solution would be triggering the same functionality as the 'build now' link in the current PHPCI admin ststem"}}