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
4aa6f8f2f3
Add createdAt field to tests
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-26 00:06:25 +01:00
Babak K. Shandiz
43e3e9410e
Add test for exporting as JSON
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-25 23:56:37 +01:00
Babak K. Shandiz
7add5a47bd
Add test 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
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
ab85baaab4
Add test to verify JSON exporter gets set
...
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-05-25 23:56:35 +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