The users proxy provides access to GitHub user endpoints.
import { users } from "@openally/github.sdk";
// Collect all repositories for a user
const repos = await users.torvalds.repos();
// Stream followers one by one
for await (const follower of users.torvalds.followers()) {
console.log(follower.login);
}
// Collect all starred repositories
const starred = await users.torvalds.starred();users[username].<method>()All methods return an ApiEndpoint<T> instance.
Returns ApiEndpoint<UserOrg>.
Lists all organizations the user belongs to.
GitHub docs: List organizations for a user
Returns ApiEndpoint<UserRepo>.
Lists all public repositories for the user.
GitHub docs: List repositories for a user
Returns ApiEndpoint<UserGist>.
Lists all public gists for the user.
GitHub docs: List gists for a user
Returns ApiEndpoint<UserFollower>.
Lists all followers of the user.
GitHub docs: List followers of a user
Returns ApiEndpoint<UserFollowing>.
Lists all users the user follows.
GitHub docs: List the people a user follows
Returns ApiEndpoint<UserStarred>.
Lists all repositories starred by the user.
GitHub docs: List repositories starred by a user