I wrote this article with VS Code, on my Mac, and published it by running git push. All my DEV posts are tracked by Git, and I can manage them from...
For further actions, you may consider blocking this person and/or reporting abuse
I'm seeing the errors in my trigger code, but I see
getFileContents()
in my code anddefault_branch
is in the response I get back from GitHub. What's wrong with the pipeline configuration?I apologize, for some reason the trigger step was using old code. If you don't mind, try clicking on the Configuration tab on that screen to view the source's code, then paste in the code for the newest version. Then you'll see an option to Update Code to the right. Try pushing a new commit after that.
I updated the workflow to use the newest version, too, so you can also copy it anew and that should work.
Appreciate you letting me know! Please tell me if this doesn't fix it or if you have any other issues.
github.com/dylburger/dev-to-posts/...
getContents()
is not a valid function. Checking the Octokit API,getContent()
is the method you're looking for.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
.Yeah it failed for me, I got a null error when it ran.
Does the code with
getContent
work for you now?Yup. Thanks!
Great thanks for the back and forth and for reporting these errors.
Nice this sounds like ittt but for pros 👍
This is awesome. Want to get back into posting on here so will look to set this up soon🤩
Niceeeee. Thanks for writing!
I write my dev posts in the terminal using vim and then publish it using an API wrapper I made, with python.
That’s awesome. Do you run a Python script after editing or did you set it up as a Vim plugin to run commands to publish?
I just edit it with vim(actually neovim) and then run the script. I just need to mention the name of the file.
This is awesome! Thanks for sharing!
Thank you Carl!
Thank you for sharing! I've been writing my drafts in google docs and manually copying, pasting and editing in the markdown. Def trying this out
This is so helpful, thanks for sharing Dylan!!!
Thank you for the kind note, Isabel!