Skip to content

Commit

Permalink
add badges to README.md (#128)
Browse files Browse the repository at this point in the history
* add badges to README.md

* add discourse link to its badge

* improve discourse badge

* make tox version change into a oneliner
  • Loading branch information
lucabello authored Feb 7, 2023
1 parent 88941fc commit 1a0e367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Alertmanager Operator (k8s)
[![Alertmanager](https://charmhub.io/alertmanager-k8s/badge.svg)](https://charmhub.io/alertmanager-k8s)
[![Test Suite](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml)
![Discourse status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.charmhub.io&style=flat)
[![Charmhub Badge](https://charmhub.io/alertmanager-k8s/badge.svg)](https://charmhub.io/alertmanager-k8s)
[![Release Edge](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml)
[![Release Libraries](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-libs.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-libs.yaml)
[![Discourse Status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.charmhub.io&style=flat&label=CharmHub%20Discourse)](https://discourse.charmhub.io)

[Charmed Alertmanager (alertmanager-k8s)][Alertmanager operator] is a charm for
[Alertmanager].
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ deps =
commands =
charm: mypy {[vars]src_path} {posargs}
lib: mypy --python-version 3.5 {[vars]lib_path} {posargs}
lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do \
lib: if ! git diff $m | grep -q "+LIBPATCH\|+LIBAPI"; then \
lib: echo "You forgot to bump the version on $m!"; exit 1; \
lib: fi; done'
lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do if ! git diff main $m | grep -q "+LIBPATCH\|+LIBAPI"; then echo "You forgot to bump the version on $m!"; exit 1; fi; done'
unit: mypy {[vars]tst_path}/unit {posargs}
integration: mypy {[vars]tst_path}/integration {posargs}
allowlist_externals = /usr/bin/env
Expand Down

0 comments on commit 1a0e367

Please sign in to comment.