Closed eine closed 5 years ago
I'll keep parsing CHANGELOG.md
. It follows Keep a changelog and is intended to be parseable.
The Github API is specific to Github and I don't want to depend on it.
In fact, I consider to move x11docker to Gitlab due to Microsofts's takeover of Github.
In https://github.com/mviereck/x11docker/blob/master/x11docker#L1092-L1093 a file is downloaded from
master
(CHANGELOG.md) and it is parsed in order to find the tag of the latest release, which is the one downloaded in zip format as commented in #115.This is the current parsing procedure:
I might be improved by using the GitHub API directly. A JSON file is returned, which can be parsed more easily because it contains a field with the expected data:
The benefits of this approach are:
CHANGELOG.md
.CHANGELOG.md
can be changed without breaking the query.I think that the rate limit applies to both of them, so there is no improvement in this sense.