@yuki-no/plugin-sdk
Version:
A GitHub Action that tracks changes between repositories. It creates GitHub issues based on commits from a head repository, making it ideal for documentation translation projects.
18 lines (17 loc) • 463 B
TypeScript
import type { Config, RepoSpec } from '../types/config';
import { Octokit } from '@octokit/rest';
type GitHubConfig = Pick<Config, 'accessToken' | 'labels'> & {
repoSpec: RepoSpec;
};
export declare class GitHub {
private readonly config;
api: Octokit;
constructor(config: GitHubConfig);
get ownerAndRepo(): {
owner: string;
repo: string;
};
get repoSpec(): RepoSpec;
get configuredLabels(): string[];
}
export {};