{"id":237967,"date":"2018-09-27T05:54:00","date_gmt":"2018-09-27T09:54:00","guid":{"rendered":"https:\/\/wordpress-756359-3782526.cloudwaysapps.com\/?p=237967"},"modified":"2025-05-30T07:44:18","modified_gmt":"2025-05-30T07:44:18","slug":"2018-09-27-deprecating-github-commit-status-api-for-github-apps-managed-repositories","status":"publish","type":"post","link":"https:\/\/www.travis-ci.com\/blog\/2018-09-27-deprecating-github-commit-status-api-for-github-apps-managed-repositories\/","title":{"rendered":"Deprecating GitHub commit status API updates for GitHub Apps-managed repositories"},"content":{"rendered":"\n<p>As part of our gradual migration to\u00a0<a href=\"https:\/\/travis-ci.com\/blog\/2018-05-02-open-source-projects-on-travis-ci-com-with-github-apps\">GitHub Apps<\/a>\u00a0for our GitHub integration, we\u2019re formally deprecating\u00a0<a href=\"https:\/\/developer.github.com\/v3\/repos\/statuses\/\">GitHub Commit Status API<\/a>\u00a0updates for repositories on\u00a0<a href=\"https:\/\/travis-ci.com\/\">travis-ci.com<\/a>\u00a0managed by GitHub Apps. Instead, these repositories will have status updates reported to the\u00a0<a href=\"https:\/\/developer.github.com\/v3\/checks\/runs\/\">GitHub Check Runs API<\/a>.\u00a0<strong>We will no longer deliver GitHub Commit Status API updates for repositories managed by GitHub Apps starting\u00a0<em>October 4th, 2018<\/em><\/strong>.<\/p>\n\n\n\n<p>Your workflow will most likely be impacted only if it relies on either&nbsp;<a href=\"https:\/\/help.github.com\/articles\/about-protected-branches\/\">GitHub Protected Branches<\/a>&nbsp;or custom automations dependent on the&nbsp;<a href=\"https:\/\/developer.github.com\/v3\/repos\/statuses\/\">GitHub Commit Status API<\/a>.<\/p>\n\n\n\n<p>If your workflow doesn\u2019t fall into either case, the change will have minimal impact &#8211; except the deprecated (duplicate) GitHub Status API updates will disappear from your pull requests. If you do use protected branches or the GitHub Commit Status API, we have some recommendations for updating.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"protected-branches\">Protected Branches<\/h2>\n\n\n\n<p>Protected Branches are a feature in GitHub which let you block merging pull requests into specific branches unless status checks have passed.<\/p>\n\n\n\n<p>If you\u2019re a repository owner, you can update your repositories using protected branches to use status checks per the following:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the repository\u2019s&nbsp;<code>Settings<\/code>&nbsp;page, and select&nbsp;<code>Branches<\/code><\/li>\n\n\n\n<li>In the&nbsp;<code>Branch Protection Settings<\/code>&nbsp;section, click&nbsp;<code>Edit<\/code>&nbsp;for a protected branch<\/li>\n\n\n\n<li>Scroll down to the second box &#8211;&nbsp;<code>Require status checks to pass before merging<\/code>. Select either&nbsp;<code>Travis CI - Pull Request<\/code>&nbsp;or&nbsp;<code>Travis CI - Branch<\/code>&nbsp;or both. (Note:&nbsp;<code>continuous-integration\/travis-ci<\/code>&nbsp;is the Status API event which will be deprecated)<\/li>\n\n\n\n<li>Save your changes! Rinse and repeat for each protected branch.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-the-github-commit-status-api\">Using the GitHub Commit Status API<\/h2>\n\n\n\n<p>Since we will no longer be using the GitHub Commit Status API, automations you\u2019ve built or are using &#8211; including third party integrations &#8211; that rely on this GitHub endpoint may no longer work properly without the status API updates.<\/p>\n\n\n\n<p>If you\u2019re managing your integration with GitHub, we recommend switching to using the&nbsp;<a href=\"https:\/\/developer.github.com\/v3\/checks\/runs\/\">GitHub Check Runs API<\/a>. For example, instead of retrieving a Commit Status via a&nbsp;<code>GET<\/code>&nbsp;to&nbsp;<code>\/repos\/:owner\/:repo\/commits\/:ref\/statuses&nbsp;<\/code>, we suggest you use the following endpoint:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GET \/repos\/:owner\/:repo\/commits\/:ref\/check-runs<\/code><\/pre>\n\n\n\n<p>Read the&nbsp;<a href=\"https:\/\/developer.github.com\/v3\/checks\/runs\/#list-check-runs-for-a-specific-ref\">GitHub Check Runs API docs<\/a>&nbsp;for more information about the payload you can expect.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"questions-feedback\">Questions? Feedback?<\/h2>\n\n\n\n<p>We hope these recommendations are helpful! If you have a strict requirement on the GitHub Commit Status API that we didn\u2019t cover here, please email&nbsp;<a href=\"mailto:support@travis-ci.com?subject=Commit%20Status%20API%20Deprecation\">support@travis-ci.com<\/a>&nbsp;soon so we can help support through the deprecation process.<\/p>\n\n\n\n<p>Of course, if you have any other questions about these changes or there\u2019s anything we can do to help, let us know on the forum,&nbsp;<a href=\"https:\/\/travis-ci.community\/\">travis-ci.community<\/a>&nbsp;or send us an email as well. Thanks a bunch!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of our gradual migration to\u00a0GitHub Apps\u00a0for our GitHub integration, we\u2019re formally deprecating\u00a0GitHub Commit Status API\u00a0updates for repositories on\u00a0travis-ci.com\u00a0managed by GitHub Apps. Instead, these repositories will have status updates reported to the\u00a0GitHub Check Runs API.\u00a0We will no longer deliver GitHub Commit Status API updates for repositories managed by GitHub Apps starting\u00a0October 4th, 2018. Your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_breakdance_hide_in_design_set":false,"_breakdance_tags":"","footnotes":""},"categories":[16],"tags":[15,17,18],"class_list":["post-237967","post","type-post","status-publish","format-standard","hentry","category-news","tag-github","tag-product","tag-support"],"_links":{"self":[{"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/posts\/237967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/comments?post=237967"}],"version-history":[{"count":1,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/posts\/237967\/revisions"}],"predecessor-version":[{"id":242663,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/posts\/237967\/revisions\/242663"}],"wp:attachment":[{"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/media?parent=237967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/categories?post=237967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.travis-ci.com\/wp-json\/wp\/v2\/tags?post=237967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}