{"action":"opened","number":1013,"pull_request":{"url":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013","id":41832289,"html_url":"https://github.com/foosel/OctoPrint/pull/1013","diff_url":"https://github.com/foosel/OctoPrint/pull/1013.diff","patch_url":"https://github.com/foosel/OctoPrint/pull/1013.patch","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1013","number":1013,"state":"open","locked":false,"title":"Append environment information to the Bug Report link","user":{"login":"shaggythesheep","id":1074047,"avatar_url":"https://avatars.githubusercontent.com/u/1074047?v=3","gravatar_id":"","url":"https://api.github.com/users/shaggythesheep","html_url":"https://github.com/shaggythesheep","followers_url":"https://api.github.com/users/shaggythesheep/followers","following_url":"https://api.github.com/users/shaggythesheep/following{/other_user}","gists_url":"https://api.github.com/users/shaggythesheep/gists{/gist_id}","starred_url":"https://api.github.com/users/shaggythesheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaggythesheep/subscriptions","organizations_url":"https://api.github.com/users/shaggythesheep/orgs","repos_url":"https://api.github.com/users/shaggythesheep/repos","events_url":"https://api.github.com/users/shaggythesheep/events{/privacy}","received_events_url":"https://api.github.com/users/shaggythesheep/received_events","type":"User","site_admin":false},"body":"Initial implementation of including information in the bug report link. Not currently useful in it's present form, but could be used as a base for automating the inclusion of some of the data required for a bug report.\r\n\r\nMay need to consider privacy concerns (although there's no personal information included in the data, people may not like information about their system being sent to a third party)\r\n\r\nFull implementation may need an additional page or two to be hosted at Octoprint.org as well as a couple of python scripts hosted on the OctoPrint instance itself.\r\n\r\nThought I'd post this as a mini proof-of-concept.\r\n\r\nMy thoughts on the process would be something along the lines of...\r\n\r\n1. Link takes you to an Octoprint.org/.... page which strips off the information and stores it in a cookie which is valid for, say, an hour.\r\n2. Octoprint page then automatically redirects user to bug reporting guide\r\n3. Change link in bug reporting guide to point to Octoprint.org page. On this page are buttons that allow the user to automatically retrieve and upload their logs to pastebin or a gist. Request to user's host could be made via JSONP\r\n4. Once user has uploaded logs (if desired) submit button takes them to GitHub new Issue page with  template partially filled in with Version, Browser / OS, urls to logs etc.\r\n\r\nI'm happy to look into the implementation side on the host if you think this is a viable solution.\r\n\r\nComments welcome!\r\n\r\nRichard","created_at":"2015-08-06T20:42:06Z","updated_at":"2015-08-06T20:42:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013/commits","review_comments_url":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013/comments","review_comment_url":"https://api.github.com/repos/foosel/OctoPrint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1013/comments","statuses_url":"https://api.github.com/repos/foosel/OctoPrint/statuses/e180910d444f2d3eebe21945da22f44b0ff3c2b0","head":{"label":"shaggythesheep:devel-bug-report-info","ref":"devel-bug-report-info","sha":"e180910d444f2d3eebe21945da22f44b0ff3c2b0","user":{"login":"shaggythesheep","id":1074047,"avatar_url":"https://avatars.githubusercontent.com/u/1074047?v=3","gravatar_id":"","url":"https://api.github.com/users/shaggythesheep","html_url":"https://github.com/shaggythesheep","followers_url":"https://api.github.com/users/shaggythesheep/followers","following_url":"https://api.github.com/users/shaggythesheep/following{/other_user}","gists_url":"https://api.github.com/users/shaggythesheep/gists{/gist_id}","starred_url":"https://api.github.com/users/shaggythesheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaggythesheep/subscriptions","organizations_url":"https://api.github.com/users/shaggythesheep/orgs","repos_url":"https://api.github.com/users/shaggythesheep/repos","events_url":"https://api.github.com/users/shaggythesheep/events{/privacy}","received_events_url":"https://api.github.com/users/shaggythesheep/received_events","type":"User","site_admin":false},"repo":{"id":40321291,"name":"OctoPrint","full_name":"shaggythesheep/OctoPrint","owner":{"login":"shaggythesheep","id":1074047,"avatar_url":"https://avatars.githubusercontent.com/u/1074047?v=3","gravatar_id":"","url":"https://api.github.com/users/shaggythesheep","html_url":"https://github.com/shaggythesheep","followers_url":"https://api.github.com/users/shaggythesheep/followers","following_url":"https://api.github.com/users/shaggythesheep/following{/other_user}","gists_url":"https://api.github.com/users/shaggythesheep/gists{/gist_id}","starred_url":"https://api.github.com/users/shaggythesheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaggythesheep/subscriptions","organizations_url":"https://api.github.com/users/shaggythesheep/orgs","repos_url":"https://api.github.com/users/shaggythesheep/repos","events_url":"https://api.github.com/users/shaggythesheep/events{/privacy}","received_events_url":"https://api.github.com/users/shaggythesheep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shaggythesheep/OctoPrint","description":"OctoPrint provides a snappy web interface for controlling a 3D printer (RepRap, Ultimaker, ...).","fork":true,"url":"https://api.github.com/repos/shaggythesheep/OctoPrint","forks_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/forks","keys_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/teams","hooks_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/hooks","issue_events_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/issues/events{/number}","events_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/events","assignees_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/assignees{/user}","branches_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/branches{/branch}","tags_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/tags","blobs_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/git/refs{/sha}","trees_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/statuses/{sha}","languages_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/languages","stargazers_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/stargazers","contributors_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/contributors","subscribers_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/subscribers","subscription_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/subscription","commits_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/commits{/sha}","git_commits_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/git/commits{/sha}","comments_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/comments{/number}","issue_comment_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/issues/comments{/number}","contents_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/contents/{+path}","compare_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/merges","archive_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/downloads","issues_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/issues{/number}","pulls_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/pulls{/number}","milestones_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/milestones{/number}","notifications_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/labels{/name}","releases_url":"https://api.github.com/repos/shaggythesheep/OctoPrint/releases{/id}","created_at":"2015-08-06T18:42:59Z","updated_at":"2015-08-06T18:43:00Z","pushed_at":"2015-08-06T20:28:41Z","git_url":"git://github.com/shaggythesheep/OctoPrint.git","ssh_url":"git@github.com:shaggythesheep/OctoPrint.git","clone_url":"https://github.com/shaggythesheep/OctoPrint.git","svn_url":"https://github.com/shaggythesheep/OctoPrint","homepage":"http://octoprint.org","size":39506,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"foosel:devel","ref":"devel","sha":"d773b9d486416d1f094bf56fabae0527883d0119","user":{"login":"foosel","id":83657,"avatar_url":"https://avatars.githubusercontent.com/u/83657?v=3","gravatar_id":"","url":"https://api.github.com/users/foosel","html_url":"https://github.com/foosel","followers_url":"https://api.github.com/users/foosel/followers","following_url":"https://api.github.com/users/foosel/following{/other_user}","gists_url":"https://api.github.com/users/foosel/gists{/gist_id}","starred_url":"https://api.github.com/users/foosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foosel/subscriptions","organizations_url":"https://api.github.com/users/foosel/orgs","repos_url":"https://api.github.com/users/foosel/repos","events_url":"https://api.github.com/users/foosel/events{/privacy}","received_events_url":"https://api.github.com/users/foosel/received_events","type":"User","site_admin":false},"repo":{"id":7386799,"name":"OctoPrint","full_name":"foosel/OctoPrint","owner":{"login":"foosel","id":83657,"avatar_url":"https://avatars.githubusercontent.com/u/83657?v=3","gravatar_id":"","url":"https://api.github.com/users/foosel","html_url":"https://github.com/foosel","followers_url":"https://api.github.com/users/foosel/followers","following_url":"https://api.github.com/users/foosel/following{/other_user}","gists_url":"https://api.github.com/users/foosel/gists{/gist_id}","starred_url":"https://api.github.com/users/foosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foosel/subscriptions","organizations_url":"https://api.github.com/users/foosel/orgs","repos_url":"https://api.github.com/users/foosel/repos","events_url":"https://api.github.com/users/foosel/events{/privacy}","received_events_url":"https://api.github.com/users/foosel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/foosel/OctoPrint","description":"OctoPrint provides a snappy web interface for controlling a 3D printer (RepRap, Ultimaker, ...).","fork":false,"url":"https://api.github.com/repos/foosel/OctoPrint","forks_url":"https://api.github.com/repos/foosel/OctoPrint/forks","keys_url":"https://api.github.com/repos/foosel/OctoPrint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foosel/OctoPrint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foosel/OctoPrint/teams","hooks_url":"https://api.github.com/repos/foosel/OctoPrint/hooks","issue_events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/events{/number}","events_url":"https://api.github.com/repos/foosel/OctoPrint/events","assignees_url":"https://api.github.com/repos/foosel/OctoPrint/assignees{/user}","branches_url":"https://api.github.com/repos/foosel/OctoPrint/branches{/branch}","tags_url":"https://api.github.com/repos/foosel/OctoPrint/tags","blobs_url":"https://api.github.com/repos/foosel/OctoPrint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foosel/OctoPrint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foosel/OctoPrint/git/refs{/sha}","trees_url":"https://api.github.com/repos/foosel/OctoPrint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foosel/OctoPrint/statuses/{sha}","languages_url":"https://api.github.com/repos/foosel/OctoPrint/languages","stargazers_url":"https://api.github.com/repos/foosel/OctoPrint/stargazers","contributors_url":"https://api.github.com/repos/foosel/OctoPrint/contributors","subscribers_url":"https://api.github.com/repos/foosel/OctoPrint/subscribers","subscription_url":"https://api.github.com/repos/foosel/OctoPrint/subscription","commits_url":"https://api.github.com/repos/foosel/OctoPrint/commits{/sha}","git_commits_url":"https://api.github.com/repos/foosel/OctoPrint/git/commits{/sha}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/comments{/number}","issue_comment_url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments{/number}","contents_url":"https://api.github.com/repos/foosel/OctoPrint/contents/{+path}","compare_url":"https://api.github.com/repos/foosel/OctoPrint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foosel/OctoPrint/merges","archive_url":"https://api.github.com/repos/foosel/OctoPrint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foosel/OctoPrint/downloads","issues_url":"https://api.github.com/repos/foosel/OctoPrint/issues{/number}","pulls_url":"https://api.github.com/repos/foosel/OctoPrint/pulls{/number}","milestones_url":"https://api.github.com/repos/foosel/OctoPrint/milestones{/number}","notifications_url":"https://api.github.com/repos/foosel/OctoPrint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foosel/OctoPrint/labels{/name}","releases_url":"https://api.github.com/repos/foosel/OctoPrint/releases{/id}","created_at":"2012-12-31T12:20:57Z","updated_at":"2015-08-06T15:18:13Z","pushed_at":"2015-08-06T20:42:06Z","git_url":"git://github.com/foosel/OctoPrint.git","ssh_url":"git@github.com:foosel/OctoPrint.git","clone_url":"https://github.com/foosel/OctoPrint.git","svn_url":"https://github.com/foosel/OctoPrint","homepage":"http://octoprint.org","size":39506,"stargazers_count":971,"watchers_count":971,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":436,"mirror_url":null,"open_issues_count":145,"forks":436,"open_issues":145,"watchers":971,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013"},"html":{"href":"https://github.com/foosel/OctoPrint/pull/1013"},"issue":{"href":"https://api.github.com/repos/foosel/OctoPrint/issues/1013"},"comments":{"href":"https://api.github.com/repos/foosel/OctoPrint/issues/1013/comments"},"review_comments":{"href":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013/comments"},"review_comment":{"href":"https://api.github.com/repos/foosel/OctoPrint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foosel/OctoPrint/pulls/1013/commits"},"statuses":{"href":"https://api.github.com/repos/foosel/OctoPrint/statuses/e180910d444f2d3eebe21945da22f44b0ff3c2b0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":29,"deletions":1,"changed_files":3}}