MCPcopy Create free account
hub / github.com/amll-dev/amll-ttml-db / new

Method new

scripts/lyric_checker_bot/src/github_api.rs:57–64  ·  view source on GitHub ↗
(token: String, owner: String, repo: String)

Source from the content-addressed store, hash-verified

55
56impl GitHubClient {
57 pub fn new(token: String, owner: String, repo: String) -> Result<Self> {
58 let client = Octocrab::builder().personal_token(token).build()?;
59 Ok(Self {
60 client: Arc::new(client),
61 owner,
62 repo,
63 })
64 }
65
66 /// 检查与指定 Issue 关联的 PR 是否已存在
67 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected