# GitHub for journalism: WordPress post forking

**TL;DR:** Wired found GitHub too complex for newsrooms. What if WordPress could offer the same fork-and-merge collaboration model with its signature simplicity?

Published 2012-02-28 · [View on Ben Balter's site](https://ben.balter.com/2012/02/28/github-for-journalism-what-wordpress-post-forking-could-do-to-editorial-workflows/)

---

Wired Magazine recently took a turn for the meta. In addition to publishing their recent story featuring the popular version control site GitHub on Wired.com as they would normally, they also [published it on GitHub itself under a creative commons license](https://github.com/WiredEnterprise/Lord-of-the-Files), allowing readers to fork and contribute to the story as they saw fit. In [reflecting after the fact](https://web.archive.org/web/20120226110347/http://www.wired.com/wiredenterprise/2012/02/github-revisited/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Index+3+%28Top+Stories+2%29%29), the Wired team said something that stood out to me:

> At Wired offices, you hear the question over and over again as we work on stories like the one you're reading now: "Are you out of the story? I want to go in." We have a version control problem. We publish Wired.com on WordPress. It's a decent publishing tool, but when two people change a story at the same time, one of them doesn't get her changes onto the final story.
>
> We published our GitHub story on GitHub because it was meta-cool. But we also did it to see if GitHub might actually help us solve our problem.

Spoiler alert: it didn't. GitHub's great for a lot of things, source code chief among them, but it's not for the faint of heart. There's a great deal of command-line, and general geekery involved that raise the barriers to entry just high enough to keep it out of everyday newsrooms and editorial workflows. [^1]

## WordPress could bring fork-and-merge to newsrooms

**The Pitch:** *What if we could re-imagine WordPress's ease-of-use and intuitive, dead-simple workflow to introduce a layer of GitHub's collaborative fork-and-merge horsepower under the hood?*

Users would have the ability to "clone" an existing post, make any changes they want, and then merge those changes back into the original before publishing. This feature could help in four distinct cases:

- Collaborative editing (by resolving two users' conflicted saves – Wired's example)
- Saving draft changes of already-published content
- Scheduling pending changes to already-published content
- Allowing users without edit or publish capabilities to edit and submit changes to content (similar to GitHub's pull request system)

## How post forking would work

I'd imagine the workflow would go something like this:

1. User without the ability to edit an existing post has changes to make
2. User "forks" the post, making any change they deem necessary
3. When done, user attempts to merge changes back into the original
4. Post goes into standard WordPress "pending review" workflow
5. Editor is presented with diff (using the built-in diff engine), and can automatically accept changes (if there are no conflicts), or manually merge the two if necessary
6. Post is re-published with updated content, revision logs merged to reflect history

The feature set, in short:

- Extends WordPress's existing revision system
- Clone existing posts, edit, and "republish"
- Schedule changes to posts, including taxonomies and metadata
- Pending changes diff view, frontend preview of changes
- Using WordPress's pending-review system, integrates with existing plugins for notifications, management, and so on
- Ability to store "commit messages" with each post revision to explain to others what changes were made and why
- Automatically merges (non-conflicted) changes (based on existing diff engine)

  1. One sided changes – one overwrites the other
  2. Two sided non-conflict changes – automatically merge
  3. Conflicted changes – note conflicts in fork and prepare for re-merge

## The technology already exists

Post forking may make for a killer plugin [^2] or piece of core functionality… and imagine if it could integrate with other collaboration tools like [Edit Flow](https://editflow.org/), or [WP Document Revisions](https://ben.balter.com/2011/08/29/wp-document-revisions-document-management-version-control-wordpress/)? As in Wired's example, it has the potential to fundamentally change newsrooms and other editorial workflows. All of a sudden, any content becomes either publicly or privately collaborative. Pretty cool, huh? While it may be a bit ahead of its time from a human standpoint, from a technical standpoint, the technology's there (it's nothing new). It's just a matter of building it, and, with any luck, solving the dreaded "are you out yet?" problem.

Thoughts? Would you use this? What else would you like to see it do? [Drop me a line](https://ben.balter.com/contact/).

## It shipped as a plugin

**Update (3/5):** The plan right now is to submit this as a Google Summer of Code project, so if all goes well, look for the above-outlined functionality in a WordPress install near you towards the end of the summer. In the meantime, the continued thoughts/feedback is greatly appreciated.

**Update (3/27):** It looks like [WordPress isn't participating in GSoC this year](http://wpdevel.wordpress.com/2012/03/16/no-gsoc-2012/). Filing this idea under "someday".

**Update (6/13):** Stay tuned. This may yet become a reality after all. ETA end of summer-ish.

**Update (10/1):** Introducing [Post Forking for WordPress](https://postforking.wordpress.com/2012/10/01/introducing-post-forking-for-wordpress/), a more collaborative approach to content curation.

[^1]: Having recently given this a try (using GitHub to curate [a collaboratively edited list of open-source alternatives to proprietary software](https://ben.balter.com/2012/02/27/open-source-alternatives-to-proprietary-enterprise-software/)), I know first-hand how off-putting GitHub can be to non-technical users.

[^2]: Full disclosure: two plugins, [Revisionary](http://wordpress.org/extend/plugins/revisionary/) and [Duplicate Post](http://wordpress.org/extend/plugins/duplicate-post/) exist, but they don't take the idea nearly as far as the above proposes, nor do they do it in "the WordPress way". I'd hope that even if the idea started as a plugin, it would eventually be incorporated as core functionality.
