cli/pkg/cmd/api
Mislav Marohnić ead6bf87d9 api: handle HTTP 409 error message from the server
Previously, "errors" field was either an array of strings or an array of
error objects. This covers an additional case when "errors" is a string:

    $ gh api orgs/cli/actions/permissions/repositories
    {
      "message": "Conflict",
      "errors": "Actions are enabled for all repositories",
      "documentation_url": "https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization"
    }
2021-12-06 19:54:54 +01:00
..
api.go api: handle HTTP 409 error message from the server 2021-12-06 19:54:54 +01:00
api_test.go api: handle HTTP 409 error message from the server 2021-12-06 19:54:54 +01:00
http.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
http_test.go Allow explicitly specifying the hostname for gh operations 2020-08-12 16:16:34 +02:00
pagination.go Correct benign mistake in off-by-one guard 2021-08-19 14:41:04 +01:00
pagination_test.go Automatically add per_page=100 to paginated REST requests 2020-06-23 18:42:57 +02:00