[MacPorts] #67824: pg github: livecheck: use json api

MacPorts noreply at macports.org
Tue Jul 25 10:55:03 UTC 2023


#67824: pg github: livecheck: use json api
-------------------------+-----------------------
 Reporter:  mascguy      |      Owner:  mascguy
     Type:  enhancement  |     Status:  assigned
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.8.1
 Keywords:  portgroup    |       Port:  pg-github
-------------------------+-----------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/67824>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list