blombard / move-to-next-iteration

Automatically move issues to next iteration
MIT License
30 stars 13 forks source link

Issue with project.getProperties() #10

Open simonkotwicz opened 4 months ago

simonkotwicz commented 4 months ago

Your call to project.getProperties expects it to return fields but it doesn't.

As per the README for github-project:

project.getProperties()

const projectData = await 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

blombard commented 4 months ago

Hi @simonkotwicz 👋

I am not sure to understand your problem? 🤔

How is this impacting you?

simonkotwicz commented 4 months ago

Well I get an error when I try to run your script because projectData.fields is undefined.