DEV Community

Discussion on: Publish DEV articles from a Git repo, with Github + Pipedream

Collapse
 
mikeyglitz profile image
mikeyGlitz

github.com/dylburger/dev-to-posts/...
getContents() is not a valid function. Checking the Octokit API, getContent() is the method you're looking for.

Thread Thread
 
dylburger profile image
Dylan J. Sather

Nice catch. It's funny because the plural method still worked for me - did it fail for you?

At any rate, newest version of the code should reference getContent.

Thread Thread
 
mikeyglitz profile image
mikeyGlitz

Yeah it failed for me, I got a null error when it ran.

Thread Thread
 
dylburger profile image
Dylan J. Sather

Does the code with getContent work for you now?

Thread Thread
 
mikeyglitz profile image
mikeyGlitz

Yup. Thanks!

Thread Thread
 
dylburger profile image
Dylan J. Sather

Great thanks for the back and forth and for reporting these errors.