Skip to content

Commit e0705a6

Browse files
authored
Show merge, commit, and environment deploy times on the page (#26)
1 parent bfb5ec8 commit e0705a6

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ failed jobs of the picked tag, or of the newest tag before a pick, with the ones
130130
when the range was cut at `RELEASE_SCOPE_MAX_COMMITS`, and how many rows have no tag yet, with a `+` when the cut
131131
range holds no tag, so more untagged rows may lie below it. The failed jobs are those of the tag's pipeline and of
132132
the main pipeline of its commit; failures in other rows show only when the line is opened.
133-
Opening a line shows the service's environments, warnings, a link to create the next tag on the head when rows have no
134-
tag yet, merge requests that are not merged yet, and its rows with
135-
tags and their pipelines, merge requests or commits, Jira keys with their status, environments with the time each
136-
first ran the row, and failed jobs; rows
137-
out of scope are dimmed. Links, including the GitLab settings pages that warnings and errors point to, open in a new
133+
Opening a line shows the service's environments with when each was deployed, warnings, a link to create the next tag
134+
on the head when rows have no tag yet, merge requests that are not merged yet, and its rows with tags and their
135+
pipelines, merge requests or commits with when they were merged or committed, Jira keys with their status,
136+
environments with the time each first ran the row, and failed jobs; rows out of scope are dimmed.
137+
Links, including the GitLab settings pages that warnings and errors point to, open in a new
138138
tab. Each tag has a **pick** button: picking it highlights the rows it ships and closes the line again. A `--jira`
139139
report starts with each service's release tag picked. Services with neither a production deployment nor rows are left
140140
out of the page.

‎release_scope/_static/index.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ <h2 x-text="t('services')"></h2>
141141
<p>
142142
<a :href="service.project_url" x-text="service.project"></a>
143143
<template x-for="item in service.environments" :key="item.name">
144-
<span> · <span x-text="item.name"></span> <a :href="item.deployment_url" x-text="item.ref"></a></span>
144+
<span> · <span x-text="item.name"></span> <a :href="item.deployment_url" x-text="item.ref"></a>
145+
<span class="muted" :title="item.deployed_at" x-text="formatTime(item.deployed_at)"></span></span>
145146
</template>
146147
</p>
147148
<p x-show="service.error" class="bad message"><template x-for="(part, index) in messageParts(service.error)" :key="index"><span><template x-if="part.url"><a :href="part.url" x-text="part.text"></a></template><template x-if="!part.url"><span x-text="part.text"></span></template></span></template></p>
@@ -187,12 +188,14 @@ <h2 x-text="t('services')"></h2>
187188
<div>
188189
<a :href="item.url" x-text="'!' + item.iid"></a>
189190
<span x-text="item.title + (item.author ? ' · @' + item.author : '')"></span>
191+
<span x-show="item.merged_at" class="muted" :title="item.merged_at" x-text="item.merged_at && formatTime(item.merged_at)"></span>
190192
</div>
191193
</template>
192194
<template x-for="item in row.merge_requests.length ? [] : row.commits" :key="item.sha">
193195
<div>
194196
<a :href="item.url"><code x-text="item.short_sha"></code></a>
195197
<span x-text="item.title + (item.author ? ' · ' + item.author : '')"></span>
198+
<span class="muted" :title="item.committed_at" x-text="formatTime(item.committed_at)"></span>
196199
</div>
197200
</template>
198201
<span x-show="!row.in_scope" class="muted" x-text="t('outOfScope')"></span>

0 commit comments

Comments
 (0)