Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

36 lines (30 loc) · 1.08 KB

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;"