Skip to content

Commit 2ccf990

Browse files
authored
chore: print application version on startup (#601)
* chore: print application version on startup * chore: increment version
1 parent 5ff5e01 commit 2ccf990

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ Applicable spec: <link>
2828
- [ ] The documentation for charmhub is updated.
2929
- [ ] The PR is tagged with appropriate label (`urgent`, `trivial`, `complex`).
3030
- [ ] The changelog is updated with changes that affects the users of the charm.
31+
- [ ] The application version number is updated in `github-runner-manager/pyproject.toml`.
3132

3233
<!-- Explanation for any unchecked items above -->

github-runner-manager/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[project]
55
name = "github-runner-manager"
6-
version = "0.6.0"
6+
version = "0.6.1"
77
authors = [
88
{ name = "Canonical IS DevOps", email = "[email protected]" },
99
]

github-runner-manager/src/github_runner_manager/cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
"""The CLI entrypoint for github-runner-manager application."""
55

6+
import importlib.metadata
67
import logging
78
import sys
89
from functools import partial
@@ -17,6 +18,8 @@
1718
from github_runner_manager.reconcile_service import start_reconcile_service
1819
from github_runner_manager.thread_manager import ThreadManager
1920

21+
version = importlib.metadata.version("github-runner-manager")
22+
2023

2124
@click.command()
2225
@click.option(
@@ -75,6 +78,7 @@ def main(
7578
stream=sys.stderr,
7679
format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
7780
)
81+
logging.info("Starting GitHub runner manager service version: %s", version)
7882

7983
lock = Lock()
8084
config_str = config_file.read()

0 commit comments

Comments
 (0)