makandra / geordi

Collection of command line tools used in our daily work with Ruby, Rails and Linux.
https://makandra.com/
MIT License
104 stars 16 forks source link

Add an owner filter for pivotal tracker stories #195

Closed martinschaflitzl1 closed 6 months ago

martinschaflitzl1 commented 1 year ago

When choosing a story for geordi commit or geordi branch it can get quite cumbersome if there are a lot of running stories for the current project. Most of the time, I am only interested in the stories where I am the owner. This MR adds the possibility to configure a owner-filter for the story selection in the ~/.config/geordi/global.yml.
This functionality has been proven to be useful in my workflow, please consider adding it to geordi.

codener commented 1 year ago

Thanks for the PR, it's a good idea. However, the global filter config feels too hidden. A --mine (-m) option would make obvious why the list is short, and the default case would remain unfiltered. WDYT?

martinschaflitzl1 commented 1 year ago

The default kinda still is a unfiltered list, because you have to configure the filter before it can filter stories.
I very rarely check out a branch for / commit a story I do not own on the Tracker, so I´d rather have the default (with the config set) filtered. But I also don´t know if that is the case for all our colleges.
A -m option would also be fine for me, I can always have an alias that filters by default.

codener commented 1 year ago

Ok, let's do both then:

When the suggested global config is set:

(The --no-mine is Thor default for boolean options.)

codener commented 8 months ago

@martinschaflitzl1 Do you intend to finish this? Else we'll close it soon.