Gets clockify timers depending on milestone dates and add them to corresponding gitlab issues
- PHP 7.3+
- Composer
- Gitlab Api token
- Clockify Api token
git clone [email protected]:tchartron/clockitlab.git
cd clockitlab
cp .env.example .env
composer install
chmod u+x clockitlab
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;"