ci: run test workflow only on pull requests
All checks were successful
Test / wiki-sync (pull_request) Has been skipped
Test / frontend-typecheck (pull_request) Successful in 2m3s
Test / frontend-tests (pull_request) Successful in 2m1s
Test / rust-fmt-check (pull_request) Successful in 5m1s
Test / rust-clippy (pull_request) Successful in 21m49s
Test / rust-tests (pull_request) Successful in 23m14s
All checks were successful
Test / wiki-sync (pull_request) Has been skipped
Test / frontend-typecheck (pull_request) Successful in 2m3s
Test / frontend-tests (pull_request) Successful in 2m1s
Test / rust-fmt-check (pull_request) Successful in 5m1s
Test / rust-clippy (pull_request) Successful in 21m49s
Test / rust-tests (pull_request) Successful in 23m14s
Avoid duplicate Test workflow executions by removing push triggers and keeping pull_request validation as the single gate. Also fix remaining clippy format string violations in integration modules to keep rust-clippy passing. Made-with: Cursor
This commit is contained in:
parent
ff217c622b
commit
de432e0bf1
@ -1,9 +1,6 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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,
|
||||
})
|
||||
|
||||
@ -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 });
|
||||
|
||||
@ -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}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user