maiao icon indicating copy to clipboard operation
maiao copied to clipboard

Better support for Github Enterprise

Open joaoqalves opened this issue 1 year ago • 0 comments

Background

People may use Maiao for Github Enterprise and github.com.

Problem

Currently, the burden of changing the GITHUB_TOKEN environment variable is on the user. If the user doesn't want to set a .netrc file for different hosts, they need to things such as export GITHUB_TOKEN=$GITHUB_ENTERPRISE_TOKEN, which is not very friendly.

Goal

To support domains out of github.com through the GITHUB_ENTERPRISE_TOKEN environment variable.

Caveats

To avoid breaking changes with the current API, there's a fallback for domains other than github.com to search for the GITHUB_TOKEN.

Committer details Local-Branch: main

joaoqalves avatar Nov 08 '22 07:11 joaoqalves