Skip to content

/repos/${username}/${repo}/branches to return x-pagecount #35308

@ile

Description

@ile

Feature Description

The API endpoint /repos/${username}/${repo}/commits returns these in the headers:

X-HasMore	
boolean
True if there is another page

X-Page	
integer <int64>
The current page

X-PageCount	
integer <int64>
Total number of pages

X-PerPage	
integer <int64>
Commits per page

X-Total	
integer <int64>
Total commit count

But /repos/${username}/${repo}/branches seems to return only x-total-count (total number of branches).

It would be helpful to return at least x-pagecount because it will vary according to the limit.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/apiConcerns mainly the APItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions