{"action":"opened","issue":{"url":"https://api.github.com/repos/appveyor/ci/issues/166","labels_url":"https://api.github.com/repos/appveyor/ci/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/appveyor/ci/issues/166/comments","events_url":"https://api.github.com/repos/appveyor/ci/issues/166/events","html_url":"https://github.com/appveyor/ci/issues/166","id":59721411,"number":166,"title":"Not the latest commit is getting built in VSO Git push","user":{"login":"FeodorFitsner","id":5041459,"avatar_url":"https://avatars.githubusercontent.com/u/5041459?v=3","gravatar_id":"","url":"https://api.github.com/users/FeodorFitsner","html_url":"https://github.com/FeodorFitsner","followers_url":"https://api.github.com/users/FeodorFitsner/followers","following_url":"https://api.github.com/users/FeodorFitsner/following{/other_user}","gists_url":"https://api.github.com/users/FeodorFitsner/gists{/gist_id}","starred_url":"https://api.github.com/users/FeodorFitsner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FeodorFitsner/subscriptions","organizations_url":"https://api.github.com/users/FeodorFitsner/orgs","repos_url":"https://api.github.com/users/FeodorFitsner/repos","events_url":"https://api.github.com/users/FeodorFitsner/events{/privacy}","received_events_url":"https://api.github.com/users/FeodorFitsner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appveyor/ci/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/appveyor/ci/milestones/8","html_url":"https://github.com/appveyor/ci/milestones/March-week-1","labels_url":"https://api.github.com/repos/appveyor/ci/milestones/8/labels","id":999164,"number":8,"title":"March-week-1","description":"","creator":{"login":"FeodorFitsner","id":5041459,"avatar_url":"https://avatars.githubusercontent.com/u/5041459?v=3","gravatar_id":"","url":"https://api.github.com/users/FeodorFitsner","html_url":"https://github.com/FeodorFitsner","followers_url":"https://api.github.com/users/FeodorFitsner/followers","following_url":"https://api.github.com/users/FeodorFitsner/following{/other_user}","gists_url":"https://api.github.com/users/FeodorFitsner/gists{/gist_id}","starred_url":"https://api.github.com/users/FeodorFitsner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FeodorFitsner/subscriptions","organizations_url":"https://api.github.com/users/FeodorFitsner/orgs","repos_url":"https://api.github.com/users/FeodorFitsner/repos","events_url":"https://api.github.com/users/FeodorFitsner/events{/privacy}","received_events_url":"https://api.github.com/users/FeodorFitsner/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":3,"state":"open","created_at":"2015-02-27T18:16:46Z","updated_at":"2015-03-03T22:58:31Z","due_on":"2015-03-07T08:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-03T22:58:31Z","updated_at":"2015-03-03T22:58:31Z","closed_at":null,"body":"Discussion: http://help.appveyor.com/discussions/suggestions/588-firstoldest-of-multiple-pushed-git-commits-built-only\r\n\r\nThe problem is that it's wrong to assume commits in \"push\" are sorted in chronological order. As a result the first commit in JSON payload is not the latest.\r\n\r\nSolution: sort them by date first."}}