srggrs / assign-one-project-github-action

Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
MIT License
169 stars 60 forks source link

Question: How to assign project when issue is assigned to someone #84

Closed flisboac closed 2 years ago

flisboac commented 2 years ago

Hello, thanks for this amazing action! I'm already using it to assign a default project to all new issues, but I've been thinking if there's any way to assign a different column in this same project at the moment some repo/org member is assigned to the issue (be it new, or existing).

Also, is there any documentation or guidelines on how to configure the workflow triggers (e.g. which types are available for each on trigger).

srggrs commented 2 years ago

Probably there is... I think you need to have a look at the GitHub action triggers https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows

flisboac commented 2 years ago

Nice, thanks!

I'm new to Github Actions. The trigger part of a workflow doesn't even concern the actions it calls. That was some misunderstanding on my part.

I also suppose the if in the action's configuration follows the payload sent to the workflow, and that's documented as well (I suppose here).

Going to take a look on that as soon as I get time again. I'll update the issue as soon as I find my solution.