Commit graph

5 commits

Author SHA1 Message Date
Andy Feller
22a5a4c899 Update gh variable get to use repo host
Closes #9274

This change addresses a bug where repository and repository environment variables are not being retrieved from the appropriate host, causing GHES users to fail without specifying `GH_HOST` to force `gh variable set` to do the right thing.

In addition, the tests for this command have been updated to check both github.com and GHES variations to ensure this works.
2024-08-02 10:36:32 -04:00
Babak K. Shandiz
840ddc5df5
Only populate selected repo information for JSON output
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-25 23:56:36 +01:00
Babak K. Shandiz
96549077cc
Add --json option support
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-25 23:56:35 +01:00
Babak K. Shandiz
9d8b783304
Use Variable type defined in shared package
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-25 23:56:35 +01:00
Arne Jørgensen
08a5589abe
Add a gh variable get FOO command (#9106)
Closes #9103.

---------

Co-authored-by: William Martin <williammartin@github.com>
2024-05-23 17:11:53 +02:00