{"action":"closed","number":118,"pull_request":{"url":"https://api.github.com/repos/bram85/topydo/pulls/118","id":62650823,"html_url":"https://github.com/bram85/topydo/pull/118","diff_url":"https://github.com/bram85/topydo/pull/118.diff","patch_url":"https://github.com/bram85/topydo/pull/118.patch","issue_url":"https://api.github.com/repos/bram85/topydo/issues/118","number":118,"state":"closed","locked":false,"title":"Provides a smart way to determine the number 'top' lines","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"body":"Looks at the prompt or PS1 environmental variables to determine the number of\r\nnewlines contained in them.\r\n\r\nI've tested in on my end in Windows, and it works as expected. I don't have Linux or Mac box, so I haven't been able to test it there.\r\n\r\nBecause of the way it works (by counting newlines), it won't work exactly right if the prompt goes over the line end without a line break (i.e. for a really long path) or if there are conditional linebreaks in the PS1 variable.\r\n\r\nTests have been added and updated as well.\r\n\r\nFixes #102.","created_at":"2016-03-12T20:04:14Z","updated_at":"2016-06-03T10:10:43Z","closed_at":"2016-06-03T10:10:43Z","merged_at":"2016-06-03T10:10:43Z","merge_commit_sha":"1d19ce3d1f29dafba5c1bc3054ba714dd0757d10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bram85/topydo/pulls/118/commits","review_comments_url":"https://api.github.com/repos/bram85/topydo/pulls/118/comments","review_comment_url":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bram85/topydo/issues/118/comments","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/87b8b0170dbbbc9267e162ffc1be8c828113172a","head":{"label":"MinchinWeb:fix-102","ref":"fix-102","sha":"87b8b0170dbbbc9267e162ffc1be8c828113172a","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"repo":{"id":40417299,"name":"topydo","full_name":"MinchinWeb/topydo","owner":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MinchinWeb/topydo","description":"A command-line todo list application using the todo.txt format.","fork":true,"url":"https://api.github.com/repos/MinchinWeb/topydo","forks_url":"https://api.github.com/repos/MinchinWeb/topydo/forks","keys_url":"https://api.github.com/repos/MinchinWeb/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MinchinWeb/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MinchinWeb/topydo/teams","hooks_url":"https://api.github.com/repos/MinchinWeb/topydo/hooks","issue_events_url":"https://api.github.com/repos/MinchinWeb/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/MinchinWeb/topydo/events","assignees_url":"https://api.github.com/repos/MinchinWeb/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/MinchinWeb/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/MinchinWeb/topydo/tags","blobs_url":"https://api.github.com/repos/MinchinWeb/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MinchinWeb/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MinchinWeb/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/MinchinWeb/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MinchinWeb/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/MinchinWeb/topydo/languages","stargazers_url":"https://api.github.com/repos/MinchinWeb/topydo/stargazers","contributors_url":"https://api.github.com/repos/MinchinWeb/topydo/contributors","subscribers_url":"https://api.github.com/repos/MinchinWeb/topydo/subscribers","subscription_url":"https://api.github.com/repos/MinchinWeb/topydo/subscription","commits_url":"https://api.github.com/repos/MinchinWeb/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/MinchinWeb/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/MinchinWeb/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/MinchinWeb/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/MinchinWeb/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/MinchinWeb/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MinchinWeb/topydo/merges","archive_url":"https://api.github.com/repos/MinchinWeb/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MinchinWeb/topydo/downloads","issues_url":"https://api.github.com/repos/MinchinWeb/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/MinchinWeb/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/MinchinWeb/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/MinchinWeb/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MinchinWeb/topydo/labels{/name}","releases_url":"https://api.github.com/repos/MinchinWeb/topydo/releases{/id}","deployments_url":"https://api.github.com/repos/MinchinWeb/topydo/deployments","created_at":"2015-08-08T21:46:23Z","updated_at":"2015-08-08T21:46:24Z","pushed_at":"2016-06-03T02:29:05Z","git_url":"git://github.com/MinchinWeb/topydo.git","ssh_url":"git@github.com:MinchinWeb/topydo.git","clone_url":"https://github.com/MinchinWeb/topydo.git","svn_url":"https://github.com/MinchinWeb/topydo","homepage":"","size":1518,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"stable"}},"base":{"label":"bram85:master","ref":"master","sha":"14ab34d62c11b5724e7e58118eaf5f5933b33c5d","user":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"repo":{"id":25428376,"name":"topydo","full_name":"bram85/topydo","owner":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bram85/topydo","description":"A command-line todo list application using the todo.txt format.","fork":false,"url":"https://api.github.com/repos/bram85/topydo","forks_url":"https://api.github.com/repos/bram85/topydo/forks","keys_url":"https://api.github.com/repos/bram85/topydo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bram85/topydo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bram85/topydo/teams","hooks_url":"https://api.github.com/repos/bram85/topydo/hooks","issue_events_url":"https://api.github.com/repos/bram85/topydo/issues/events{/number}","events_url":"https://api.github.com/repos/bram85/topydo/events","assignees_url":"https://api.github.com/repos/bram85/topydo/assignees{/user}","branches_url":"https://api.github.com/repos/bram85/topydo/branches{/branch}","tags_url":"https://api.github.com/repos/bram85/topydo/tags","blobs_url":"https://api.github.com/repos/bram85/topydo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bram85/topydo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bram85/topydo/git/refs{/sha}","trees_url":"https://api.github.com/repos/bram85/topydo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bram85/topydo/statuses/{sha}","languages_url":"https://api.github.com/repos/bram85/topydo/languages","stargazers_url":"https://api.github.com/repos/bram85/topydo/stargazers","contributors_url":"https://api.github.com/repos/bram85/topydo/contributors","subscribers_url":"https://api.github.com/repos/bram85/topydo/subscribers","subscription_url":"https://api.github.com/repos/bram85/topydo/subscription","commits_url":"https://api.github.com/repos/bram85/topydo/commits{/sha}","git_commits_url":"https://api.github.com/repos/bram85/topydo/git/commits{/sha}","comments_url":"https://api.github.com/repos/bram85/topydo/comments{/number}","issue_comment_url":"https://api.github.com/repos/bram85/topydo/issues/comments{/number}","contents_url":"https://api.github.com/repos/bram85/topydo/contents/{+path}","compare_url":"https://api.github.com/repos/bram85/topydo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bram85/topydo/merges","archive_url":"https://api.github.com/repos/bram85/topydo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bram85/topydo/downloads","issues_url":"https://api.github.com/repos/bram85/topydo/issues{/number}","pulls_url":"https://api.github.com/repos/bram85/topydo/pulls{/number}","milestones_url":"https://api.github.com/repos/bram85/topydo/milestones{/number}","notifications_url":"https://api.github.com/repos/bram85/topydo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bram85/topydo/labels{/name}","releases_url":"https://api.github.com/repos/bram85/topydo/releases{/id}","deployments_url":"https://api.github.com/repos/bram85/topydo/deployments","created_at":"2014-10-19T13:49:43Z","updated_at":"2016-05-18T13:52:51Z","pushed_at":"2016-06-03T10:10:44Z","git_url":"git://github.com/bram85/topydo.git","ssh_url":"git@github.com:bram85/topydo.git","clone_url":"https://github.com/bram85/topydo.git","svn_url":"https://github.com/bram85/topydo","homepage":"","size":1627,"stargazers_count":102,"watchers_count":102,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bram85/topydo/pulls/118"},"html":{"href":"https://github.com/bram85/topydo/pull/118"},"issue":{"href":"https://api.github.com/repos/bram85/topydo/issues/118"},"comments":{"href":"https://api.github.com/repos/bram85/topydo/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/bram85/topydo/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/bram85/topydo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bram85/topydo/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/bram85/topydo/statuses/87b8b0170dbbbc9267e162ffc1be8c828113172a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bram85","id":63248,"avatar_url":"https://avatars.githubusercontent.com/u/63248?v=3","gravatar_id":"","url":"https://api.github.com/users/bram85","html_url":"https://github.com/bram85","followers_url":"https://api.github.com/users/bram85/followers","following_url":"https://api.github.com/users/bram85/following{/other_user}","gists_url":"https://api.github.com/users/bram85/gists{/gist_id}","starred_url":"https://api.github.com/users/bram85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bram85/subscriptions","organizations_url":"https://api.github.com/users/bram85/orgs","repos_url":"https://api.github.com/users/bram85/repos","events_url":"https://api.github.com/users/bram85/events{/privacy}","received_events_url":"https://api.github.com/users/bram85/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":5,"additions":68,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"bram85"}}