mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-29 06:20:29 +08:00
fix: pass in request to run log
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
+4
-2
@@ -77,7 +77,7 @@ impl Engine {
|
||||
let repo = req.repo();
|
||||
let commit = req.commit();
|
||||
|
||||
match self.run_helper(repo, name, commit, Some(branch), None) {
|
||||
match self.run_helper(repo, name, req.clone(), commit, Some(branch), None) {
|
||||
Ok(true) => success = true,
|
||||
Ok(false) => (),
|
||||
Err(e) => {
|
||||
@@ -106,7 +106,7 @@ impl Engine {
|
||||
let repo = req.repo();
|
||||
let commit = req.commit();
|
||||
|
||||
match self.run_helper(repo, name, commit, None, Some((*id, title))) {
|
||||
match self.run_helper(repo, name, req.clone(), commit, None, Some((*id, title))) {
|
||||
Ok(true) => success = true,
|
||||
Ok(false) => (),
|
||||
Err(e) => {
|
||||
@@ -174,6 +174,7 @@ impl Engine {
|
||||
&mut self,
|
||||
rid: RepoId,
|
||||
name: &str,
|
||||
req: Request,
|
||||
commit: Oid,
|
||||
branch: Option<&str>,
|
||||
patch: Option<(Oid, &str)>,
|
||||
@@ -199,6 +200,7 @@ impl Engine {
|
||||
// Create and set up the run.
|
||||
let mut run = Run::new(&run_dir, &run_log_filename)?;
|
||||
run.set_repository(rid, name);
|
||||
run.set_request(req);
|
||||
run.set_commit(commit);
|
||||
run.set_storage(storage);
|
||||
run.set_timeout(self.config.timeout());
|
||||
|
||||
Reference in New Issue
Block a user