Commit graph

10 commits

Author SHA1 Message Date
Sam Coe
d21c11d774
Add tenancy support (#7636) 2023-06-30 11:20:53 +00:00
Mislav Marohnić
b94d07347f
Add support for garage.github.com (#6478) 2022-11-03 12:12:38 +00:00
vilmibm
4afb567d06 WIP: survey wrapper 2022-07-26 14:39:38 -05:00
Mislav Marohnić
54b2de2f2a Assume that github.localhost is available through http: and not https: 2021-10-18 20:01:18 +02:00
Josh Gross
e43777ebd2 Support github.localhost as a non-enterprise host 2021-10-18 20:01:18 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated (#3286) 2021-03-30 16:51:00 +02:00
Mislav Marohnić
75ebb863e3 Use testify assertions for error matching 2021-01-19 13:59:37 +01:00
Mislav Marohnić
460d55f723 Move HostnameValidator to ghinstance 2020-10-21 16:31:20 +00:00
Mislav Marohnić
c095a4bead Allow explicitly specifying the hostname for gh operations
Accept the "HOST/OWNER/REPO" syntax or passing a full URL for both the
`--repo` flag and the GH_REPO environment variable and allow setting
GH_HOST environment variable to override just the hostname for
operations that assume "github.com" by default.

Examples:

    $ gh repo clone example.org/owner/repo
    $ GH_HOST=example.org gh repo clone repo

    $ GH_HOST=example.org gh api user
    $ GH_HOST=example.org gh gist create myfile.txt

    $ gh issue list -R example.org/owner/repo
    $ gh issue list -R https://example.org/owner/repo.git
    $ GH_REPO=example.org/owner/repo gh issue list
2020-08-12 16:16:34 +02:00
Mislav Marohnić
87632791d6 Add ghinstance tests 2020-07-27 20:09:57 +02:00