GET /versions returns the REST API versions the server supports, and MetaService has no method for it:
https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-all-api-versions
The response is a JSON array of date strings, so it maps to []string without adding a type. That matches GitignoresService.List, which backs the gitignore/get-all-templates operation and has the same signature and lack of pagination.
Note this is unrelated to the apiVersionMin/apiVersionMax constants in github.go, which are client side and stay hardcoded.
I plan to send a PR for this.
GET /versionsreturns the REST API versions the server supports, andMetaServicehas no method for it:https://docs.github.com/rest/meta/meta?apiVersion=2022-11-28#get-all-api-versions
The response is a JSON array of date strings, so it maps to
[]stringwithout adding a type. That matchesGitignoresService.List, which backs thegitignore/get-all-templatesoperation and has the same signature and lack of pagination.Note this is unrelated to the
apiVersionMin/apiVersionMaxconstants ingithub.go, which are client side and stay hardcoded.I plan to send a PR for this.