{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9","id":36744156,"html_url":"https://github.com/ekalinin/github-markdown-toc/pull/9","diff_url":"https://github.com/ekalinin/github-markdown-toc/pull/9.diff","patch_url":"https://github.com/ekalinin/github-markdown-toc/pull/9.patch","issue_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/9","number":9,"state":"closed","locked":false,"title":"Help if no args given","user":{"login":"aurelien-rainone","id":476650,"avatar_url":"https://avatars.githubusercontent.com/u/476650?v=3","gravatar_id":"","url":"https://api.github.com/users/aurelien-rainone","html_url":"https://github.com/aurelien-rainone","followers_url":"https://api.github.com/users/aurelien-rainone/followers","following_url":"https://api.github.com/users/aurelien-rainone/following{/other_user}","gists_url":"https://api.github.com/users/aurelien-rainone/gists{/gist_id}","starred_url":"https://api.github.com/users/aurelien-rainone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurelien-rainone/subscriptions","organizations_url":"https://api.github.com/users/aurelien-rainone/orgs","repos_url":"https://api.github.com/users/aurelien-rainone/repos","events_url":"https://api.github.com/users/aurelien-rainone/events{/privacy}","received_events_url":"https://api.github.com/users/aurelien-rainone/received_events","type":"User","site_admin":false},"body":"simple addition : print usage also if no arguments given, not only if ```--help``` is given\r\nthis was the content of my previous pull request, that i just closed to create the current one, when i add a new test to check that we have the same output in this case than if ```--help``` was given.\r\nBy the way; some tests unrelated to this were already failing\r\n```\r\npanty@desk:[~/Documents/dev/github-markdown-toc]: bats tests\r\n ✓ TOC for local README.md\r\n ✗ TOC for remote README.md\r\n   (from function `assert_equal' in file tests/test_helper.bash, line 7,\r\n    in test file tests/tests.bats, line 32)\r\n     `assert_equal \"${lines[2]}\"  \"  * [sitemap.js](#sitemapjs)\"' failed\r\n   expected:   * [sitemap.js](op=\"mainContentOfPage\"><h1><)\r\n   actual:     * [sitemap.js](#sitemapjs)\r\n ✗ TOC for mixed README.md (remote/local)\r\n   (from function `assert_equal' in file tests/test_helper.bash, line 7,\r\n    in test file tests/tests.bats, line 55)\r\n     `assert_equal \"${lines[10]}\"  \"  * [sitemap.js](https://github.com/ekalinin/sitemap.js/blob/master/README.md#sitemapjs)\"' failed\r\n   expected:   * [sitemap.js](https://github.com/ekalinin/sitemap.js/blob/master/README.mdop=\"mainContentOfPage\"><h1><)\r\n   actual:     * [sitemap.js](https://github.com/ekalinin/sitemap.js/blob/master/README.md#sitemapjs)\r\n ✓ TOC for markdown from stdin\r\n ✓ --help\r\n ✓ no arguments\r\n ✓ --version\r\n\r\n```","created_at":"2015-06-02T15:53:35Z","updated_at":"2015-06-02T20:03:20Z","closed_at":"2015-06-02T20:03:20Z","merged_at":"2015-06-02T20:03:20Z","merge_commit_sha":"682b36a1f5653211adf77d4f6f37c01707787a16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/9/comments","statuses_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/statuses/d750815f3f90c3c9f6d3ecf78ba018f5de94a2cb","head":{"label":"aurelien-rainone:help-if-no-args-given","ref":"help-if-no-args-given","sha":"d750815f3f90c3c9f6d3ecf78ba018f5de94a2cb","user":{"login":"aurelien-rainone","id":476650,"avatar_url":"https://avatars.githubusercontent.com/u/476650?v=3","gravatar_id":"","url":"https://api.github.com/users/aurelien-rainone","html_url":"https://github.com/aurelien-rainone","followers_url":"https://api.github.com/users/aurelien-rainone/followers","following_url":"https://api.github.com/users/aurelien-rainone/following{/other_user}","gists_url":"https://api.github.com/users/aurelien-rainone/gists{/gist_id}","starred_url":"https://api.github.com/users/aurelien-rainone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurelien-rainone/subscriptions","organizations_url":"https://api.github.com/users/aurelien-rainone/orgs","repos_url":"https://api.github.com/users/aurelien-rainone/repos","events_url":"https://api.github.com/users/aurelien-rainone/events{/privacy}","received_events_url":"https://api.github.com/users/aurelien-rainone/received_events","type":"User","site_admin":false},"repo":{"id":36743263,"name":"github-markdown-toc","full_name":"aurelien-rainone/github-markdown-toc","owner":{"login":"aurelien-rainone","id":476650,"avatar_url":"https://avatars.githubusercontent.com/u/476650?v=3","gravatar_id":"","url":"https://api.github.com/users/aurelien-rainone","html_url":"https://github.com/aurelien-rainone","followers_url":"https://api.github.com/users/aurelien-rainone/followers","following_url":"https://api.github.com/users/aurelien-rainone/following{/other_user}","gists_url":"https://api.github.com/users/aurelien-rainone/gists{/gist_id}","starred_url":"https://api.github.com/users/aurelien-rainone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurelien-rainone/subscriptions","organizations_url":"https://api.github.com/users/aurelien-rainone/orgs","repos_url":"https://api.github.com/users/aurelien-rainone/repos","events_url":"https://api.github.com/users/aurelien-rainone/events{/privacy}","received_events_url":"https://api.github.com/users/aurelien-rainone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aurelien-rainone/github-markdown-toc","description":"Easy TOC creation for GitHub README.md","fork":true,"url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc","forks_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/forks","keys_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/teams","hooks_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/hooks","issue_events_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/issues/events{/number}","events_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/events","assignees_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/assignees{/user}","branches_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/branches{/branch}","tags_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/tags","blobs_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/git/refs{/sha}","trees_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/statuses/{sha}","languages_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/languages","stargazers_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/stargazers","contributors_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/contributors","subscribers_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/subscribers","subscription_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/subscription","commits_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/commits{/sha}","git_commits_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/git/commits{/sha}","comments_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/comments{/number}","issue_comment_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/issues/comments{/number}","contents_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/contents/{+path}","compare_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/merges","archive_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/downloads","issues_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/issues{/number}","pulls_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/pulls{/number}","milestones_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/milestones{/number}","notifications_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/labels{/name}","releases_url":"https://api.github.com/repos/aurelien-rainone/github-markdown-toc/releases{/id}","created_at":"2015-06-02T15:38:07Z","updated_at":"2015-06-02T15:38:07Z","pushed_at":"2015-06-02T15:50:33Z","git_url":"git://github.com/aurelien-rainone/github-markdown-toc.git","ssh_url":"git@github.com:aurelien-rainone/github-markdown-toc.git","clone_url":"https://github.com/aurelien-rainone/github-markdown-toc.git","svn_url":"https://github.com/aurelien-rainone/github-markdown-toc","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"master"}},"base":{"label":"ekalinin:master","ref":"master","sha":"758b2c3a19df71428a71ecefc1af059ec320c386","user":{"login":"ekalinin","id":234891,"avatar_url":"https://avatars.githubusercontent.com/u/234891?v=3","gravatar_id":"","url":"https://api.github.com/users/ekalinin","html_url":"https://github.com/ekalinin","followers_url":"https://api.github.com/users/ekalinin/followers","following_url":"https://api.github.com/users/ekalinin/following{/other_user}","gists_url":"https://api.github.com/users/ekalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/ekalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekalinin/subscriptions","organizations_url":"https://api.github.com/users/ekalinin/orgs","repos_url":"https://api.github.com/users/ekalinin/repos","events_url":"https://api.github.com/users/ekalinin/events{/privacy}","received_events_url":"https://api.github.com/users/ekalinin/received_events","type":"User","site_admin":false},"repo":{"id":23584347,"name":"github-markdown-toc","full_name":"ekalinin/github-markdown-toc","owner":{"login":"ekalinin","id":234891,"avatar_url":"https://avatars.githubusercontent.com/u/234891?v=3","gravatar_id":"","url":"https://api.github.com/users/ekalinin","html_url":"https://github.com/ekalinin","followers_url":"https://api.github.com/users/ekalinin/followers","following_url":"https://api.github.com/users/ekalinin/following{/other_user}","gists_url":"https://api.github.com/users/ekalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/ekalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekalinin/subscriptions","organizations_url":"https://api.github.com/users/ekalinin/orgs","repos_url":"https://api.github.com/users/ekalinin/repos","events_url":"https://api.github.com/users/ekalinin/events{/privacy}","received_events_url":"https://api.github.com/users/ekalinin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ekalinin/github-markdown-toc","description":"Easy TOC creation for GitHub README.md","fork":false,"url":"https://api.github.com/repos/ekalinin/github-markdown-toc","forks_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/forks","keys_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/teams","hooks_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/hooks","issue_events_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/events{/number}","events_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/events","assignees_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/assignees{/user}","branches_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/branches{/branch}","tags_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/tags","blobs_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/statuses/{sha}","languages_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/languages","stargazers_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/stargazers","contributors_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/contributors","subscribers_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/subscribers","subscription_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/subscription","commits_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/contents/{+path}","compare_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/merges","archive_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/downloads","issues_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues{/number}","pulls_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls{/number}","milestones_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/milestones{/number}","notifications_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/labels{/name}","releases_url":"https://api.github.com/repos/ekalinin/github-markdown-toc/releases{/id}","created_at":"2014-09-02T15:33:16Z","updated_at":"2015-06-01T04:27:04Z","pushed_at":"2015-06-02T20:03:21Z","git_url":"git://github.com/ekalinin/github-markdown-toc.git","ssh_url":"git@github.com:ekalinin/github-markdown-toc.git","clone_url":"https://github.com/ekalinin/github-markdown-toc.git","svn_url":"https://github.com/ekalinin/github-markdown-toc","homepage":"","size":218,"stargazers_count":54,"watchers_count":54,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9"},"html":{"href":"https://github.com/ekalinin/github-markdown-toc/pull/9"},"issue":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/9"},"comments":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ekalinin/github-markdown-toc/statuses/d750815f3f90c3c9f6d3ecf78ba018f5de94a2cb"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ekalinin","id":234891,"avatar_url":"https://avatars.githubusercontent.com/u/234891?v=3","gravatar_id":"","url":"https://api.github.com/users/ekalinin","html_url":"https://github.com/ekalinin","followers_url":"https://api.github.com/users/ekalinin/followers","following_url":"https://api.github.com/users/ekalinin/following{/other_user}","gists_url":"https://api.github.com/users/ekalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/ekalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekalinin/subscriptions","organizations_url":"https://api.github.com/users/ekalinin/orgs","repos_url":"https://api.github.com/users/ekalinin/repos","events_url":"https://api.github.com/users/ekalinin/events{/privacy}","received_events_url":"https://api.github.com/users/ekalinin/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":12,"deletions":1,"changed_files":2}}