alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
605 stars 115 forks source link

Add support for assigning repository projects, not just user and org level projects. #57

Closed JimBledsoe closed 1 year ago

JimBledsoe commented 3 years ago

Support for user and org projects was recently added, but repositories also have projects.

From the Github API reference: /repos/{owner}/{repo}/projects

Our organization, in particular, only use repo level projects.

alstr commented 3 years ago

Thanks for that. Please could you link to this endpoint in the API reference? I have not come across it before.

JimBledsoe commented 3 years ago

https://docs.github.com/en/rest/reference/projects#list-repository-projects

alstr commented 3 years ago

Thanks. This should be relatively simple to implement. I'll look at it at the next available opportunity.

alstr commented 1 year ago

On looking into this in more detail, the API only supports classic projects for repos. If you've not already assigned a classic project to your repo, you are no longer able to do it. Therefore, it seems quite difficult to implement and test this functionality. Ideally I would like to look to a more futureproof projects implementation, but not quite sure what that entails yet. If anyway has any ideas please feel free to suggest.