commit: 60ce5fec404770c2dbc58352808397f7e9b87c93
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 28 11:31:07 2022 +0000
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
CommitDate: Thu Jul 28 11:31:07 2022 +0000
URL:
https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=60ce5fec
Add support for gitlab/github project name in project db
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org>
buildbot_gentoo_ci/db/model.py | 2 ++
buildbot_gentoo_ci/db/projects.py | 1 +
2 files changed, 3 insertions(+)
diff --git a/buildbot_gentoo_ci/db/model.py b/buildbot_gentoo_ci/db/model.py
index d6e9860..be305f2 100644
--- a/buildbot_gentoo_ci/db/model.py
+++ b/buildbot_gentoo_ci/db/model.py
@@ -109,6 +109,8 @@ class Model(base.DBConnectorComponent):
default=lambda: str(uuid.uuid4())),
# project's name
sa.Column('name', sa.String(255), nullable=False),
+ # project name on gitlab/github
+ sa.Column('git_project_name', sa.String(255), nullable=False),
# description of the project
sa.Column('description', sa.Text, nullable=True),
sa.Column('profile', sa.String(255), nullable=False),
diff --git a/buildbot_gentoo_ci/db/projects.py
b/buildbot_gentoo_ci/db/projects.py
index 936cd9d..8e2cd6f 100644
--- a/buildbot_gentoo_ci/db/projects.py
+++ b/buildbot_gentoo_ci/db/projects.py
@@ -216,6 +216,7 @@ class ProjectsConnectorComponent(base.DBConnectorComponent):
return dict(
uuid=row.uuid,
name=row.name,
+ git_project_name=row.git_project_name,
description=row.description,
profile=row.profile,
profile_repository_uuid=row.profile_repository_uuid,