{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/comments/56960232","id":56960232,"diff_hunk":"@@ -117,6 +114,30 @@ def sanitizepunctuation(text, quotes=False, apostrophes=False):\n         text = apostrophe.sub('\\'', text)\n     return text\n \n+def findtagreplacement(text):\n+    \"\"\"Search through a token to see whether it contains a replaced tag.\n+    Allows finding a single tag replacement only.\n+\n+    text - str(): a token\n+    \"\"\"\n+\n+    tagreplacement = re_compile('##@(\\w+)(?:-(\\d+))?##')\n+\n+    tagsreplaced = tagreplacement.search(text)\n+\n+    if tagsreplaced:\n+        tagtype = str(tagsreplaced.group(1))\n+        try:\n+            # This group is optional (though it should now always be generated)","path":"src/sdsc/__init__.py","position":91,"original_position":28,"commit_id":"115c846ab654e2ef8b246b084a35e21fc2efedef","original_commit_id":"06930b31f684fff42d58907786cc9132779e6386","user":{"login":"Vogtinator","id":1622084,"avatar_url":"https://avatars.githubusercontent.com/u/1622084?v=3","gravatar_id":"","url":"https://api.github.com/users/Vogtinator","html_url":"https://github.com/Vogtinator","followers_url":"https://api.github.com/users/Vogtinator/followers","following_url":"https://api.github.com/users/Vogtinator/following{/other_user}","gists_url":"https://api.github.com/users/Vogtinator/gists{/gist_id}","starred_url":"https://api.github.com/users/Vogtinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vogtinator/subscriptions","organizations_url":"https://api.github.com/users/Vogtinator/orgs","repos_url":"https://api.github.com/users/Vogtinator/repos","events_url":"https://api.github.com/users/Vogtinator/events{/privacy}","received_events_url":"https://api.github.com/users/Vogtinator/received_events","type":"User","site_admin":false},"body":"If it *should* always be generated, not being there is a bug and should probably be reported.","created_at":"2016-03-22T09:57:12Z","updated_at":"2016-03-22T09:57:12Z","html_url":"https://github.com/openSUSE/suse-doc-style-checker/pull/71#discussion_r56960232","pull_request_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/comments/56960232"},"html":{"href":"https://github.com/openSUSE/suse-doc-style-checker/pull/71#discussion_r56960232"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71","id":63559804,"html_url":"https://github.com/openSUSE/suse-doc-style-checker/pull/71","diff_url":"https://github.com/openSUSE/suse-doc-style-checker/pull/71.diff","patch_url":"https://github.com/openSUSE/suse-doc-style-checker/pull/71.patch","issue_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/71","number":71,"state":"open","locked":false,"title":"Feature/refactor: Refactor some functions a bit","user":{"login":"Vogtinator","id":1622084,"avatar_url":"https://avatars.githubusercontent.com/u/1622084?v=3","gravatar_id":"","url":"https://api.github.com/users/Vogtinator","html_url":"https://github.com/Vogtinator","followers_url":"https://api.github.com/users/Vogtinator/followers","following_url":"https://api.github.com/users/Vogtinator/following{/other_user}","gists_url":"https://api.github.com/users/Vogtinator/gists{/gist_id}","starred_url":"https://api.github.com/users/Vogtinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vogtinator/subscriptions","organizations_url":"https://api.github.com/users/Vogtinator/orgs","repos_url":"https://api.github.com/users/Vogtinator/repos","events_url":"https://api.github.com/users/Vogtinator/events{/privacy}","received_events_url":"https://api.github.com/users/Vogtinator/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-21T12:59:15Z","updated_at":"2016-03-22T09:57:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1da209bafc8fdf21f45e0987a01407f67a2f7450","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71/commits","review_comments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71/comments","review_comment_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/71/comments","statuses_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/statuses/115c846ab654e2ef8b246b084a35e21fc2efedef","head":{"label":"openSUSE:feature/refactor","ref":"feature/refactor","sha":"115c846ab654e2ef8b246b084a35e21fc2efedef","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":42921510,"name":"suse-doc-style-checker","full_name":"openSUSE/suse-doc-style-checker","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/suse-doc-style-checker","description":"Style Checker for SUSE Documentation","fork":false,"url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker","forks_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/forks","keys_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/teams","hooks_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/events","assignees_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/tags","blobs_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/languages","stargazers_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/subscription","commits_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/merges","archive_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/downloads","issues_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/deployments","created_at":"2015-09-22T08:32:14Z","updated_at":"2016-02-22T14:07:55Z","pushed_at":"2016-03-22T08:48:55Z","git_url":"git://github.com/openSUSE/suse-doc-style-checker.git","ssh_url":"git@github.com:openSUSE/suse-doc-style-checker.git","clone_url":"https://github.com/openSUSE/suse-doc-style-checker.git","svn_url":"https://github.com/openSUSE/suse-doc-style-checker","homepage":"","size":654,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":43,"forks":0,"open_issues":43,"watchers":0,"default_branch":"develop"}},"base":{"label":"openSUSE:develop","ref":"develop","sha":"5859d788a5692d9026d1a7dca91441502cd1c662","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":42921510,"name":"suse-doc-style-checker","full_name":"openSUSE/suse-doc-style-checker","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/suse-doc-style-checker","description":"Style Checker for SUSE Documentation","fork":false,"url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker","forks_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/forks","keys_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/teams","hooks_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/events","assignees_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/tags","blobs_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/languages","stargazers_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/subscription","commits_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/merges","archive_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/downloads","issues_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/deployments","created_at":"2015-09-22T08:32:14Z","updated_at":"2016-02-22T14:07:55Z","pushed_at":"2016-03-22T08:48:55Z","git_url":"git://github.com/openSUSE/suse-doc-style-checker.git","ssh_url":"git@github.com:openSUSE/suse-doc-style-checker.git","clone_url":"https://github.com/openSUSE/suse-doc-style-checker.git","svn_url":"https://github.com/openSUSE/suse-doc-style-checker","homepage":"","size":654,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":43,"forks":0,"open_issues":43,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71"},"html":{"href":"https://github.com/openSUSE/suse-doc-style-checker/pull/71"},"issue":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/71"},"comments":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/suse-doc-style-checker/statuses/115c846ab654e2ef8b246b084a35e21fc2efedef"}}}}