Skip to content

Commit 71fc564

Browse files
committed
more fixes
2 parents ec13059 + e7babb8 commit 71fc564

File tree

5 files changed

+255
-140
lines changed

5 files changed

+255
-140
lines changed

dev-requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
therapist==1.6.0 \
55
--hash=sha256:ba7bebe4df1ee7c78b420b5894824ce8150868eab8819e8a4a510feefc0e2884 \
66
--hash=sha256:e29c8c07676215093318e7b8aadc6c59784a1d9877eff77ffce20c9d63770a24
7-
black==18.9b0 \
8-
--hash=sha256:817243426042db1d36617910df579a54f1afd659adb96fc5032fcf4b36209739 \
9-
--hash=sha256:e030a9a28f542debc08acceb273f228ac422798e5215ba2a791a6ddeaaca22a5
10-
flake8==3.6.0 \
11-
--hash=sha256:c01f8a3963b3571a8e6bd7a4063359aff90749e160778e03817cd9b71c9e07d2 \
12-
--hash=sha256:6a35f5b8761f45c5513e3405f110a86bea57982c3b75b766ce7b65217abe1670
7+
black==19.3b0 \
8+
--hash=sha256:09a9dcb7c46ed496a9850b76e4e825d6049ecd38b611f1224857a79bd985a8cf \
9+
--hash=sha256:68950ffd4d9169716bcb8719a56c07a2f4485354fec061cdd5910aa07369731c
10+
flake8==3.7.7 \
11+
--hash=sha256:859996073f341f2670741b51ec1e67a01da142831aa1fdc6242dbf88dffbe661 \
12+
--hash=sha256:a796a115208f5c03b18f332f7c11729812c8c3ded6c46319c59b53efd3819da8

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"bootstrap": "4.3.1",
77
"classnames": "2.2.6",
88
"ky": "0.9.0",
9-
"react": "16.8.3",
10-
"react-dom": "16.8.3",
11-
"react-router-dom": "4.3.1",
12-
"react-scripts": "2.1.5",
9+
"react": "16.8.6",
10+
"react-dom": "16.8.6",
11+
"react-router-dom": "5.0.0",
12+
"react-scripts": "2.1.8",
1313
"react-timeago": "4.4.0",
1414
"reactstrap": "7.1.0"
1515
},
@@ -32,6 +32,6 @@
3232
],
3333
"devDependencies": {
3434
"prettier": "1.16.4",
35-
"source-map-explorer": "1.7.0"
35+
"source-map-explorer": "1.8.0"
3636
}
3737
}

requirements-constraints.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ toml==0.10.0 \
114114
attrs==18.2.0 \
115115
--hash=sha256:ca4be454458f9dec299268d472aaa5a11f67a4ff70093396e1ceae9c76cf4bbb \
116116
--hash=sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69
117-
pyflakes==2.0.0 \
118-
--hash=sha256:f661252913bc1dbe7fcfcbf0af0db3f42ab65aabd1a6ca68fe5d466bace94dae \
119-
--hash=sha256:9a7662ec724d0120012f6e29d6248ae3727d821bba522a0e6b356eff19126a49
117+
pyflakes==2.1.1 \
118+
--hash=sha256:17dbeb2e3f4d772725c777fabc446d5634d1038f234e77343108ce445ea69ce0 \
119+
--hash=sha256:d976835886f8c5b31d47970ed689944a0262b5f3afa00a5a7b4dc81e5449f8a2
120120
mccabe==0.6.1 \
121121
--hash=sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42 \
122122
--hash=sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f
123-
pycodestyle==2.4.0 \
124-
--hash=sha256:cbc619d09254895b0d12c2c691e237b2e91e9b2ecf5e84c26b35400f93dcfb83 \
125-
--hash=sha256:74abc4e221d393ea5ce1f129ea6903209940c1ecd29e002e8c6933c2b21026e0 \
126-
--hash=sha256:cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a
123+
pycodestyle==2.5.0 \
124+
--hash=sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56 \
125+
--hash=sha256:e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c
126+
entrypoints==0.3 \
127+
--hash=sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19 \
128+
--hash=sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451

src/DeployPage.js

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import { EllipsisLoading } from './Common';
1111

1212
const BORS_LOGIN = 'bors[bot]';
1313

14+
function makeTagAbsoluteUrl(owner, repo, tag) {
15+
return `https://github.com/${owner}/${repo}/releases/tag/${encodeURIComponent(
16+
tag
17+
)}`;
18+
}
19+
1420
class DeployPage extends React.Component {
1521
static propsTypes = {
1622
shortCode: PropTypes.string.isRequired
@@ -183,6 +189,8 @@ class DeployPage extends React.Component {
183189
commits={commits}
184190
tags={tags}
185191
code={code}
192+
owner={owner}
193+
repo={repo}
186194
/>
187195
<RepoSummary
188196
deployInfo={deployInfo}
@@ -207,7 +215,9 @@ class DeployTable extends React.Component {
207215
).isRequired,
208216
commits: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
209217
tags: PropTypes.object.isRequired,
210-
code: PropTypes.string.isRequired
218+
code: PropTypes.string.isRequired,
219+
owner: PropTypes.string.isRequired,
220+
repo: PropTypes.string.isRequired
211221
};
212222
static prefBorsModeCacheKey = 'pref-bors-mode';
213223

@@ -241,8 +251,9 @@ class DeployTable extends React.Component {
241251
};
242252

243253
render() {
244-
const { deployInfo, commits, tags, code } = this.props;
254+
const { deployInfo, commits, tags, owner, repo, code } = this.props;
245255
const shortUrl = `/s/${code}`;
256+
246257
const { borsMode } = this.state;
247258

248259
let hasBors = false;
@@ -285,6 +296,8 @@ class DeployTable extends React.Component {
285296
tag={tags[commit.sha]}
286297
users={usersByLogin}
287298
borsMode={borsMode}
299+
owner={owner}
300+
repo={repo}
288301
/>
289302
{deployInfo.map(deploy => (
290303
<td
@@ -358,6 +371,8 @@ class CommitDetails extends React.Component {
358371
html_url: PropTypes.string.isRequired
359372
}),
360373
html_url: PropTypes.string.isRequired,
374+
owner: PropTypes.string.isRequired,
375+
repo: PropTypes.string.isRequired,
361376
tag: PropTypes.any
362377
};
363378

@@ -403,7 +418,7 @@ class CommitDetails extends React.Component {
403418
}
404419

405420
render() {
406-
let { commit, author, tag, html_url, borsMode } = this.props;
421+
let { commit, author, tag, html_url, borsMode, owner, repo } = this.props;
407422

408423
let involvedUsers = [author];
409424

@@ -427,9 +442,13 @@ class CommitDetails extends React.Component {
427442
{title}
428443
</a>
429444
{tag && (
430-
<span className="badge badge-pill badge-info" title={`Tag: ${tag}`}>
445+
<a
446+
href={makeTagAbsoluteUrl(owner, repo, tag)}
447+
className="badge badge-pill badge-info"
448+
title={`Tag: ${tag}`}
449+
>
431450
{tag}
432-
</span>
451+
</a>
433452
)}
434453
{commit.date}
435454
<TimeAgo
@@ -468,6 +487,15 @@ function UserAvatars({ users }) {
468487
}
469488

470489
class RepoSummary extends React.Component {
490+
static propTypes = {
491+
deployInfo: PropTypes.arrayOf(
492+
PropTypes.shape({ name: PropTypes.string.isRequired })
493+
).isRequired,
494+
owner: PropTypes.string.isRequired,
495+
repo: PropTypes.string.isRequired,
496+
tags: PropTypes.object.isRequired
497+
};
498+
471499
render() {
472500
const { deployInfo, tags, owner, repo } = this.props;
473501

@@ -546,9 +574,13 @@ class ShaLink extends React.Component {
546574
{sha.slice(0, 7)}
547575
</a>
548576
{tag && (
549-
<span className="badge badge-pill badge-info" title={`Tag: ${tag}`}>
577+
<a
578+
href={makeTagAbsoluteUrl(owner, repo, tag)}
579+
className="badge badge-pill badge-info"
580+
title={`Tag: ${tag}`}
581+
>
550582
{tag}
551-
</span>
583+
</a>
552584
)}
553585
</>
554586
);

0 commit comments

Comments
 (0)