// deno-lint-ignore-file no-explicit-any ban-ts-comment
import { logError } from "../helpers.ts";
import { getViewerRepos, LanguageEdge } from "./getViewerRepos.ts";
export function pkgTypeCondition(pkg: RequiredDecodedPackageJson): {
pkg_type: TPkgType;
condition: boolean;
} {code to fetch the viewer's repos
export async function getViewerRepos(
viewer_token: string,
cursor: string | null = null,
): Promise<{ data: ViewerRepos | null; error: BadDataGitHubError | null }> {
const query = `
query($first: Int!,$after: String) {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": | |
| [ | |
| { | |
| "command": "paste", | |
| "keys": "ctrl+v" | |
| }, | |
| { |
- create a .env file in the root directory
VITE_apiKey=zahtddfrsfSyCHJYZaDa9s47oP4L7Cc
VITE_authDomain=firebaseapp.firebaseapp.com
VITE_databaseURL=https://firebaseapp.firebaseio.com
VITE_projectId=firebaseapp
VITE_storageBucket=firebaseapp.appspot.com
VITE_messagingSenderId=200000020053535353535353535353
VITE_appId=1:50000000080792:web:6676767676d766d7676sw6After working with the github rest api and experiencing some of it's limitations it's time to pick things up a bit and dive into their Graphql api
as Usual first things first we set up a tesing enviroment and github provides their own explorer which will setup the authentication headers for you under the hood , but if you prefer to use another gql explorer , just set it up like below Replace ghp_LBgN6pCeWsHcxeoJpR4ZTwUj with your personal access token
I have another article i made about react-query tips an tricks which might help explain that part . becau
