You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using the date/time that the change log is generated as the release date, we should use the data the (annotated) tag was created. This will be useful if you release software, but don't create the release in GitHub immediately. For example, this happened recently in kiwi-js when 0.12.0 was released but (due to a temporary problem with GitHub not setting headers correctly), the release on GitHub was not until several days later.
You then make a request to the object.url to get the annotated tag information
So, from the above you would make a GET https://api.github.com/repos/kiwiproject/kiwiproject-changelog/git/tags/e6be73f6bad45cffac32bd8f633ec6125b729b0b which returns:
This second response contains the date in the tagger object of the annotated tag.
If we fail to get a date, for example if the tag is not an annotated tag, then we should log a warning and fall back to the way it works now, basically the time the change log is generated.
The text was updated successfully, but these errors were encountered:
Instead of using the date/time that the change log is generated as the release date, we should use the data the (annotated) tag was created. This will be useful if you release software, but don't create the release in GitHub immediately. For example, this happened recently in kiwi-js when 0.12.0 was released but (due to a temporary problem with GitHub not setting headers correctly), the release on GitHub was not until several days later.
This will need to make a REST call to get the release tag using the REST API endpoints for Git tags
Unfortunately, we will need to make two requests:
For example,
GET https://api.github.com/repos/kiwiproject/kiwiproject-changelog/git/matching-refs/tags/v1.0.1
returns:You then make a request to the
object.url
to get the annotated tag informationSo, from the above you would make a
GET https://api.github.com/repos/kiwiproject/kiwiproject-changelog/git/tags/e6be73f6bad45cffac32bd8f633ec6125b729b0b
which returns:This second response contains the
date
in thetagger
object of the annotated tag.If we fail to get a date, for example if the tag is not an annotated tag, then we should log a warning and fall back to the way it works now, basically the time the change log is generated.
The text was updated successfully, but these errors were encountered: