skeet70 / default-project-board-action

Action that lets you set a default project board for all newly created issues to be added to.
MIT License
8 stars 3 forks source link

Error: Cannot read property 'id' of null #8

Open patiencedaur opened 2 years ago

patiencedaur commented 2 years ago

I added this action to my repository and it keeps failing:

Run skeet70/default-project-board-action@v1
  with:
    github_token: ***
    repository: tarantool/doc
    issue: 2677
    project: 14
{ data: { repository: { issue: [Object] } } }
{ data: { repository: { project: null } } }
Error: Cannot read property 'id' of null

The project number is 14. What am I missing?

Please let me know if you need more details. Thank you!

skeet70 commented 4 months ago

Are you using classic projects or the newer projects? The test issue still seems to work here, if you're using non-classic projects though the graphQL query for get_project_id would need projectV2 as the target resource instead of project, and would explain why it's getting null back.