- name: direction
description: 'The order to sort by. Default: `asc` when using `full_name`,
otherwise `desc`.'
in: query
required: false
schema:
type: string
enum:
- asc
- desc
The fields that sort in ASC order are full_name, id, and name. [code]
Reproduction Steps
GH_DEBUG=1 gh api -X GET --jq ".[].name" "https://api.github.com/orgs/github/repos?sort=name&per_page=100"
I don't believe there is any behavioral difference between sorting by full_name vs. name since in the context of an organization the prefix will always be the same, e.g. github/REPO.
Schema Inaccuracy
List organization repositories
get "/organizations/:organization_id/repos"
Expected
There are two issues with this description...
1.
We also support sorting by
name
. [code]2.
The fields that sort in ASC order are
full_name
,id
, andname
. [code]Reproduction Steps
GH_DEBUG=1 gh api -X GET --jq ".[].name" "https://api.github.com/orgs/github/repos?sort=name&per_page=100"