You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,40 @@ Preview functionality may take the form of entire methods or simply additional
332
332
data returned from an otherwise non-preview method. Refer to the GitHub API
333
333
documentation for details on preview functionality.
334
334
335
+
### Calendar Versioning ###
336
+
337
+
As of 2022-11-28, GitHub [has announced](https://github.blog/2022-11-28-to-infinity-and-beyond-enabling-the-future-of-githubs-rest-api-with-api-versioning/)
338
+
that they are starting to version their v3 API based on "calendar-versioning".
339
+
340
+
In practice, our goal is to make per-method version overrides (at
341
+
least in the core library) rare and temporary.
342
+
343
+
Our understanding of the GitHub docs is that they will be revving the
344
+
entire API to each new date-based version, even if only a few methods
345
+
have breaking changes. Other methods will accept the new version with
346
+
their existing functionality. So when a new date-based version of the
347
+
GitHub API is released, we (the repo maintainers) plan to:
348
+
349
+
* update each method that had breaking changes, overriding their
350
+
per-method API version header. This may happen in one or multiple
351
+
commits and PRs, and is all done in the main branch.
352
+
353
+
* once all of the methods with breaking changes have been updated,
354
+
have a final commit that bumps the default API version, and remove
355
+
all of the per-method overrides. That would now get a major version
356
+
bump when the next go-github release is made.
357
+
358
+
### Version Compatibility Table ###
359
+
360
+
The following table identifies which version of the GitHub API is
361
+
supported by this (and past) versions of this repo (go-github).
362
+
Versions prior to 48.2.0 are not listed.
363
+
364
+
| go-github Version | GitHub v3 API Version |
365
+
| ----------------- | --------------------- |
366
+
| 48.2.0 | 2022-11-28 |
367
+
368
+
335
369
## License ##
336
370
337
371
This library is distributed under the BSD-style license found in the [LICENSE](./LICENSE)
0 commit comments