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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assign to project but no column

mattfelten opened this issue · comments

If you add an Issue to a Project manually, it goes into an Awaiting triage state. Is there a way for this action to allow that? From what I read, if you leave off specifying a column, it will default to To Do (which I'm not using, so not sure what would happen there).

commented

Hi,

not too sure what is Awaiting triage but when you create a project, you can choose some template, which have column names (and associated automation eventually)... can't put Awaiting triage as the column name in the action? is your project dashboard looking like this

From an Issue page, if you add the Issue to a project without selecting a column, you can see it gets an Awaiting triage state

From the Project page, you'll now see the Add New button shows a count of how many issues are in this triaging state.

Clicking that button opens the normal issue search panel but with a Triage section open


I'd like to use the built-in triaging feature in GitHub with this Action.

commented

Hi,

I was able to re-create your issue. In your case you create a project without any columns, and it's true that you can manually add the issue to the project but when you open the project, because no column are created yet, the issue "card" does not appear any where.
image

and here

image

It's true that the "triage" section appears but the issue does not appear to your project because you need at least one column. So not sure what is your use case, but if you want the issue to automatically assign to "Backlog" project (for example) you could create a column "Triage" in that project and use that in your workflow file (I use terminology from the Agile projet management in software development).

In summary, to add a issue to a project, the action should be able to create a "card" in a column of that project dashboard. If there is no column, the action will fail.

In your case, if you wish to use the triaging feature of GitHub, does not make sense that you "automatically" assign the issues to a project, as that feature requires you to manually triaging each issue and eventually add them to a project column.

Hope that make sense. Let me know if I can help you further.

Cheers,
Sergio