We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2407f13 commit eb6e005Copy full SHA for eb6e005
src/github.rs
@@ -219,6 +219,19 @@ impl GithubClient {
219
.context("failed to update pr state")?;
220
Ok(())
221
}
222
+
223
+ pub async fn raw_job_logs(
224
+ &self,
225
+ repo: &IssueRepository,
226
+ job_id: u128,
227
+ ) -> anyhow::Result<String> {
228
+ let url = format!("{}/actions/jobs/{job_id}/logs", repo.url(&self));
229
+ let (body, _req_dbg) = self
230
+ .send_req(self.get(&url))
231
+ .await
232
+ .context("failed to retrieve job logs")?;
233
+ Ok(String::from_utf8_lossy(&body).to_string())
234
+ }
235
236
237
#[derive(Debug, serde::Serialize)]
0 commit comments