Skip to content

[Schema Inaccuracy] List organization repositories sorting #3445

Open
@dmmatson

Description

@dmmatson

Schema Inaccuracy

List organization repositories
get "/organizations/:organization_id/repos"

Expected

There are two issues with this description...

      description: The property to sort the results by.
        in: query
        required: false
        schema:
          type: string
          enum:
          - created
          - updated
          - pushed
          - full_name
          default: created

We also support sorting by name. [code]

    - 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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions