Skip to content

Commit ee29843

Browse files
committed
Prepare v0.0.3 release
Updates the screeshot, and changes the default query to work with gitbase v0.11.0 Signed-off-by: Carlos Martín <[email protected]>
1 parent ae44538 commit ee29843

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/screenshot.png

34.5 KB
Loading

frontend/src/App.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ class App extends Component {
1212
constructor(props) {
1313
super(props);
1414
this.state = {
15-
sql: `SELECT COUNT(*) as num_commits, month, repo_id, committer_email FROM (
16-
SELECT MONTH(committer_when) as month, r.repository_id as repo_id, committer_email
15+
sql: `/* Contributor's number of commits, each month of 2018, for each repository */
16+
17+
SELECT COUNT(*) as num_commits, month, repo_id, committer_name FROM (
18+
SELECT MONTH(committer_when) as month, r.id as repo_id, committer_name
1719
FROM repositories r
18-
INNER JOIN refs ON refs.repository_id = r.repository_id AND refs.ref_name = 'HEAD'
19-
INNER JOIN commits c ON YEAR(committer_when) = 2018 AND history_idx(refs.commit_hash, c.commit_hash) >= 0
20+
INNER JOIN refs ON refs.repository_id = r.id AND refs.name = 'HEAD'
21+
INNER JOIN commits c ON YEAR(committer_when) = 2018 AND history_idx(refs.hash, c.hash) >= 0
2022
) as t
21-
GROUP BY committer_email, month, repo_id`,
23+
GROUP BY committer_name, month, repo_id`,
2224
results: new Map(),
2325
schema: undefined,
24-
2526
// modal
2627
showModal: false,
2728
modalTitle: null,

0 commit comments

Comments
 (0)