Skip to content

Instantly share code, notes, and snippets.

@jaredhirsch
Created August 26, 2016 03:03
Show Gist options
  • Save jaredhirsch/81d7e0d9b131fc02f73e836f51d656c4 to your computer and use it in GitHub Desktop.
Save jaredhirsch/81d7e0d9b131fc02f73e836f51d656c4 to your computer and use it in GitHub Desktop.
tech articles as narrative git commits
  1. use the github API or use any git repo with an adapter (not included) that matches the parts of the github commit API schema that we use, currently an object of the form
response = {
  files: {
    patch: 'git diff as patch inserted here'
  },
  commit: {
    message: 'git commit message as string here'
  }
}
  1. given a JSON blob representing an object,
  • template the code diff (response.files.patch) into a right pane with syntax highlighting
  • template the commit message (response.commit.message) through a markdown processor and into a left pane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment