Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/trustpub-github-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions app/templates/crate/settings/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
.details {
font-size: 0.85em;
line-height: 1.5;

.owner-id {
color: var(--main-color-light);
}
}

.actions {
Expand Down
14 changes: 13 additions & 1 deletion app/templates/crate/settings/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';

<template>
Expand Down Expand Up @@ -132,7 +133,18 @@ import UserAvatar from 'crates-io/components/user-avatar';
href='https://github.com/{{config.repository_owner}}/{{config.repository_name}}'
target='_blank'
rel='noopener noreferrer'
>{{config.repository_owner}}/{{config.repository_name}}</a><br />
>{{config.repository_owner}}/{{config.repository_name}}</a>
<span class='owner-id'>
· Owner ID:
{{config.repository_owner_id}}
<Tooltip>
This is the owner ID for
<strong>{{config.repository_owner}}</strong>
from when this configuration was created. If
<strong>{{config.repository_owner}}</strong>
was recreated on GitHub, this configuration will need to be recreated as well.
</Tooltip>
</span><br />
<strong>Workflow:</strong>
<a
href='https://github.com/{{config.repository_owner}}/{{config.repository_name}}/blob/HEAD/.github/workflows/{{config.workflow_filename}}'
Expand Down
Loading