{"action":"created","issue":{"url":"https://api.github.com/repos/openstax/manifestly/issues/11","repository_url":"https://api.github.com/repos/openstax/manifestly","labels_url":"https://api.github.com/repos/openstax/manifestly/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/openstax/manifestly/issues/11/comments","events_url":"https://api.github.com/repos/openstax/manifestly/issues/11/events","html_url":"https://github.com/openstax/manifestly/pull/11","id":137109841,"number":11,"title":"Manifest diffs","user":{"login":"jpslav","id":1001691,"avatar_url":"https://avatars.githubusercontent.com/u/1001691?v=3","gravatar_id":"","url":"https://api.github.com/users/jpslav","html_url":"https://github.com/jpslav","followers_url":"https://api.github.com/users/jpslav/followers","following_url":"https://api.github.com/users/jpslav/following{/other_user}","gists_url":"https://api.github.com/users/jpslav/gists{/gist_id}","starred_url":"https://api.github.com/users/jpslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpslav/subscriptions","organizations_url":"https://api.github.com/users/jpslav/orgs","repos_url":"https://api.github.com/users/jpslav/repos","events_url":"https://api.github.com/users/jpslav/events{/privacy}","received_events_url":"https://api.github.com/users/jpslav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-28T23:17:18Z","updated_at":"2016-02-29T01:59:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openstax/manifestly/pulls/11","html_url":"https://github.com/openstax/manifestly/pull/11","diff_url":"https://github.com/openstax/manifestly/pull/11.diff","patch_url":"https://github.com/openstax/manifestly/pull/11.patch"},"body":"Adds the ability to diff two manifests, resulting in markdown output that lists the PRs merged between manifests for each application repository listed in the \"to\" manifest.\r\n\r\nConverting the output to HTML would be trivial by adding kramdown, if that's desirable.\r\n\r\n## Usage:\r\n\r\n```\r\nUsage:\r\n  manifestly diff --from-sha --repo --to-sha\r\n\r\nOptions:\r\n  [--search-paths]  # A list of paths where git repositories can be found\r\n                    # Default: .\r\n  --repo            # The github manifest repository to use, given as 'organization/reponame'\r\n  --from-sha        # The commit SHA of the manifest on the remote repository to diff from\r\n  --to-sha          # The commit SHA of the manifest on the remote repository to diff from\r\n\r\nDescription:\r\n  Runs a diff between two manifests (as identified by their commit SHAs) and produces \r\n  output (by default in markdown) that lists the PRs that were merged between the \r\n  manifests for each application repository listed in the \"to\" manifest.\r\n\r\n  Up-to-date repositories are required wherever you are running manifestly, and will \r\n  need to be referenced with the normal --search-paths option (unless they are in the \r\n  default path).\r\n\r\n  Examples:\r\n\r\n  $> manifestly diff --repo=org/some_repo --from-sha=fe10b5fdb9e --to-sha=9fc60bee7c > changes.md\r\n```\r\n\r\nHere's an example of the output (from our spec testing this feature, so the links don't work because these aren't actual github repositories).  Below, \"one\", \"two\", etc would in real life be repos like \"openstax/tutor-server\".\r\n\r\n# Manifest Diff\r\n\r\nComparing manifest ***foo*** on repository ***manifests*** from commit `ba2ab8e8ea` to `978bdd997f`.\r\n\r\n## one (`3027aeac6c` to `efe09146ff`)\r\n\r\n1. [PR #2 Added feature Y](https://github.com/one/pull/2)\r\n1. [PR #1 Added import ability](https://github.com/one/pull/1)\r\n\r\n## two (`24b7fea906` to `6ad6ff0e73`)\r\n\r\n* There were no pull requests merged in this range of commits.\r\n\r\n## three (new manifest entry)\r\n\r\n* This manifest item was not in the prior manifest, so all of its commits are new.\r\n\r\n## four (`bdc255392b` to `106ba1cd0d`)\r\n\r\nThese commits were ***rolled back***:\r\n\r\n1. [PR #25 Added feature WW](https://github.com/four/pull/25)\r\n1. [PR #24 Added milkshakes](https://github.com/four/pull/24)"},"comment":{"url":"https://api.github.com/repos/openstax/manifestly/issues/comments/189995403","html_url":"https://github.com/openstax/manifestly/pull/11#issuecomment-189995403","issue_url":"https://api.github.com/repos/openstax/manifestly/issues/11","id":189995403,"user":{"login":"philschatz","id":253202,"avatar_url":"https://avatars.githubusercontent.com/u/253202?v=3","gravatar_id":"","url":"https://api.github.com/users/philschatz","html_url":"https://github.com/philschatz","followers_url":"https://api.github.com/users/philschatz/followers","following_url":"https://api.github.com/users/philschatz/following{/other_user}","gists_url":"https://api.github.com/users/philschatz/gists{/gist_id}","starred_url":"https://api.github.com/users/philschatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philschatz/subscriptions","organizations_url":"https://api.github.com/users/philschatz/orgs","repos_url":"https://api.github.com/users/philschatz/repos","events_url":"https://api.github.com/users/philschatz/events{/privacy}","received_events_url":"https://api.github.com/users/philschatz/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T01:59:50Z","updated_at":"2016-02-29T01:59:50Z","body":":+1: Nice!"}}