Opened 3 years ago
Last modified 3 years ago
#67824 assigned enhancement
pg github: livecheck: use json api
| Reported by: | mascguy (Christopher Nielsen) | Owned by: | mascguy (Christopher Nielsen) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.8.1 |
| Keywords: | portgroup | Cc: | ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager) |
| Port: | pg-github |
Description
Switch livecheck to use the GitHub API, as illustrated in a number of ports. (With the caveat that this example ignore alphabetic characters, to avoid pre-releases, betas, etc.)
livecheck.url https://api.github.com/repos/${github.author}/${github.project}/tags?per_page=200
livecheck.curloptions
livecheck.regex "\"name\": \"v([0-9\.\]+)\","
While the existing scheme works fine when checking the most recent project versions, it's limited to 10 due to pagination. Whereas the API allows us to specify how many we want, whilst also being faster.
Change History (3)
comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)
comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)
Ports that currently utilize the API, are as follows:
comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)
| Cc: | cooljeanius added |
|---|
Note: See
TracTickets for help on using
tickets.

p.s. We'd need to support multiple info sources, including both
tagsandreleases. So that should be configurable.