Company
Date Published
Author
Rob Sanheim
Word count
408
Language
English
Hacker News points
None

Summary

An API has been launched to enable third-party services to attach statuses to commits, enhancing the discussion on pull requests by automatically updating commit statuses, such as those used internally in continuous integration setups. This flexible API allows services to define the success or failure of a commit, thus enabling diverse applications like design reviews or verifying contributor license agreements. Pull requests display the status of the latest commit, with optional metadata, and provide a warning if the status is not 'success', although merging is still possible. Currently, services like Travis CI and Sprint.ly integrate with this API, offering automatic status updates for enabled repositories. The API supports states like "pending", "success", "failure", and "error", and while statuses are immutable, multiple statuses can be attached to a commit, with only the most recent displayed. The community is encouraged to explore and develop further integrations using this new API.