cli/pkg/cmd/api
Alex Petrov 343896fdac
Do not interpret "branch" placeholder in api command when GH_REPO is set (#7626)
* fix(api): do not interpret "branch" placeholder when `GH_REPO` is set

Before, we would always interpret the "branch" placeholder, typically
setting it to the currently checked-out branch in the repository in the
current working directory. It didn't make sense to do that when the
`GH_REPO` environment variable was specified because the repository
would likely be different from the one in the current working directory.

Now, we instead report an error if both `GH_REPO` environment variable
and `branch` placeholder are specified.
2023-07-06 07:05:40 +00:00
..
api.go Do not interpret "branch" placeholder in api command when GH_REPO is set (#7626) 2023-07-06 07:05:40 +00:00
api_test.go Do not interpret "branch" placeholder in api command when GH_REPO is set (#7626) 2023-07-06 07:05:40 +00:00
fields.go Supported passing nested JSON arrays/objects to api command via fields (#6614) 2022-12-22 20:12:00 +01:00
fields_test.go Supported passing nested JSON arrays/objects to api command via fields (#6614) 2022-12-22 20:12:00 +01:00
http.go force method to uppercase (#7514) 2023-06-01 13:54:56 +00:00
http_test.go force method to uppercase (#7514) 2023-06-01 13:54:56 +00:00
pagination.go api: output a single JSON array in REST pagination mode (#7190) 2023-06-09 20:55:06 +02:00
pagination_test.go Automatically add per_page=100 to paginated REST requests 2020-06-23 18:42:57 +02:00