2 Commits

Author SHA1 Message Date
2e05969295 Updates for release
Some checks failed
CI / CI (push) Failing after 2m18s
Release / Publish to crates.io (push) Successful in 4m0s
Release / Publish to Docker Hub (push) Failing after 13s
2023-09-20 18:18:46 -07:00
be9f117047 Use iid field (and not id) field for the correct issue ID
Some checks failed
CI / CI (push) Failing after 2m25s
2023-09-20 18:17:54 -07:00
5 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ jobs:
name: CI
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v3
- uses: actions/checkout@v3
- uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: stable

View File

@ -8,7 +8,7 @@ jobs:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v3
- uses: actions/checkout@v2
- uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: stable
@ -19,7 +19,7 @@ jobs:
name: Publish to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v3
- uses: actions/checkout@v2
- name: docker meta
id: meta
uses: https://github.com/docker/metadata-action@v4
@ -30,13 +30,13 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- uses: https://gitea.com/docker/setup-qemu-action@v2
- uses: https://gitea.com/docker/setup-buildx-action@v2
- uses: https://gitea.com/docker/login-action@v2
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: https://gitea.com/docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
- uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true

2
Cargo.lock generated
View File

@ -152,7 +152,7 @@ checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
[[package]]
name = "bebot"
version = "0.1.2"
version = "0.1.1"
dependencies = [
"anyhow",
"constant_time_eq",

View File

@ -1,6 +1,6 @@
[package]
name = "bebot"
version = "0.1.2"
version = "0.1.1"
description = "Gitlab webhook bot that publishes events to Matrix"
license = "GPL-3.0"
authors = [

View File

@ -587,7 +587,7 @@ mod test {
..
} => {
assert_eq!(user.name, "Administrator");
assert_eq!(object_attributes.iid, 23);
assert_eq!(object_attributes.id, 301);
assert_eq!(object_attributes.action, IssueAction::Open);
}
_ => panic!("not an issue event"),