(token: String, owner: String, repo: String)
| 55 | |
| 56 | impl 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected