Skip to content

[BUG]: RepositoryVariablesClient.GetAll() returns only 10 variables #3031

@akordowski

Description

@akordowski

What happened?

While loading a repositories GitHub Actions variables I noticed that the RepositoryVariablesClient.GetAll() function only returns 10 variables although the RepositoryVariablesCollection.TotalCount is much higher. The RepositorySecretsClient.GetAll() function on the other hand, returns the correct number of secrets (more then 10) and the count matches the RepositorySecretsCollection.TotalCount value.

I expected that the function returns the same amount of variables as the value of the RepositoryVariablesCollection.TotalCount property.

I tested the function with multiple repositories which have more then 10 variables. The result was always the same. The amount of variables was 10 and the RepositoryVariablesCollection.TotalCount matched the count of existing variables.

Versions

Octokit.NET 14.0.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions