diff options
author | 2022-07-28 13:31:07 +0200 | |
---|---|---|
committer | 2022-07-28 13:31:07 +0200 | |
commit | 60ce5fec404770c2dbc58352808397f7e9b87c93 (patch) | |
tree | 8c3ea4207f816fd0626a6d355e026866bec2a22f | |
parent | Move UpdateRepos to repos.py and support gitlab stage (diff) | |
download | tinderbox-cluster-60ce5fec404770c2dbc58352808397f7e9b87c93.tar.gz tinderbox-cluster-60ce5fec404770c2dbc58352808397f7e9b87c93.tar.bz2 tinderbox-cluster-60ce5fec404770c2dbc58352808397f7e9b87c93.zip |
Add support for gitlab/github project name in project db
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
-rw-r--r-- | buildbot_gentoo_ci/db/model.py | 2 | ||||
-rw-r--r-- | buildbot_gentoo_ci/db/projects.py | 1 |
2 files changed, 3 insertions, 0 deletions
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, |