Style: Automatische Formatierung & Clippy-Fixes
Testing Build, Publish & Preview Release / Build, Publish Packages (Testing) & Create Preview Release (push) Skipped
TruffleHog Secret Scan / TruffleHog (push) Successful in 18s
Security Scans / Trivy & OSV-Scanner (push) Successful in 29s
Code Quality (Auto-Format & Clippy-Fix) / Formatierung & Clippy automatisch beheben (push) Successful in 1m55s
Testing Build, Publish & Preview Release / Build, Publish Packages (Testing) & Create Preview Release (push) Skipped
TruffleHog Secret Scan / TruffleHog (push) Successful in 18s
Security Scans / Trivy & OSV-Scanner (push) Successful in 29s
Code Quality (Auto-Format & Clippy-Fix) / Formatierung & Clippy automatisch beheben (push) Successful in 1m55s
This commit is contained in:
+7
-6
@@ -227,12 +227,13 @@ pub async fn sync_single_repository(
|
|||||||
|
|
||||||
// Zuletzt synchronisierten Tag persistieren, wenn kein Dry-Run
|
// Zuletzt synchronisierten Tag persistieren, wenn kein Dry-Run
|
||||||
if !options.dry_run
|
if !options.dry_run
|
||||||
&& let Some(tag) = latest_synced_tag {
|
&& let Some(tag) = latest_synced_tag
|
||||||
let name_copy = repo_name.to_string();
|
{
|
||||||
let _ = modify_config(move |cfg| {
|
let name_copy = repo_name.to_string();
|
||||||
cfg.update_last_synced_tag(&name_copy, tag);
|
let _ = modify_config(move |cfg| {
|
||||||
});
|
cfg.update_last_synced_tag(&name_copy, tag);
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
|
||||||
report.repositories_processed += 1;
|
report.repositories_processed += 1;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
+4
-3
@@ -39,9 +39,10 @@ pub fn clean_repo_input(input: &str) -> &str {
|
|||||||
let mut trimmed = input.trim();
|
let mut trimmed = input.trim();
|
||||||
if ((trimmed.starts_with('"') && trimmed.ends_with('"'))
|
if ((trimmed.starts_with('"') && trimmed.ends_with('"'))
|
||||||
|| (trimmed.starts_with('\'') && trimmed.ends_with('\'')))
|
|| (trimmed.starts_with('\'') && trimmed.ends_with('\'')))
|
||||||
&& trimmed.len() >= 2 {
|
&& trimmed.len() >= 2
|
||||||
trimmed = trimmed[1..trimmed.len() - 1].trim();
|
{
|
||||||
}
|
trimmed = trimmed[1..trimmed.len() - 1].trim();
|
||||||
|
}
|
||||||
|
|
||||||
let without_query_or_fragment = match trimmed.find(['?', '#']) {
|
let without_query_or_fragment = match trimmed.find(['?', '#']) {
|
||||||
Some(idx) => &trimmed[..idx],
|
Some(idx) => &trimmed[..idx],
|
||||||
|
|||||||
Reference in New Issue
Block a user