github.github.listrepositoriesforauthenticateduser
Home > @runlightyear/github > GitHub > listRepositoriesForAuthenticatedUser
GitHub.listRepositoriesForAuthenticatedUser() method
List repositories for the authenticated user
Signature:listRepositoriesForAuthenticatedUser(props?: ListRepositoriesForAuthenticatedUserProps): Promise<HttpProxyResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
props | ListRepositoriesForAuthenticatedUserProps | (Optional1) props |
Promise<HttpProxyResponse>
Example
List repositories for the current user
import { defineAction } from "@runlightyear/lightyear";
import { GitHub } from "@runlightyear/github";
defineAction({
name: "listRepositoriesForCurrentUser",
title: "List Repositories For Current User",
apps: ["github"],
run: async ({ auths, variables }) => {
const github = new GitHub({
auth: auths.github,
});
const response = await github.listRepositoriesForAuthenticatedUser();
console.log("Response: ", response.data);
},
});