Skip to content

Commit

Permalink
Merge pull request #17 from w3f/fix-ack-bump-vers
Browse files Browse the repository at this point in the history
Fix ack detection
  • Loading branch information
Philipp D authored Apr 22, 2022
2 parents 99d4323 + 1467594 commit 65297d7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 34 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ version: 2
jobs:
helmLint:
docker:
- image: web3f/ci-commons:v2.4.6
- image: web3f/ci-commons:v3.0.0
steps:
- checkout
- run:
command: |
helm lint ./charts/matrixbot-ack
buildImage:
docker:
- image: web3f/ci-commons:v2.4.6
- image: web3f/ci-commons:v3.0.0
resource_class: xlarge
steps:
- checkout
Expand All @@ -23,7 +23,7 @@ jobs:
/scripts/build-image.sh web3f/matrixbot-ack .
publishImage:
docker:
- image: web3f/ci-commons:v2.4.6
- image: web3f/ci-commons:v3.0.0
steps:
- checkout
- setup_remote_docker
Expand All @@ -32,15 +32,15 @@ jobs:
/scripts/publish-image.sh web3f/matrixbot-ack
publishChart:
docker:
- image: web3f/ci-commons:v2.4.6
- image: web3f/ci-commons:v3.0.0
steps:
- checkout
- run:
command: |
/scripts/publish-chart.sh
integrationTests:
docker:
- image: web3f/ci-commons:v2.4.6
- image: web3f/ci-commons:v3.0.0
steps:
- checkout
- setup_remote_docker
Expand Down
69 changes: 43 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion charts/matrixbot-ack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Matrixbot Ack
name: matrixbot-ack
version: v0.2.6
version: v0.2.7
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/matrixbot-ack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ environment: production

image:
repository: web3f/matrixbot-ack
tag: v0.2.6
tag: v0.2.7
pullPolicy: IfNotPresent

config:
Expand Down
2 changes: 1 addition & 1 deletion src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl EventHandler for Listener {
"pending" => Command::Pending,
"help" => Command::Help,
txt @ _ => {
if txt.starts_with("ack") || txt.starts_with("acknowledge") {
if txt.to_lowercase().starts_with("ack") || txt.to_lowercase().starts_with("acknowledge") {
let parts: Vec<&str> = txt.split(" ").collect();
if parts.len() == 2 {
if let Ok(id) = AlertId::from_str(parts[1]) {
Expand Down

0 comments on commit 65297d7

Please sign in to comment.