mergeable icon indicating copy to clipboard operation
mergeable copied to clipboard

[Feature Request] Add project block to Actions so we can add a issue and pull_request to a specific project

Open dgteixeira opened this issue 2 years ago • 2 comments

Feature Request - Add capability to assign a pull request and issue to a Project

Hello all, this is a Feature Request!

What I'd like to accomplish is to add the project block to Actions so we can add a issue and pull_request to a specific project. It could be added to the already existent assign block and just add a project optional input.

This would be very helpful to automate the project allocation of specific tasks to projects based on previous validations (labels, for example).

It could be deployed something as this, while reusing the existent assign block:

- do: assign
  assignees: [ 'shine2lay', 'jusx', '@author' ] # only array accepted, use @author for PR/Issue author
  project: ['backlog', 'foo','bar'] # the project names to add the pull_request and/or issue.
  status: "Todo" # the status of the pull_request and/or issue. Defaults to "Todo".

Or it also could be done in a new one:

- do: assign_project
  project: ['backlog', 'foo','bar'] # the project names to add the pull_request and/or issue.
  status: "Todo" # the status of the pull_request and/or issue. Defaults to "Todo".

dgteixeira avatar Dec 22 '21 10:12 dgteixeira

@dgteixeira I am in favor of the latter method so there is a clean separation

shine2lay avatar Dec 22 '21 21:12 shine2lay

@shine2lay, thanks for the response!

Yeah, I believe that is the correct approach as well, following the other implementations that have been done in this project :)

dgteixeira avatar Dec 23 '21 10:12 dgteixeira