{"action":"created","issue":{"url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/13","labels_url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/13/comments","events_url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/13/events","html_url":"https://github.com/FundingCircle/shipment_tracker/pull/13","id":103755270,"number":13,"title":"Pull request status","user":{"login":"iainbeeston","id":111963,"avatar_url":"https://avatars.githubusercontent.com/u/111963?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbeeston","html_url":"https://github.com/iainbeeston","followers_url":"https://api.github.com/users/iainbeeston/followers","following_url":"https://api.github.com/users/iainbeeston/following{/other_user}","gists_url":"https://api.github.com/users/iainbeeston/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbeeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbeeston/subscriptions","organizations_url":"https://api.github.com/users/iainbeeston/orgs","repos_url":"https://api.github.com/users/iainbeeston/repos","events_url":"https://api.github.com/users/iainbeeston/events{/privacy}","received_events_url":"https://api.github.com/users/iainbeeston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-28T16:54:55Z","updated_at":"2015-09-10T15:32:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FundingCircle/shipment_tracker/pulls/13","html_url":"https://github.com/FundingCircle/shipment_tracker/pull/13","diff_url":"https://github.com/FundingCircle/shipment_tracker/pull/13.diff","patch_url":"https://github.com/FundingCircle/shipment_tracker/pull/13.patch"},"body":"WHAT?\r\n---\r\n\r\nThis enables support for github pull request statuses, so that the feature review status in shipment tracker is shown in the status of a pull request.\r\n\r\nHOW?\r\n----\r\n\r\n1. When a pull request is created or pushed to, github sends an event to shipment tracker\r\n2. We check the status of a feature request, and POST it to github's status API endpoint\r\n\r\nWe also update the status in github whenever the status of a jira ticket is changed.\r\n\r\nTESTING\r\n------\r\n\r\nTo test this you need to set up a feature review in https://shipment-tracker.herokuapp.com for an app, which has it's repository hooks pointing at the staging shipment tracker (not the production shipment tracker). As it is, events will get sent to the production shipment tracker, not the staging one (which knows how to set statues)."},"comment":{"url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/comments/139282547","html_url":"https://github.com/FundingCircle/shipment_tracker/pull/13#issuecomment-139282547","issue_url":"https://api.github.com/repos/FundingCircle/shipment_tracker/issues/13","id":139282547,"user":{"login":"iainbeeston","id":111963,"avatar_url":"https://avatars.githubusercontent.com/u/111963?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbeeston","html_url":"https://github.com/iainbeeston","followers_url":"https://api.github.com/users/iainbeeston/followers","following_url":"https://api.github.com/users/iainbeeston/following{/other_user}","gists_url":"https://api.github.com/users/iainbeeston/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbeeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbeeston/subscriptions","organizations_url":"https://api.github.com/users/iainbeeston/orgs","repos_url":"https://api.github.com/users/iainbeeston/repos","events_url":"https://api.github.com/users/iainbeeston/events{/privacy}","received_events_url":"https://api.github.com/users/iainbeeston/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T15:32:13Z","updated_at":"2015-09-10T15:32:13Z","body":"If there's any more feedback on this please let me know. I've tweaked it some more"}}