Skip to content

Use Clockify API to retrieve timers and add them to corresponding Gitlab issues to track time spent on issues

Notifications You must be signed in to change notification settings

tchartron/clockitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clockitlab

Gets clockify timers depending on milestone dates and add them to corresponding gitlab issues

Pré-requis

  • PHP 7.3+
  • Composer
  • Gitlab Api token
  • Clockify Api token

Installation

git clone [email protected]:tchartron/clockitlab.git
cd clockitlab
cp .env.example .env
composer install
chmod u+x clockitlab

Utilisation

Add spent times

#PHP
./clockitlab -m "Sprint 20-14"
#DOCKER
docker container run --rm -v $(pwd):/clockitlab/ php:7.4-cli /bin/bash -c "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; cd clockitlab; /usr/local/bin/composer install; chmod u+x /clockitlab/clockitlab; php /clockitlab/clockitlab -m 'Sprint 20-14';"

Reset spent times

#PHP
./clockitlab -m "Sprint 20-14" -r
#DOCKER
docker container run --rm -v $(pwd):/clockitlab/ php:7.4-cli /bin/bash -c "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer; cd clockitlab; /usr/local/bin/composer install; chmod u+x /clockitlab/clockitlab; php /clockitlab/clockitlab -m 'Sprint 20-14' -r;"

About

Use Clockify API to retrieve timers and add them to corresponding Gitlab issues to track time spent on issues

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published