microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
582 stars 184 forks source link

Added API versioning support #379

Closed variableresistor closed 1 year ago

variableresistor commented 1 year ago

Description

GitHub is introducing versioned API's. In order to get the expected behavior of an API, you need to invoke the API with its version in the request header. This change updates the core functions (Invoke-GHRestMethod and Invoke-GHRestMethodMultipleResult) to accept an ApiVersion as part of their param sets so that as the module continues to add new functionality, methods can request the appropriate API Version for their individual calls.

Features Added

Fixes #377

References

To infinity and beyond: enabling the future of GitHub’s REST API with API versioning API Versions

Checklist

variableresistor commented 1 year ago

@microsoft-github-policy-service agree company="City National Bank"

variableresistor commented 1 year ago

@variableresistor please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

Contributor License Agreement

@microsoft-github-policy-service agree company="City National Bank"

HowardWolosky commented 1 year ago

/azp run PowerShellForGitHub-CI

azure-pipelines[bot] commented 1 year ago
Azure Pipelines successfully started running 1 pipeline(s).