Commit 01f5811
committed
Pin GitHub REST API version in requests
Previously, the requests would use whatever version of the API is current, exposing the action to immediate breakage if
GitHub released a new version of the REST API with relevant changes.
GitHub provides the previous API for a minimum of 24 months after a new version is released, so pinning the REST API
version used by the action via the `X-GitHub-Api-Version` HTTP header improves the stability of the action and allows
the project maintainer to make a controlled migration to the new API version.1 parent 272dfea commit 01f5811
File tree
2 files changed
+2
-0
lines changed- reportsizedeltas
- tests
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
| |||
0 commit comments