mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-04 02:41:01 +08:00
fix: pass on request to run log, harder
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -128,6 +128,7 @@ impl Run {
|
||||
.repo_name
|
||||
.as_ref()
|
||||
.ok_or(RunError::Missing("repo_name"))?;
|
||||
let request = self.request.clone().ok_or(RunError::Missing("request"))?;
|
||||
let commit = self.commit.ok_or(RunError::Missing("commit"))?;
|
||||
let storage = self.storage.as_ref().ok_or(RunError::Missing("storage"))?;
|
||||
let timeout = self.timeout.ok_or(RunError::Missing("timeout"))?;
|
||||
@@ -136,6 +137,7 @@ impl Run {
|
||||
self.run_log.title("Log from Radicle native CI");
|
||||
self.run_log.rid(rid, repo_name);
|
||||
self.run_log.commit(commit);
|
||||
self.run_log.request(request);
|
||||
|
||||
// Clone the repository and check out the right commit. If
|
||||
// these fail, the problem is stored in the run log.
|
||||
|
||||
@@ -41,6 +41,10 @@ impl RunLog {
|
||||
self.title = Some(title.into());
|
||||
}
|
||||
|
||||
pub fn request(&mut self, request: Request) {
|
||||
self.request = Some(request);
|
||||
}
|
||||
|
||||
pub fn rid(&mut self, rid: RepoId, name: &str) {
|
||||
self.rid = Some(rid);
|
||||
self.repo_name = Some(name.into());
|
||||
|
||||
Reference in New Issue
Block a user