WithVersion overrides the GitHub v3 API version for this individual request. For more information, see: https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/
(version string)
| 767 | // For more information, see: |
| 768 | // https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/ |
| 769 | func WithVersion(version string) RequestOption { |
| 770 | return func(req *http.Request) { |
| 771 | req.Header.Set(headerAPIVersion, version) |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | // NewRequest creates an API request. A relative URL can be provided in urlStr, |
| 776 | // in which case it is resolved relative to the BaseURL of the Client. |
no outgoing calls
searching dependent graphs…