Skip to content

Commit 95c87f9

Browse files
authored
Use git version as source of truth (#291)
* Use git version as source of truth * Change version.json to reflect actual git refs
1 parent b4ae2d9 commit 95c87f9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

jbi/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
from sentry_sdk.integrations.fastapi import FastApiIntegration
1313
from sentry_sdk.integrations.starlette import StarletteIntegration
1414

15-
from jbi.environment import get_settings
15+
from jbi.environment import get_settings, get_version
1616
from jbi.log import format_request_summary_fields
1717
from jbi.router import router
1818

1919
SRC_DIR = Path(__file__).parent
2020

2121
settings = get_settings()
22+
version_info = get_version()
2223

2324
sentry_sdk.init(
2425
dsn=settings.sentry_dsn,
@@ -33,7 +34,7 @@
3334
app = FastAPI(
3435
title="Jira Bugzilla Integration (JBI)",
3536
description="JBI v2 Platform",
36-
version="3.3.2",
37+
version=version_info["version"],
3738
debug=settings.app_debug,
3839
)
3940

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jira-bugzilla-integration"
3-
version = "3.3.2"
3+
version = "0"
44
description = "jira-bugzilla-integration"
55
authors = ["@mozilla/jbi-core"]
66
license = "MPL"

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commit": "HEAD",
3-
"version": null,
3+
"version": "v0.0.0",
44
"image_tag": null,
55
"source": "https://github.com/mozilla/jira-bugzilla-integration",
66
"build": null

0 commit comments

Comments
 (0)