From 56ec2ff34275bf66eaf2cbb93dd8ccbab764328d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Tue, 7 Oct 2025 14:54:31 +0200 Subject: [PATCH] crate/settings: Display GitHub owner ID for trusted publishers This change shows the repository owner ID next to the repository name in the trusted publisher list. This helps users debug configuration issues when GitHub accounts are recreated with the same name. The owner ID appears in muted text with a tooltip explaining its purpose and when the configuration may need to be recreated. --- app/models/trustpub-github-config.js | 1 + app/templates/crate/settings/index.css | 4 ++++ app/templates/crate/settings/index.gjs | 14 +++++++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/models/trustpub-github-config.js b/app/models/trustpub-github-config.js index 296a9567e81..f1b15f5279f 100644 --- a/app/models/trustpub-github-config.js +++ b/app/models/trustpub-github-config.js @@ -3,6 +3,7 @@ import Model, { attr, belongsTo } from '@ember-data/model'; export default class TrustpubGitHubConfig extends Model { @belongsTo('crate', { async: true, inverse: null }) crate; @attr repository_owner; + @attr repository_owner_id; @attr repository_name; @attr workflow_filename; @attr environment; diff --git a/app/templates/crate/settings/index.css b/app/templates/crate/settings/index.css index 94361346840..817498307b0 100644 --- a/app/templates/crate/settings/index.css +++ b/app/templates/crate/settings/index.css @@ -67,6 +67,10 @@ .details { font-size: 0.85em; line-height: 1.5; + + .owner-id { + color: var(--main-color-light); + } } .actions { diff --git a/app/templates/crate/settings/index.gjs b/app/templates/crate/settings/index.gjs index 50352952ff2..e14a078abe1 100644 --- a/app/templates/crate/settings/index.gjs +++ b/app/templates/crate/settings/index.gjs @@ -8,6 +8,7 @@ import pageTitle from 'ember-page-title/helpers/page-title'; import not from 'ember-truth-helpers/helpers/not'; import CrateHeader from 'crates-io/components/crate-header'; +import Tooltip from 'crates-io/components/tooltip'; import UserAvatar from 'crates-io/components/user-avatar';