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

Does this work with Github Issues Beta? #82

Open matthewmayer opened 2 years ago

matthewmayer commented 2 years ago

https://docs.github.com/en/issues/trying-out-the-new-projects-experience/about-projects

srggrs commented 2 years ago

Not sure, has anyone tried it?

rsioss commented 2 years ago

We tried it with a beta project, and unfortunately it failed. From looking at the GH docs, it appears that beta projects require use of the GraphQL API instead of the REST one.

mustafaozhan commented 2 years ago

I wanted to do the same and in case you need it, I end up using this: https://github.com/leonsteinhaeuser/project-beta-automations

rsioss commented 2 years ago

Ahh, that looked promising, but it looks like it only supports updating the issue status (doesn't appear to support moving issues to a particular column on the beta project board, which is what we wanted to do).

matthewmayer commented 2 years ago

as far as i know, the beta project boards currently only support having columns as the different issue statuses

rsioss commented 2 years ago

it appears that I was too hasty to dismiss the beta action in that case... I mistakenly jumped to the conclusion that status and column were different attributes. I'll give it a shot, thanks for following up!

nicole-obrien commented 2 years ago

Doesn't seem to recognise the GH projects beta because they are within a user or organisation and not in a repo. Do you think this is something you could support?

matthewmayer commented 2 years ago

Doesn't seem to recognise the GH projects beta because they are within a user or organisation and not in a repo. Do you think this is something you could support?

As suggested higher up in this thread I'd suggest trying https://github.com/leonsteinhaeuser/project-beta-automations instead

The code is fairly easy to modify for your needs for example I made a version which removes an issue from a project board too https://github.com/matthewmayer/project-beta-remove