* add close alert threshold to prevent Ok - Warning back and forth

* remove part about repo being deleted, no longer behavior

* resource sync share general common

* remove this changelog. use releases

* remove changelog from readme

* write commit file clean up path

* docs: supports any git provider repo

* fix docs: authorization

* multiline command supports escaped newlines

* move webhook to build config advanced

* parser comments with escaped newline

* improve parser

* save use Enter. escape monaco using escape

* improve logic when deployment / stack action buttons shown

* used_mem = total - available

* Fix unrecognized path have 404

* webhooks will 404 if misconfigured

* move update logger / alerter

* delete migrator

* update examples

* publish typescript client komodo_client
This commit is contained in:
Maxwell Becker
2024-10-15 02:04:49 -04:00
committed by GitHub
parent dfafadf57b
commit 41d1ff9760
151 changed files with 801 additions and 1394 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
use std::path::Path;
use std::path::{Path, PathBuf};
use anyhow::Context;
use command::run_komodo_command;
@@ -18,7 +18,8 @@ pub async fn write_commit_file(
file: &Path,
contents: &str,
) -> anyhow::Result<GitRes> {
let path = repo_dir.join(file);
// Clean up the path by stripping any redundant `/./`
let path = repo_dir.join(file).components().collect::<PathBuf>();
if let Some(parent) = path.parent() {
let _ = fs::create_dir_all(&parent).await;