Skip to content

Commit 65297d7

Browse files
author
Philipp D
authored
Merge pull request #17 from w3f/fix-ack-bump-vers
Fix ack detection
2 parents 99d4323 + 1467594 commit 65297d7

File tree

5 files changed

+51
-34
lines changed

5 files changed

+51
-34
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ version: 2
33
jobs:
44
helmLint:
55
docker:
6-
- image: web3f/ci-commons:v2.4.6
6+
- image: web3f/ci-commons:v3.0.0
77
steps:
88
- checkout
99
- run:
1010
command: |
1111
helm lint ./charts/matrixbot-ack
1212
buildImage:
1313
docker:
14-
- image: web3f/ci-commons:v2.4.6
14+
- image: web3f/ci-commons:v3.0.0
1515
resource_class: xlarge
1616
steps:
1717
- checkout
@@ -23,7 +23,7 @@ jobs:
2323
/scripts/build-image.sh web3f/matrixbot-ack .
2424
publishImage:
2525
docker:
26-
- image: web3f/ci-commons:v2.4.6
26+
- image: web3f/ci-commons:v3.0.0
2727
steps:
2828
- checkout
2929
- setup_remote_docker
@@ -32,15 +32,15 @@ jobs:
3232
/scripts/publish-image.sh web3f/matrixbot-ack
3333
publishChart:
3434
docker:
35-
- image: web3f/ci-commons:v2.4.6
35+
- image: web3f/ci-commons:v3.0.0
3636
steps:
3737
- checkout
3838
- run:
3939
command: |
4040
/scripts/publish-chart.sh
4141
integrationTests:
4242
docker:
43-
- image: web3f/ci-commons:v2.4.6
43+
- image: web3f/ci-commons:v3.0.0
4444
steps:
4545
- checkout
4646
- setup_remote_docker

Cargo.lock

Lines changed: 43 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/matrixbot-ack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: Matrixbot Ack
22
name: matrixbot-ack
3-
version: v0.2.6
3+
version: v0.2.7
44
apiVersion: v2

charts/matrixbot-ack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ environment: production
22

33
image:
44
repository: web3f/matrixbot-ack
5-
tag: v0.2.6
5+
tag: v0.2.7
66
pullPolicy: IfNotPresent
77

88
config:

src/matrix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl EventHandler for Listener {
287287
"pending" => Command::Pending,
288288
"help" => Command::Help,
289289
txt @ _ => {
290-
if txt.starts_with("ack") || txt.starts_with("acknowledge") {
290+
if txt.to_lowercase().starts_with("ack") || txt.to_lowercase().starts_with("acknowledge") {
291291
let parts: Vec<&str> = txt.split(" ").collect();
292292
if parts.len() == 2 {
293293
if let Ok(id) = AlertId::from_str(parts[1]) {

0 commit comments

Comments
 (0)