delete-older-releases icon indicating copy to clipboard operation
delete-older-releases copied to clipboard

Delete tags not associated with latest releases

Open ghost opened this issue 2 years ago • 5 comments

The option to keep only the tags related to the latest releases will be very useful, I hope you'll ipmlement it in the nearest time possible.

ghost avatar Aug 17 '23 16:08 ghost

Take a look at the other repo https://github.com/dev-drprasad/delete-tag-and-release

which alternately might work the way you need or could be used in a subsequent action call for a cleanup pass (depending on options and your specific needs). Test tag and release deletion on a throwaway repo to ensure your needs are met well.

thadguidry avatar Aug 23 '23 10:08 thadguidry

I have to specify the exact tag that I want to delete, which is not efficient if you have dozens of them, I want something that will keep the tags related to the releases only and deletes all the others automatically without specifying everytime.

ghost avatar Aug 23 '23 12:08 ghost

I don't understand this requirement, can you explain it? Or give an example @thadguidry

smallprogram avatar Sep 28 '23 03:09 smallprogram

This:

keep the tags related to the releases only and delete all the others automatically without specifying everytime.

Seems to indicate that they want handling for general git tag deletion, for example, deleting all tags NOT associated to any release. The user could use other Actions I think on the marketplace. But we could also add that feature to this repo as an enhancement. The hypothetical parameter might be called delete_unlinked_tags with a description like After release deletion, this option deletes all tags that are not associated or linked to any release.

thadguidry avatar Sep 28 '23 04:09 thadguidry

BTW, I've seen other DevOps processing that calls them orphan tags. But I am not sure what GitHub docs calls them. We should use same terminology that GitHub docs uses.

thadguidry avatar Sep 28 '23 04:09 thadguidry

Hey @ReenigneArcher do you think you might be able to implement this new option here called delete_orphan_tags which is default false?

thadguidry avatar May 20 '24 03:05 thadguidry

@thadguidry It's definitely possible, but if it were up to me I'd choose to keep this action as simple as possible since there is no unit/integration testing occurring.

Also, the original requester of this feature has since deleted their github account... so maybe just close this as "not planned"?

ReenigneArcher avatar May 20 '24 14:05 ReenigneArcher