Commit 50f1845
committed
Allow to set GitHub API version
This adds a new set_api_version method the GitHub class that accepts
an API version string as defined in [1]. The version is added to the
session headers. Sessions headers remain unchanged if no version string
was given.
Addresses sigmavirus24#1121.
[1]: https://docs.github.com/en/rest/overview/api-versions?apiVersion=2022-11-281 parent 0321e7c commit 50f1845
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2596 | 2596 | | |
2597 | 2597 | | |
2598 | 2598 | | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
2599 | 2610 | | |
2600 | 2611 | | |
2601 | 2612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
730 | 736 | | |
731 | 737 | | |
732 | 738 | | |
| |||
0 commit comments