Compare commits
3 Commits
2e05969295
...
v0.1.2
Author | SHA1 | Date | |
---|---|---|---|
10f22956b6 | |||
89e37e2258 | |||
3f42a08bcb |
@ -9,7 +9,7 @@ jobs:
|
|||||||
name: CI
|
name: CI
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: https://gitea.com/actions/checkout@v3
|
||||||
- uses: https://github.com/actions-rs/toolchain@v1
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
@ -8,7 +8,7 @@ jobs:
|
|||||||
name: Publish to crates.io
|
name: Publish to crates.io
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: https://gitea.com/actions/checkout@v3
|
||||||
- uses: https://github.com/actions-rs/toolchain@v1
|
- uses: https://github.com/actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
@ -19,7 +19,7 @@ jobs:
|
|||||||
name: Publish to Docker Hub
|
name: Publish to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: https://gitea.com/actions/checkout@v3
|
||||||
- name: docker meta
|
- name: docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: https://github.com/docker/metadata-action@v4
|
uses: https://github.com/docker/metadata-action@v4
|
||||||
@ -30,13 +30,13 @@ jobs:
|
|||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: https://gitea.com/docker/setup-qemu-action@v2
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: https://gitea.com/docker/setup-buildx-action@v2
|
||||||
- uses: docker/login-action@v3
|
- uses: https://gitea.com/docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
- uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
- uses: https://gitea.com/docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -152,7 +152,7 @@ checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bebot"
|
name = "bebot"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"constant_time_eq",
|
"constant_time_eq",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "bebot"
|
name = "bebot"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "Gitlab webhook bot that publishes events to Matrix"
|
description = "Gitlab webhook bot that publishes events to Matrix"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = [
|
authors = [
|
||||||
|
@ -587,7 +587,7 @@ mod test {
|
|||||||
..
|
..
|
||||||
} => {
|
} => {
|
||||||
assert_eq!(user.name, "Administrator");
|
assert_eq!(user.name, "Administrator");
|
||||||
assert_eq!(object_attributes.id, 301);
|
assert_eq!(object_attributes.iid, 23);
|
||||||
assert_eq!(object_attributes.action, IssueAction::Open);
|
assert_eq!(object_attributes.action, IssueAction::Open);
|
||||||
}
|
}
|
||||||
_ => panic!("not an issue event"),
|
_ => panic!("not an issue event"),
|
||||||
|
Reference in New Issue
Block a user