diff options
Diffstat (limited to 'src-tauri/src/github')
-rw-r--r-- | src-tauri/src/github/mod.rs | 4 | ||||
-rw-r--r-- | src-tauri/src/github/pull_requests.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src-tauri/src/github/mod.rs b/src-tauri/src/github/mod.rs index a4e390d3..0eab305b 100644 --- a/src-tauri/src/github/mod.rs +++ b/src-tauri/src/github/mod.rs @@ -31,8 +31,8 @@ pub struct TagWrapper { } #[derive(Debug, Deserialize)] -struct CommitInfo { - sha: String, +pub struct CommitInfo { + pub sha: String, commit: Commit, author: Option<CommitAuthor>, } diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs index e600e2e4..b30fd272 100644 --- a/src-tauri/src/github/pull_requests.rs +++ b/src-tauri/src/github/pull_requests.rs @@ -127,7 +127,7 @@ pub async fn check_github_api(url: &str) -> Result<serde_json::Value, Box<dyn st } /// Downloads a file from given URL into an array in memory -async fn download_zip_into_memory(download_url: String) -> Result<Vec<u8>, anyhow::Error> { +pub async fn download_zip_into_memory(download_url: String) -> Result<Vec<u8>, anyhow::Error> { let client = reqwest::Client::builder() .user_agent(APP_USER_AGENT) .build()?; |