Skip to content

Action to move an issue to another project

Summary

There is a quick action and UI feature to move an issue to another project. gitlab-triage could support an action to do this.

Why not use a quick action in the comment?

Moving an issue can already be carried out via a quick action in the posted comment. Sometimes the rules may want to share the comment content, one rule moving the issue and the other rule not

For example:

resource_rules:
  issues:
    rules:
      - name: Move features to new project
        conditions:
          state: opened
          labels:
            - feature
        actions:
          comment: |
            My comment
            /move gitlab-org/gitlab
      - name: Close bugs
        conditions:
          state: opened
          labels: 
            - bug
        actions:
          comment: |
            My comment
          status: close

In this case the quick action means that the comment cannot be moved to a yaml anchor and is required to be duplicated

Proposal

Add an action field to move the issues

  actions:
    move: target/project_path

Details

  • Should action only be executable for issue resource?