From 58637d813d9d096bc66be26b6974f1e512c8389b Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 17 Nov 2025 11:46:55 +0100 Subject: [PATCH 1/3] models/version: Add GitLab support to `trustpubPublisher` property --- app/models/version.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/version.js b/app/models/version.js index 6d57a367f7e..978584b669c 100644 --- a/app/models/version.js +++ b/app/models/version.js @@ -55,7 +55,11 @@ export default class Version extends Model { * @type {string | null} */ get trustpubPublisher() { - return this.trustpub_data?.provider === 'github' ? 'GitHub' : null; + return this.trustpub_data?.provider === 'github' + ? 'GitHub' + : this.trustpub_data?.provider === 'gitlab' + ? 'GitLab' + : null; } /** From 2da8c6b6efe9f58027e67c9b3762adb24529dc21 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 17 Nov 2025 11:49:27 +0100 Subject: [PATCH 2/3] models/version: Add GitLab support to `trustpubUrl` property --- app/models/version.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/version.js b/app/models/version.js index 978584b669c..29ca11b2177 100644 --- a/app/models/version.js +++ b/app/models/version.js @@ -69,7 +69,9 @@ export default class Version extends Model { get trustpubUrl() { return this.trustpub_data?.provider === 'github' ? `https://github.com/${this.trustpub_data.repository}/actions/runs/${this.trustpub_data.run_id}` - : null; + : this.trustpub_data?.provider === 'gitlab' + ? `https://gitlab.com/${this.trustpub_data.project_path}/-/jobs/${this.trustpub_data.job_id}` + : null; } @belongsTo('crate', { async: false, inverse: 'versions' }) crate; From dd8528d51f87f4fb35cedd2f0f46a81d5e97a641 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 17 Nov 2025 11:56:32 +0100 Subject: [PATCH 3/3] version-list/row: Add GitLab icon --- app/components/version-list/row.gjs | 4 ++++ public/assets/gitlab.svg | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 public/assets/gitlab.svg diff --git a/app/components/version-list/row.gjs b/app/components/version-list/row.gjs index 870681c2f7d..6b1c9f60258 100644 --- a/app/components/version-list/row.gjs +++ b/app/components/version-list/row.gjs @@ -135,12 +135,16 @@ export default class VersionRow extends Component { {{#if (eq @version.trustpub_data.provider 'github')}} {{svgJar 'github'}} + {{else if (eq @version.trustpub_data.provider 'gitlab')}} + {{svgJar 'gitlab'}} {{/if}} {{@version.trustpubPublisher}} {{else}} {{#if (eq @version.trustpub_data.provider 'github')}} {{svgJar 'github'}} + {{else if (eq @version.trustpub_data.provider 'gitlab')}} + {{svgJar 'gitlab'}} {{/if}} {{@version.trustpubPublisher}} {{/if}} diff --git a/public/assets/gitlab.svg b/public/assets/gitlab.svg new file mode 100644 index 00000000000..d8607014a45 --- /dev/null +++ b/public/assets/gitlab.svg @@ -0,0 +1,4 @@ + + + +