Skip to content

Implement "issue" action to create new issues from resources

Guillermo Julián requested to merge gjulianm/gitlab-triage:issue-action into master

What does this MR do and why?

This MR adds an "issue" action to the set of possible actions. The action creates a new issue for each resource found matching the conditions. This can be used to split issues with certain labels into multiple ones, or creating issues for testing MR or finished issues, or mirroring issues into another project.

Related issue: #292

Some comments about the code

I am not sure about the naming/structure for CopyIssueBuilder. I thought of just refactoring IssueBuilder, so that it could accept multiple resources or just one depending on whether we want a summary or a single issue, but it looked like too much of a mess for such a simple class, so I put it in a separate class.

The other problem is the name, I would have wanted to use "IssueBuilder" for this new builder, and change the existing one to "SummaryBuilder", but I don't really like to change existing class names without approval from the maintainers.

Merge request reports