Skip to content

Commit 6b5ae75

Browse files
committed
1.0.2
- ensures the commitUrl is formed correctly
1 parent e8f10c1 commit 6b5ae75

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.2 (10/14/2017)
2+
3+
- ensures the commitUrl is formed correctly
4+
15
# 1.0.1 (10/14/2017)
26

37
- returns a unique set of repos correctly from `/api/repos`

dist/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+1-1
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lcov-server",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "🎯 A simple lcov server & cli parser",
55
"main": "index.js",
66
"homepage": "https://github.com/gabrielcsapo/lcov-server#readme",

src/coverage/coverage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Coverage extends React.Component {
8383
};
8484

8585
const { message, commit, branch, git_branch, author_name, author_date } = history[history.length - 1].git;
86-
const commitUrl = `${_id}/commit/${commit}`;
86+
const commitUrl = `${_id.replace('.git', '')}/commit/${commit}`;
8787

8888
function reduceBuilds(build) {
8989
let totalCoverage = build.source_files.map((f) => {

src/coverage/list-item.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Coverages extends React.Component {
6666
const { message, commit, branch, git_branch, author_name, author_date } = coverage.history[coverage.history.length - 1].git;
6767
const { resource, owner, name } = parse(_id);
6868
const protocol = resource.substring(resource.lastIndexOf('.') + 1, resource.length);
69-
const commitUrl = `${_id}/commit/${commit}`;
69+
const commitUrl = `${_id.replace('.git', '')}/commit/${commit}`;
7070

7171
return (
7272
<div className="coverage">

0 commit comments

Comments
 (0)