diff --git a/documentation.md b/documentation.md index 6a24e5b..f6c0b9e 100644 --- a/documentation.md +++ b/documentation.md @@ -23,9 +23,12 @@ ## features * command line - * create reports in various formats from time tracking data stored on GitLab + * create reports in various formats from time tracking data stored on GitLab (issues and merge requests) * monitor the time you spent on an issue or merge request locally and syncs the data to GitLab +### limitations + + Time tracking for other work items (e.g. tasks, epics) is currently not supported. See also https://github.com/ndu2/gitlab-time-tracker/issues/33 ## requirements @@ -617,7 +620,7 @@ freeLabels: - at no charge - free -# labels charing half price only +# labels charging half price only halfPriceLabels: - at half price - at half-price diff --git a/package-lock.json b/package-lock.json index 3d16ca1..11cca80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gitlab-time-tracker", - "version": "1.8.0-snapshot", + "version": "1.8.1-snapshot", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gitlab-time-tracker", - "version": "1.8.0-snapshot", + "version": "1.8.1-snapshot", "license": "GPL-2.0", "dependencies": { "@inquirer/select": "^4.2.3", diff --git a/package.json b/package.json index 2af31bf..4d015e2 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gitlab-time-tracker", - "version": "1.8.0-snapshot", + "version": "1.8.1", "type": "module", "description": "A command line interface for GitLabs time tracking feature.", "bugs": { diff --git a/readme.md b/readme.md index 870f0ae..8b5a4c9 100755 --- a/readme.md +++ b/readme.md @@ -31,6 +31,10 @@ By this time of writing: How to install and use gtt? You can find the documentation [here](documentation.md). +### limitations + +Time tracking for other work items (e.g. tasks, epics) is currently not supported. + ## license diff --git a/src/models/hasTimes.js b/src/models/hasTimes.js index dfd5c91..0bdedbe 100755 --- a/src/models/hasTimes.js +++ b/src/models/hasTimes.js @@ -4,9 +4,9 @@ import Base from './base.js'; import Time from './time.js'; import DayReport from './dayReport.js'; -const regex = /added (.*) of time spent(?: at (.*))?/i; -const subRegex = /subtracted (.*) of time spent(?: at (.*))?/i; -const delRegex = /deleted (.*) of spent time(?: from (.*))?/i; +const regex = /added (.*) of time spent(?: at ([0-9-]*))?/i; +const subRegex = /subtracted (.*) of time spent(?: at ([0-9-]*))?/i; +const delRegex = /deleted (.*) of spent time(?: from ([0-9-]*))?/i; const removeRegex = /Removed time spent/i; /** diff --git a/src/version.js b/src/version.js index 95ab9d8..f2915e1 100644 --- a/src/version.js +++ b/src/version.js @@ -1 +1 @@ -let version = '1.8.0-snapshot'; export default version; +let version = '1.8.1'; export default version;