Skip to content

All indexers should be in the format client.Repos.ByOwner() instead of client.ReposByOwner() #2528

@sebastienlevert

Description

@sebastienlevert

Currently, in C# we do the following:

client.Repos["owner"]["repo"].Pulls.GetAsync();

And it gets translated to something like this in other languages:

client.ReposByOwner("owner").ByRepo("repo").Get();

Though, we believe it would be a better experience to have it within the Repos request builder vs. as part of the root of the clent like this:

client.Repos.ByOwner("owner").ByRepo("repo").Get();

This would be a breaking change if we implement this change.

Metadata

Metadata

Assignees

Labels

GoPHPPythonRubyTypeScriptPull requests that update Javascript codeWIPgeneratorIssues or improvements relater to generation capabilities.javascriptPull requests that update Javascript code

Type

No type

Projects

Status

Done ✔️

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions