{"id":389,"date":"2017-10-18T09:53:05","date_gmt":"2017-10-18T09:53:05","guid":{"rendered":"http:\/\/www.micha.name\/blog\/?p=389"},"modified":"2017-10-18T09:53:05","modified_gmt":"2017-10-18T09:53:05","slug":"github-releases","status":"publish","type":"post","link":"https:\/\/www.micha.name\/blog\/2017\/10\/18\/github-releases\/","title":{"rendered":"GitHub releases"},"content":{"rendered":"<p>TL;DR &#8211; latest release in API is the last release you created, not the &#8220;Last Release&#8221; marked in the GUI or the date of the tag.<\/p>\n<p>So it turns out that GitHub has a bug in the way it marks releases.<\/p>\n<p>On the GitHub page you may have a green box next to your &#8220;Latest Release&#8221; (which uses the tag timestamp) and think all is fine. But the GitHub API has a different idea &#8211; it uses the date when you created a release using the GitHub web interface.<\/p>\n<p>This means that if you retrospectively create a release for an older tag, it won&#8217;t show up as &#8220;Latest Release&#8221; in the GUI, but it will be used as the latest release by the API, potentially stuffing up third-party integrations!<\/p>\n<p>Releaser beware!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub is not consistent between web interface and API when it comes to determining the &#8220;Latest Release&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[62,63,28],"_links":{"self":[{"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/posts\/389"}],"collection":[{"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":2,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.micha.name\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}