Azure / azure-sdk-tools

Tools repository leveraged by the Azure SDK team.
MIT License
110 stars 174 forks source link

Replace calls to Invoke-GitHubAPI.ps1 with calls to GH CLI #3112

Open danieljurek opened 2 years ago

danieljurek commented 2 years ago

The gh CLI offers many of the features we use today (release creation, issue creation, PR creation, etc.) in a more convenient interface: https://cli.github.com/manual/

For authenticated calls that aren't directly supported by features there is [gh api](https://cli.github.com/manual/gh_api)

Authentication is transparent and can use GH_TOKEN environment variable.

The gh CLI is already present on Azure DevOps agents. Incomplete list of examples:

kurtzeborn commented 1 year ago

There is a larger topic to discuss on whether we want GH CLI as a dependency on our pipelines. It handles errors differently than PowerShell too, so we'd want to be sure we get sufficient benefit for the added complexity of doing this.

CC: @weshaggard