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

Only works with classic projects

danmichaelo opened this issue · comments

This action uses the https://docs.github.com/en/rest/projects/projects api, which only works with classic projects. Seems like the graphql api is needed to manage new (V2) projects: https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects

It's probably a good idea to add a note about this in the README.

Btw. I found this example on how to add issues to V2 projects: https://www.cloudwithchris.com/blog/github-projects-ga-automation-updates/