@cosmstack/repoeject
Version:
Interactive CLI tool to safely find and delete old or inactive GitHub repositories. Clean up your GitHub profile by removing abandoned projects, old experiments, and unused forks.
9 lines (8 loc) • 556 B
TypeScript
import { Octokit } from "@octokit/rest";
import type { Commit, Repository, TokenData } from "../types";
export declare function initGitHub(token: string): Octokit;
export declare function authenticateWithOAuth(): Promise<TokenData>;
export declare function ensureAuthentication(): Promise<Octokit>;
export declare function fetchUserRepositories(): Promise<Repository[]>;
export declare function fetchRepositoryCommits(owner: string, repo: string): Promise<Commit[]>;
export declare function deleteRepository(owner: string, repo: string): Promise<boolean>;