From 39b322ecd3d5013e987e8d260bf9f5c5b9bca86d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 7 Jul 2025 18:48:46 +0200 Subject: [PATCH 1/2] crate/settings: Add links to "Repository" and "Workflow" values --- app/templates/crate/settings/index.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/crate/settings/index.hbs b/app/templates/crate/settings/index.hbs index 1e797bfa3fc..a495b704fb5 100644 --- a/app/templates/crate/settings/index.hbs +++ b/app/templates/crate/settings/index.hbs @@ -81,8 +81,8 @@ GitHub - Repository: {{config.repository_owner}}/{{config.repository_name}}
- Workflow: {{config.workflow_filename}}
+ Repository: {{config.repository_owner}}/{{config.repository_name}}
+ Workflow: {{config.workflow_filename}}
{{#if config.environment}} Environment: {{config.environment}} {{/if}} From 92b77277a64ed77da1828cba6735ffd6a61f7473 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 7 Jul 2025 18:59:11 +0200 Subject: [PATCH 2/2] crate/settings: Add links to "Workflow filename" help text --- .../crate/settings/new-trusted-publisher.js | 6 ++++++ .../crate/settings/new-trusted-publisher.hbs | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app/controllers/crate/settings/new-trusted-publisher.js b/app/controllers/crate/settings/new-trusted-publisher.js index ff2eef1b3c1..2231c9b0534 100644 --- a/app/controllers/crate/settings/new-trusted-publisher.js +++ b/app/controllers/crate/settings/new-trusted-publisher.js @@ -27,6 +27,12 @@ export default class NewTrustedPublisherController extends Controller { return ['GitHub']; } + get repository() { + if (this.repositoryOwner && this.repositoryName) { + return `${this.repositoryOwner}/${this.repositoryName}`; + } + } + saveConfigTask = task(async () => { if (!this.validate()) return; diff --git a/app/templates/crate/settings/new-trusted-publisher.hbs b/app/templates/crate/settings/new-trusted-publisher.hbs index d6c993cc9d5..f90e212f02b 100644 --- a/app/templates/crate/settings/new-trusted-publisher.hbs +++ b/app/templates/crate/settings/new-trusted-publisher.hbs @@ -106,7 +106,18 @@ {{else}}
- The filename of the publishing workflow. This file should be present in the .github/workflows/ directory of the repository configured above. For example: release.yml or publish.yml. + The filename of the publishing workflow. This file should be present in the + + {{#if this.repository}} + .github/workflows/ + {{else}} + .github/workflows/ + {{/if}} + + directory of the + {{#if this.repository}}{{this.repository}} {{/if}} + repository{{unless this.repository " configured above"}}. + For example: release.yml or publish.yml.
{{/if}} {{/let}}