Azure / Azure/azure-sdk-tools

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

Open
#3,112 1 comment 2 reactions 1 assignee Claimed by @benbp View on GitHub
Central-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

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:

* Windows 2022 -- https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md#cli-tools
* Windows 2019 -- https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#cli-tools
* Ubuntu 20 -- https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#cli-tools
* MacOS 11 -- https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#utilities

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.