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

Only works with classic projects #89

Open danmichaelo opened 2 years ago

danmichaelo commented 2 years ago

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/

sercanuste commented 1 year ago

@danmichaelo You can use https://github.com/actions/add-to-project.