The command parser now correctly supports escaped newlines ('\n')
Example:
# comments supported
sh ./shell1.sh # end of line supported
sh ./shell2.sh
# escaped newlines supported
curl --header 'Content-Type: application/json' \
--request POST \ # end of line after escaped newline
--data '{"key": "value"}' \
https://destination.com
# print done
echo done
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/moghtech/komodo/pull/127
**Author:** [@mbecker20](https://github.com/mbecker20)
**Created:** 10/14/2024
**Status:** ✅ Merged
**Merged:** 10/15/2024
**Merged by:** [@mbecker20](https://github.com/mbecker20)
**Base:** `main` ← **Head:** `1.15.9`
---
### 📝 Commits (10+)
- [`3241665`](https://github.com/moghtech/komodo/commit/324166513290c161b24c8fae22fbf4ece627f57b) add close alert threshold to prevent Ok - Warning back and forth
- [`d444efa`](https://github.com/moghtech/komodo/commit/d444efa455589e80f4790166039f68e72afc78c3) remove part about repo being deleted, no longer behavior
- [`199d699`](https://github.com/moghtech/komodo/commit/199d699afb2f11cd30103987e9c5c3af76ff5dd8) resource sync share general common
- [`bf1a80b`](https://github.com/moghtech/komodo/commit/bf1a80b0ffb9b7da7e8500ebbe06f78c218bec3b) remove this changelog. use releases
- [`1660fd0`](https://github.com/moghtech/komodo/commit/1660fd0674bebd12a9a79fb21e9cd0aa4941a50d) remove changelog from readme
- [`354fb4a`](https://github.com/moghtech/komodo/commit/354fb4ac8e43441456cfb073030535c448b1f307) write commit file clean up path
- [`d4e4aa0`](https://github.com/moghtech/komodo/commit/d4e4aa0b589f922cae0fd0ff1a710d66a857e35b) docs: supports any git provider repo
- [`fa840b2`](https://github.com/moghtech/komodo/commit/fa840b2c62dcb73492bd6883e41ac124b8fc551e) fix docs: authorization
- [`11c4e43`](https://github.com/moghtech/komodo/commit/11c4e43f4237376813b6b1bc4db5dff6ae3be330) multiline command supports escaped newlines
- [`8924024`](https://github.com/moghtech/komodo/commit/89240247cf8c399f409e2c0ea4ce01720badbfb2) move webhook to build config advanced
### 📊 Changes
**151 files changed** (+800 additions, -1393 deletions)
<details>
<summary>View changed files</summary>
📝 `Cargo.lock` (+12 -25)
📝 `Cargo.toml` (+9 -3)
📝 `bin/core/alpine.Dockerfile` (+1 -1)
📝 `bin/core/debian.Dockerfile` (+1 -1)
📝 `bin/core/src/listener/github/build.rs` (+19 -9)
📝 `bin/core/src/listener/github/mod.rs` (+27 -12)
📝 `bin/core/src/listener/github/procedure.rs` (+23 -13)
📝 `bin/core/src/listener/github/repo.rs` (+25 -27)
📝 `bin/core/src/listener/github/stack.rs` (+22 -18)
📝 `bin/core/src/listener/github/sync.rs` (+22 -18)
📝 `bin/core/src/monitor/alert/mod.rs` (+5 -8)
📝 `bin/core/src/monitor/alert/server.rs` (+60 -44)
📝 `bin/core/src/monitor/helpers.rs` (+25 -11)
➖ `bin/migrator/Cargo.toml` (+0 -23)
➖ `bin/migrator/Dockerfile` (+0 -16)
➖ `bin/migrator/README.md` (+0 -25)
➖ `bin/migrator/src/legacy/mod.rs` (+0 -2)
➖ `bin/migrator/src/legacy/v1_11/build.rs` (+0 -261)
➖ `bin/migrator/src/legacy/v1_11/deployment.rs` (+0 -168)
➖ `bin/migrator/src/legacy/v1_11/mod.rs` (+0 -48)
_...and 80 more files_
</details>
### 📄 Description
- **Alerter**:
- Fixes system alert going back and forth between OK and WARNING by adding an alert close threshold
- Fix unrecognized path have 404 page
- Publish Typescript Client: https://www.npmjs.com/package/komodo_client
- **Commands** (Stack "Pre Deploy", Build "Pre Build", Repo "On Clone / Pull")
- The command parser now correctly supports escaped newlines ('\\n')
- Example:
```
# comments supported
sh ./shell1.sh # end of line supported
sh ./shell2.sh
# escaped newlines supported
curl --header 'Content-Type: application/json' \
--request POST \ # end of line after escaped newline
--data '{"key": "value"}' \
https://destination.com
# print done
echo done
```
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/127
Author: @mbecker20
Created: 10/14/2024
Status: ✅ Merged
Merged: 10/15/2024
Merged by: @mbecker20
Base:
main← Head:1.15.9📝 Commits (10+)
3241665add close alert threshold to prevent Ok - Warning back and forthd444efaremove part about repo being deleted, no longer behavior199d699resource sync share general commonbf1a80bremove this changelog. use releases1660fd0remove changelog from readme354fb4awrite commit file clean up pathd4e4aa0docs: supports any git provider repofa840b2fix docs: authorization11c4e43multiline command supports escaped newlines8924024move webhook to build config advanced📊 Changes
151 files changed (+800 additions, -1393 deletions)
View changed files
📝
Cargo.lock(+12 -25)📝
Cargo.toml(+9 -3)📝
bin/core/alpine.Dockerfile(+1 -1)📝
bin/core/debian.Dockerfile(+1 -1)📝
bin/core/src/listener/github/build.rs(+19 -9)📝
bin/core/src/listener/github/mod.rs(+27 -12)📝
bin/core/src/listener/github/procedure.rs(+23 -13)📝
bin/core/src/listener/github/repo.rs(+25 -27)📝
bin/core/src/listener/github/stack.rs(+22 -18)📝
bin/core/src/listener/github/sync.rs(+22 -18)📝
bin/core/src/monitor/alert/mod.rs(+5 -8)📝
bin/core/src/monitor/alert/server.rs(+60 -44)📝
bin/core/src/monitor/helpers.rs(+25 -11)➖
bin/migrator/Cargo.toml(+0 -23)➖
bin/migrator/Dockerfile(+0 -16)➖
bin/migrator/README.md(+0 -25)➖
bin/migrator/src/legacy/mod.rs(+0 -2)➖
bin/migrator/src/legacy/v1_11/build.rs(+0 -261)➖
bin/migrator/src/legacy/v1_11/deployment.rs(+0 -168)➖
bin/migrator/src/legacy/v1_11/mod.rs(+0 -48)...and 80 more files
📄 Description
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.