smart_todo icon indicating copy to clipboard operation
smart_todo copied to clipboard

Support branch event

Open TastyPi opened this issue 11 months ago • 2 comments

I'd like to be able to fire notifications when a TODO is merged into a specific branch. This is useful for things where you have to wait for something to be running in production before you can make more changes (e.g. backfills).

The way I think this could work is to have a branch: 'production' option, and all that would do is check "does the currently checked-out branch match the given branch name?". It could potentially support RegExp as well for more advanced matching.

Since this requires running smart_todo across multiple branches, it would also be nice to support an --events flag to filter which events actually get checked. So in this case, I would run smart_todo normally in our main branch, and then smart_todo --events branch in the production branch when a new release is pushed.

So this is kind of two features in one. I'd like to know:

  1. Is this repo open to contributions for events that Shopify might not use?
  2. Do these features sound reasonable to add?

TastyPi avatar Jun 23 '23 10:06 TastyPi