MCPcopy Create free account
hub / github.com/dyoshikawa/rulesync / getDefaultBranch

Method getDefaultBranch

src/lib/github-client.ts:83–86  ·  view source on GitHub ↗

* Get the default branch of a repository

(owner: string, repo: string)

Source from the content-addressed store, hash-verified

81 * Get the default branch of a repository
82 */
83 async getDefaultBranch(owner: string, repo: string): Promise<string> {
84 const repoInfo = await this.getRepoInfo(owner, repo);
85 return repoInfo.default_branch;
86 }
87
88 /**
89 * Get repository information

Callers 3

fetchFilesFunction · 0.95
resolveGithubFetchRefFunction · 0.45

Calls 1

getRepoInfoMethod · 0.95

Tested by

no test coverage detected