Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
- ensures the commitUrl is formed correctly
  • Loading branch information
gabrielcsapo committed Oct 15, 2017
1 parent e8f10c1 commit 6b5ae75
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.2 (10/14/2017)

- ensures the commitUrl is formed correctly

# 1.0.1 (10/14/2017)

- returns a unique set of repos correctly from `/api/repos`
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lcov-server",
"version": "1.0.1",
"version": "1.0.2",
"description": "🎯 A simple lcov server & cli parser",
"main": "index.js",
"homepage": "https://github.com/gabrielcsapo/lcov-server#readme",
Expand Down
2 changes: 1 addition & 1 deletion src/coverage/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Coverage extends React.Component {
};

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

function reduceBuilds(build) {
let totalCoverage = build.source_files.map((f) => {
Expand Down
2 changes: 1 addition & 1 deletion src/coverage/list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Coverages extends React.Component {
const { message, commit, branch, git_branch, author_name, author_date } = coverage.history[coverage.history.length - 1].git;
const { resource, owner, name } = parse(_id);
const protocol = resource.substring(resource.lastIndexOf('.') + 1, resource.length);
const commitUrl = `${_id}/commit/${commit}`;
const commitUrl = `${_id.replace('.git', '')}/commit/${commit}`;

return (
<div className="coverage">
Expand Down

0 comments on commit 6b5ae75

Please sign in to comment.