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 == :branches guard that prevented deletion of non-branch resources
  • Updated resource_id method to handle different resource types:
    • Branches: use name field
    • Issues/Merge Requests: use iid field

Testing

This enables triage policies to delete old issues and merge requests, which is useful for GDPR compliance and cleanup workflows.

Fixes the limitation where delete actions couldn't be used with issues or merge requests.

Merge request reports

Loading