Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with project.getProperties() #10

Open
simonkotwicz opened this issue Apr 9, 2024 · 2 comments
Open

Issue with project.getProperties() #10

simonkotwicz opened this issue Apr 9, 2024 · 2 comments

Comments

@simonkotwicz
Copy link

simonkotwicz commented Apr 9, 2024

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
Copy link
Owner

blombard commented Apr 9, 2024

Hi @simonkotwicz 👋

I am not sure to understand your problem? 🤔

How is this impacting you?

@simonkotwicz
Copy link
Author

simonkotwicz commented Apr 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants