
WordPress GitHub Sync
by James DiGioia on WordPress.org
A WordPress plugin to sync content with a GitHub repository (or Jekyll site)
Ever wish you could collaboratively author content for your WordPress site (or expose change history publicly and accept pull requests from your readers)?
Looking to tinker with Jekyll, but wish you could use WordPress’s best-of-breed web editing interface instead of Atom? (gasp!)
Well, now you can! Introducing WordPress GitHub Sync!
WordPress GitHub Sync does three things:
- Allows content publishers to version their content in GitHub, exposing “who made what change when” to readers
- Allows readers to submit proposed improvements to WordPress-served content via GitHub’s Pull Request model
- Allows non-technical writers to draft and edit a Jekyll site in WordPress’s best-of-breed editing interface
WordPress GitHub sync might be able to do some other cool things:
- Allow teams to collaboratively write and edit posts using GitHub (e.g., pull requests, issues, comments)
- Allow you to sync the content of two different WordPress installations via GitHub
- Allow you to stage and preview content before “deploying” to your production server
How it works
The sync action is based on two hooks:
- A per-post sync fired in response to WordPress’s
save_post
hook which pushes content to GitHub - A sync of all changed files triggered by GitHub’s
push
webhook (outbound API call)
Active installations300+
Weekly downloads
19-26.92%
Version2.0.1
Last updated10/9/2017
WordPress version3.9
Tested up to4.8.25
Tags
collaborationcontentgitGithubversion control