Git Product home page Git Product logo

redpomo's Introduction

Redpomo: Redmine, Pomodoro.app and Todo-txt. Together.

Build Status

Redpomo is for you if...

  • You're an hopeless nerd and like CLIs;
  • You (or you company) use Redmine to track issues and time spent on projects;
  • You heard about Todo.txt and the Pomodoro technique;

Still here? Great!

What Redpomo can do for me?

Redpomo is an opinionated CLI tool that makes it darmn easy to:

  • Manage multiple Redmine instances at once;
  • Create, close and navigate Redmine issues assigned to you;
  • Push your completed pomodoros to remote Redmine as project time-tracks;

It integrates nicely with Todo.txt!

Instead of reinventing yet another time the weel, Redpomo talks with your remote Redmine instances, and syncs all the issues assigned to your user with your local machine, converting them into Todo.txt tasks.

Just launch redpomo from your command line, and you're done:

$ redpomo
Pulled 4 issues.

$ todo.sh ls
01 Write Redpomo README #1340 +redpomo @welaika
02 Publish to App Store #1140 +love-this-song @welaika
03 Meeting with client #1490 +nike @welaika
04 Call mom
--
TODO: 4 of 4 tasks shown

The generic syntax for the imported task will be the following (thanks to asciiflow for the drawing):

(A) 2012-11-25 Make some delicious coffee #1800 +next-big-project @welaika
|   |          |                          |     |                 |
|   |          |                          |     |                 +-> Redmine instance identifier
|   |          |                          |     |
|   |          |                          |     +-> Redmine project for the issue
|   |          |                          |
|   |          +-> Issue title            +-> Issue ID
|   |
|   +-> Issue expiration date (if present)
|
+-> Issue priority (A means Immediate)

How to create new Redmine self-assigned issues

That's so simple:

$ redpomo add 'quote the project +random-project @welaika'
Issue created, see it at http://code.welaika.com/issues/3659
  • If you specify a default project on your ~/.redpomo configuration file, you can even left out the +random-project part.
  • If you don't specify a task, your predefined editor will pop up and ask you to write the title and (optionally) the description for the issue;
  • On iTerm 2 terminals, just command + click on the URL to open up the browser!

How to close a Redmine issue

$ redpomo close 3 -m "Finally done"
Issue updated, see it at http://code.welaika.com/issues/1490

Opening the browser to a specific Redmine issue

$ redpomo open 3
  # -> takes your browser to http://code.welaika.com/issues/1490

It integrates nicely with Pomodoro.app!

If you need to start working on some Redmine issue, just use the start command:

$ redpomo start 3

This will communicate via Applescript with Pomodoro.app, and will automatically start a new pomodoro for you: the description of the pomodoro will contain both the ID of the Redmine issue (ie. #1234), and the Redmine instance identifier (ie. @welaika).

This is important: in this way we will be able to remap completed pomodoros back to Redmine issues later on!

Pushing local pomodoros as Redmine time-tracks

Here comes the best one. Open the "Pomodoro Stats" panel, and click on the Export button. This will generate a CSV file full of all your completed pomodoros.

Now we can pass this file to Redpomo:

$ redpomo push --dry-run --fuzzy ~/pomodoros.csv

+----------+------------+---------+------------------------+----------+-------+-------+
|                              Monday 06/18/12 - 8 hours                              |
+----------+------------+---------+------------------------+----------+-------+-------+
| Context  | Project    | Issue # | Description            | Duration | From  | To    |
+----------+------------+---------+------------------------+----------+-------+-------+
| welaika  | nike       | 1392    | Project publishing     | 2 hours  | 08:02 | 10:49 |
| welaika  | nike       | 1390    | Project subtitle       | 2 hours  | 10:49 | 13:05 |
| cantiere | railsyard  |         | Resource trees         | 2 hours  | 13:05 | 15:30 |
| welaika  | nike       | 1392    | Project publishing     | 32 mins  | 15:30 | 16:03 |
| cantiere | railsyard  |         | Resource trees         | 25 mins  | 16:03 | 16:28 |
+----------+------------+---------+------------------------+----------+-------+-------+

Isn't it awesome?!

  • The --dry-run option tells Redpomo just to print out the parsed timetracks, without pushing timetracks to the various Redmine instances yet;
  • The --fuzzy option merges contiguous pomodoros related to the same Redmine issue;

Installation and setup

Install it yourself as:

$ gem install redpomo

And then configure it with the following command:

$ redpomo init

This will create a new .redpomo skeleton file to your home directory, where you'll need to specify all the details of your Redmine instances. Easy stuff.

Contributing

Redpomo is still in its early development. Any help would be much appreciated!

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

(The MIT License)

Copyright © 2011 Stefano Verna

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

redpomo's People

Stargazers

Daniel Spinola avatar Matheus Lima Corrêa avatar aaaaninja avatar  avatar Yuri avatar  avatar Gregg Coppen avatar Grayson Chen avatar Loqman Hakimi avatar Zero avatar Dani Vela avatar Benjamin Melançon avatar Pawel Kasperek avatar Ryan Parsley avatar Antonio Molinari avatar Nathan Sorenson avatar Matt Murahashi Kenichi avatar  avatar Gambhiro avatar Pedro Perez avatar Denis avatar Chris Kempson avatar Matteo Papadopoulos avatar Kieran Klaassen avatar Aldo Mendez Reyes avatar Radosław Woźniak avatar Tommaso Visconti avatar Shanmuga avatar Ju Liu avatar Stefano Verna avatar Matti Lassila avatar Gil Klein avatar Wojtek Majewski avatar

Watchers

Stefano Verna avatar Grayson Chen avatar Riccardo Lucatuorto avatar James Cloos avatar seventhsense avatar  avatar

redpomo's Issues

Feature request: Pomodoro on Linux

This is a placeholder for myself to do something here as much as anything, but would love people's thoughts.

Can the Pomodoro technique counting be done without Pomodoro.app, so it can work on Linux? What would be a reasonable approach?

Todo intializing error

running redpomo, i get this:

  \home/diego/.gem/ruby/2.2.0/gems/todo-txt-0.4/lib/todo-txt/task.rb:6:in `<class:Task>': uninitialized constant Todo::Logger (NameError)
    from /home/diego/.gem/ruby/2.2.0/gems/todo-txt-0.4/lib/todo-txt/task.rb:4:in `<module:Todo>'
    from /home/diego/.gem/ruby/2.2.0/gems/todo-txt-0.4/lib/todo-txt/task.rb:3:in `<top (required)>'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/diego/.gem/ruby/2.2.0/gems/redpomo-0.0.13/lib/redpomo/task.rb:2:in `<top (required)>'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/diego/.gem/ruby/2.2.0/gems/redpomo-0.0.13/lib/redpomo/task_list.rb:2:in `<top (required)>'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/diego/.gem/ruby/2.2.0/gems/redpomo-0.0.13/lib/redpomo/cli.rb:5:in `<top (required)>'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
    from /home/diego/.gem/ruby/2.2.0/gems/redpomo-0.0.13/bin/redpomo:4:in `<top (required)>'
    from /home/diego/.gem/ruby/2.2.0/bin/redpomo:23:in `load'
    from /home/diego/.gem/ruby/2.2.0/bin/redpomo:23:in `<main>'

Redmine/Chiliproject configuration

To let Redpomo correctly work with Redmine's (or Chiliproject's) time tracking, a default time tracking activity must be set in http://REDMINE_PATH/enumerations or the redpomo push LOGFILE call will fail with:

[~] redpomo push LOGFILE
~/.rvm/gems/ruby-1.9.3-p125/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 422 Unprocessable Entity (RestClient::UnprocessableEntity)

A valid alternative is to specify an activity_id param in the post request.

Both in my redmine and chiliproject installations the default time tracking activity wasn't set, I think this is the default

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.