feat: Add support for deleting issues and MRs in triage policies
Summary
Previously, the delete action only supported branches. This change extends it to also support issues and merge requests by using the appropriate resource ID field for each resource type.
Changes
- Removed the
return unless policy.type&.to_sym == :branchesguard that prevented deletion of non-branch resources - Updated
resource_idmethod to handle different resource types:- Branches: use
namefield - Issues/Merge Requests: use
iidfield
- Branches: use
Testing
This enables triage policies to delete old issues and merge requests, which is useful for GDPR compliance and cleanup workflows.
Related Issues
Fixes the limitation where delete actions couldn't be used with issues or merge requests.