Enhanced Retention policy

I like being able to configure the retention policy, but I would like finer control.

I would like to keep every release that is pushed to Production, but not every release that we push to Test. We push to test many times a day, and this builds up fast.