Coder Social home page Coder Social logo

redmine-log-work's Introduction

Build Status

redmine-log-work

This is a CLI utility for logging work time in Redmine via its REST API.

Installation

This utility requires Python 3.x.

It is not packaged yet.

You will need to clone this repository and probably add a shell alias, e.g.:

alias log-work="$HOME/path/redmine_log_work.py"

Only the Python standard library is required, there's no need to install any additional packages.

If you want to automatically extract issue ID from current Git branch name, you will also need Git installed.

Configuration

Copy the included example configuration file into the $HOME/.config directory and edit it to include your Redmine URL and API key.

Usage

usage: redmine_log_work.py [-h] issue time activity [comment]

Log time spent on a Redmine issue.

positional arguments:
  issue       issue ID, use . (dot) to extract from current branch name
  time        amount of time spent, formats accepted:
              • 15 is 15 minutes,
              • 1:15 is one hour and 15 minutes
              • 9:00-10:00 is a time range spanning one hour
              • 9:00-now is a relative time range
              • 9:00- and ~9:00 are shortcuts for 9:00-now
  activity    activity type, can be a shortcut, e.g. CR instead of Code Review
              as long as it identifies an activity unambiguously
  comment     optional comment

options:
  -h, --help  show this help message and exit

The script displays time and issue details and asks for confirmation before actually saving a time tracking entry.

Other tools

This utility is very simple - basically it only covers my single personal use case. If you're looking for a full blown Redmine CLI, take a look at arcli.

Tests

Install packages required for running test:

pip install -U -r requirements-test.txt

Run tests with:

pytest

redmine-log-work's People

Contributors

pawel-slowik avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.