diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 91a76d67..6ffa4b61 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,9 +1,6 @@ name: Test on: - push: - branches: - - '**' pull_request: jobs: diff --git a/docs/wiki/CICD-Pipeline.md b/docs/wiki/CICD-Pipeline.md index 59b4ed45..4a483f98 100644 --- a/docs/wiki/CICD-Pipeline.md +++ b/docs/wiki/CICD-Pipeline.md @@ -29,7 +29,7 @@ macOS runner runs jobs **directly on the host** (no Docker container) — macOS ## Test Pipeline (`.woodpecker/test.yml`) -**Triggers:** Every push and pull request to any branch. +**Triggers:** Pull requests only. ``` Pipeline steps: diff --git a/src-tauri/src/commands/integrations.rs b/src-tauri/src/commands/integrations.rs index 244ed952..09cf4bd0 100644 --- a/src-tauri/src/commands/integrations.rs +++ b/src-tauri/src/commands/integrations.rs @@ -527,8 +527,7 @@ pub async fn authenticate_with_webview( return Ok(WebviewAuthResponse { success: true, message: format!( - "{} browser window is already open. Switch to it to log in.", - service + "{service} browser window is already open. Switch to it to log in." ), webview_id: existing_label.clone(), }); @@ -551,8 +550,7 @@ pub async fn authenticate_with_webview( Ok(WebviewAuthResponse { success: true, message: format!( - "{} browser window opened. This window will stay open - use it to browse and authenticate. Cookies will be extracted automatically for API calls.", - service + "{service} browser window opened. This window will stay open - use it to browse and authenticate. Cookies will be extracted automatically for API calls." ), webview_id, }) diff --git a/src-tauri/src/integrations/azuredevops.rs b/src-tauri/src/integrations/azuredevops.rs index 3d47e08b..762d5986 100644 --- a/src-tauri/src/integrations/azuredevops.rs +++ b/src-tauri/src/integrations/azuredevops.rs @@ -64,8 +64,7 @@ pub async fn search_work_items( // Build WIQL query let wiql = format!( - "SELECT [System.Id], [System.Title], [System.WorkItemType], [System.State] FROM WorkItems WHERE [System.Title] CONTAINS '{}' ORDER BY [System.CreatedDate] DESC", - query + "SELECT [System.Id], [System.Title], [System.WorkItemType], [System.State] FROM WorkItems WHERE [System.Title] CONTAINS '{query}' ORDER BY [System.CreatedDate] DESC" ); let body = serde_json::json!({ "query": wiql }); diff --git a/src-tauri/src/integrations/confluence.rs b/src-tauri/src/integrations/confluence.rs index 994f3484..7634f141 100644 --- a/src-tauri/src/integrations/confluence.rs +++ b/src-tauri/src/integrations/confluence.rs @@ -106,7 +106,7 @@ pub async fn search_pages( config.base_url.trim_end_matches('/') ); - let mut cql = format!("text ~ \"{}\"", query); + let mut cql = format!("text ~ \"{query}\""); if let Some(space) = space_key { cql = format!("{cql} AND space = {space}"); }