Open simonkotwicz opened 4 months ago
Your call to project.getProperties expects it to return fields but it doesn't.
As per the README for github-project:
const projectData = await project.getProperties();
Returns project level data url, title, description and databaseId
https://github.com/gr2m/github-project/blob/e556211b6d19ca3fb1458f2a7b045bddd50a8d14/api/lib/project-node-to-properties.js#L11-L18
and/or
https://github.com/blombard/github-project/blob/f6dbb058959c210abe2d82f02cc1c3e7f11fb95b/api/lib/project-node-to-properties.js#L11-L18
Hi @simonkotwicz 👋
I am not sure to understand your problem? 🤔
How is this impacting you?
Well I get an error when I try to run your script because projectData.fields is undefined.
undefined
Your call to project.getProperties expects it to return fields but it doesn't.
As per the README for github-project:
project.getProperties()
Returns project level data url, title, description and databaseId
Relevant code
https://github.com/gr2m/github-project/blob/e556211b6d19ca3fb1458f2a7b045bddd50a8d14/api/lib/project-node-to-properties.js#L11-L18
and/or
https://github.com/blombard/github-project/blob/f6dbb058959c210abe2d82f02cc1c3e7f11fb95b/api/lib/project-node-to-properties.js#L11-L18