vaakash / git-it-write

A WordPress plugin to publish markdown files present in a Github repository as posts to WordPress automatically.
https://www.aakashweb.com/wordpress-plugins/git-it-write/
GNU General Public License v3.0
48 stars 22 forks source link

Post property "post_status" doesn't work properly #13

Closed guillermomf2001 closed 1 year ago

guillermomf2001 commented 2 years ago

When I make a git push to my repository I have an HTTP Error 500 in the webhook log due to the Yaml post_status: draft configuration in the .md post file. I tried the other values to post_status and doesn't work. The only ones that works right is post_status: publish

---

title: Title of this post
menu_order: 1
post_status: draft  # <-- it does not work!! (HTTP Error 500)
post_excerpt: Excerpt of this post.
taxonomy:
    category:
        - Javascript
    post_tag:
        - Javascript-config
        - VSCode

---

# Title post

The rest of the content...
vaakash commented 1 year ago

Hi @ZonaGuillermo,

I'll check this issue and update.

Thanks, Aakash

vaakash commented 1 year ago

This is addressed in v1.7. Marking this as closed.