Skip to main content

github.github.listrepositoriesforauthenticateduser

Home > @runlightyear/github > GitHub > listRepositoriesForAuthenticatedUser

GitHub.listRepositoriesForAuthenticatedUser() method

List repositories for the authenticated user

Signature:
listRepositoriesForAuthenticatedUser(props?: ListRepositoriesForAuthenticatedUserProps): Promise<HttpProxyResponse>;

Parameters

ParameterTypeDescription
propsListRepositoriesForAuthenticatedUserProps(Optional1) props
Returns:

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);
},
});