Skip to content

Commit 47ffe6d

Browse files
committed
Fix bug in sync process when frames are empty
1 parent d4bcdf5 commit 47ffe6d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

gtt-sync.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ frames.filter(frame => {
4343
return !(Math.ceil(frame.duration) === _.reduce(frame.notes, (n, m) => (n + m.time), 0));
4444
});
4545

46+
if(frames.length === 0) process.exit(0);
47+
4648
Cli.bar(`${Cli.process} Syncing time records...`, frames.length);
4749

4850
frames.forEach((frame, done) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"read-yaml": "^1.1.0",
3131
"underscore": "^1.8.3"
3232
}
33-
}
33+
}

readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
> A command line interface that makes working with GitLabs time tracking feature more enjoyable.
77
8+
gtt monitors the time you spent on an issue or merge request locally and syncs it to GitLab.
9+
It also allows you to create time tracking reports in various formats from time tracking data
10+
stored on GitLab.
11+
812
![preview](https://raw.githubusercontent.com/kriskbx/gitlab-time-tracker/master/preview.gif)
913

1014
### requirements
@@ -49,6 +53,8 @@ gtt edit
4953

5054
#### time tracking
5155

56+
57+
5258
Time tracking enables you to track and monitor your time locally. When you're done,
5359
you can sync time records to GitLab and create "time spent comments" automatically.
5460

0 commit comments

Comments
 (0)