feat: with context
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-02-03 18:54:17 +01:00
parent e8507cd2f2
commit 512c3f625e
7 changed files with 89 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ use crate::{
extensions::CargoBInstallExt,
RustServiceStage,
},
MainAction, PullRequestAction,
Context, MainAction, PullRequestAction,
};
#[derive(Clone)]
@@ -328,7 +328,7 @@ impl LeptosService {
#[async_trait]
impl PullRequestAction for LeptosService {
async fn execute_pull_request(&self) -> eyre::Result<()> {
async fn execute_pull_request(&self, _ctx: &mut Context) -> eyre::Result<()> {
let mut s = self.clone();
s.with_cargo_binstall("latest", ["cargo-leptos"])
@@ -341,7 +341,7 @@ impl PullRequestAction for LeptosService {
#[async_trait]
impl MainAction for LeptosService {
async fn execute_main(&self) -> eyre::Result<()> {
async fn execute_main(&self, _ctx: &mut Context) -> eyre::Result<()> {
let mut s = self.clone();
let container = s