{"action":"created","issue":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/1053","labels_url":"https://api.github.com/repos/Block8/PHPCI/issues/1053/labels{/name}","comments_url":"https://api.github.com/repos/Block8/PHPCI/issues/1053/comments","events_url":"https://api.github.com/repos/Block8/PHPCI/issues/1053/events","html_url":"https://github.com/Block8/PHPCI/pull/1053","id":105034747,"number":1053,"title":"Display accurate build status at any point","user":{"login":"robertboloc","id":507871,"avatar_url":"https://avatars.githubusercontent.com/u/507871?v=3","gravatar_id":"","url":"https://api.github.com/users/robertboloc","html_url":"https://github.com/robertboloc","followers_url":"https://api.github.com/users/robertboloc/followers","following_url":"https://api.github.com/users/robertboloc/following{/other_user}","gists_url":"https://api.github.com/users/robertboloc/gists{/gist_id}","starred_url":"https://api.github.com/users/robertboloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertboloc/subscriptions","organizations_url":"https://api.github.com/users/robertboloc/orgs","repos_url":"https://api.github.com/users/robertboloc/repos","events_url":"https://api.github.com/users/robertboloc/events{/privacy}","received_events_url":"https://api.github.com/users/robertboloc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Block8/PHPCI/labels/flag:requires-rebase","name":"flag:requires-rebase","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-05T16:02:51Z","updated_at":"2015-10-23T20:15:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Block8/PHPCI/pulls/1053","html_url":"https://github.com/Block8/PHPCI/pull/1053","diff_url":"https://github.com/Block8/PHPCI/pull/1053.diff","patch_url":"https://github.com/Block8/PHPCI/pull/1053.patch"},"body":"Currently, after pushing a new commit if a user asks for the status image, the displayed status will be either failing or passing, based on the previous commit, even if the current build has not completed. \r\n\r\nIf the status image is linked somewhere (we use a chrome plugin to embed this image automatically on all our Bitbucket pull requests) most of the time the build is shown as passing, until the actual build completes, and the image is updated.\r\n\r\nThis causes issues as the build takes a while to complete, and developers have to manually check the PHPCI interface for any running builds before actually trusting the image. I think this defeats the purpose of the badge.\r\n\r\nThis pull request adds 2 more statuses for the badge (not the build):\r\n\r\n* unknown (build is created but is not being executed yet), light grey color\r\n* running (build is being executed by the daemon or cron task), orange color\r\n\r\nThis displays the actual state of a branch at any point, avoiding to have to manually check for any running builds"},"comment":{"url":"https://api.github.com/repos/Block8/PHPCI/issues/comments/150679019","html_url":"https://github.com/Block8/PHPCI/pull/1053#issuecomment-150679019","issue_url":"https://api.github.com/repos/Block8/PHPCI/issues/1053","id":150679019,"user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars.githubusercontent.com/u/1791050?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T20:15:40Z","updated_at":"2015-10-23T20:15:40Z","body":":+1: after rebasing again :)"}}