{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/plugin_template/pulls/comments/140888413","pull_request_review_id":65024848,"id":140888413,"diff_hunk":"@@ -0,0 +1,105 @@\n+#!/usr/bin/env python3\n+\n+import argparse\n+import os\n+import re\n+import sys\n+import tempfile\n+import textwrap\n+\n+TEMPLATE_SNAKE = 'pulp_plugin_template'\n+TEMPLATE_CAMEL = 'PulpPluginTemplate'\n+TEMPLATE_CAMEL_SHORT = 'PluginTemplate'\n+TEMPLATE_DASH = 'pulp-plugin-template'\n+TEMPLATE_DASH_SHORT = 'plugin-template'\n+IGNORE_DIRS = ['.git']\n+IGNORE_FILES = ['.gitignore', 'LICENSE', 'rename.py', 'flake8.cfg']\n+\n+\n+def is_valid(name):\n+    \"\"\"\n+    Check if specified name is compliant with requirements for it\n+    \"\"\"\n+    return bool(re.match(r'^[a-z][0-9a-z_]{2,15}$', name))","path":"rename.py","position":23,"original_position":23,"commit_id":"1ac043ea8f413975c9810a3b584d24d3886dc00b","original_commit_id":"1ac043ea8f413975c9810a3b584d24d3886dc00b","user":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars1.githubusercontent.com/u/16638409?v=4","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"body":"Will do.\r\nThere are few reasons why I suggest to put at least some limit. One limit for us is a directory name - depends on filesystem but usually max filename length is 255. We also use plugin name in class names so for readability and to fit line length :) it makes sense to ask for something relatively short I think. And 16 characters seem reasonable to me and it can be easily changed by anyone in case they need more.","created_at":"2017-09-25T20:27:56Z","updated_at":"2017-09-25T20:27:56Z","html_url":"https://github.com/pulp/plugin_template/pull/1#discussion_r140888413","pull_request_url":"https://api.github.com/repos/pulp/plugin_template/pulls/1","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/comments/140888413"},"html":{"href":"https://github.com/pulp/plugin_template/pull/1#discussion_r140888413"},"pull_request":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/1"}},"in_reply_to_id":140880067},"pull_request":{"url":"https://api.github.com/repos/pulp/plugin_template/pulls/1","id":142911933,"html_url":"https://github.com/pulp/plugin_template/pull/1","diff_url":"https://github.com/pulp/plugin_template/pull/1.diff","patch_url":"https://github.com/pulp/plugin_template/pull/1.patch","issue_url":"https://api.github.com/repos/pulp/plugin_template/issues/1","number":1,"state":"open","locked":false,"title":"Add template plugin and renaming script","user":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars1.githubusercontent.com/u/16638409?v=4","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"body":"closes #2859\r\nhttps://pulp.plan.io/issues/2859","created_at":"2017-09-25T15:21:48Z","updated_at":"2017-09-25T20:27:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbca32c000071d7b8f85fe5b31b22ddf08cee4d3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pulp/plugin_template/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pulp/plugin_template/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pulp/plugin_template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulp/plugin_template/issues/1/comments","statuses_url":"https://api.github.com/repos/pulp/plugin_template/statuses/1ac043ea8f413975c9810a3b584d24d3886dc00b","head":{"label":"goosemania:task2859","ref":"task2859","sha":"1ac043ea8f413975c9810a3b584d24d3886dc00b","user":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars1.githubusercontent.com/u/16638409?v=4","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"repo":{"id":104753940,"name":"plugin_template","full_name":"goosemania/plugin_template","owner":{"login":"goosemania","id":16638409,"avatar_url":"https://avatars1.githubusercontent.com/u/16638409?v=4","gravatar_id":"","url":"https://api.github.com/users/goosemania","html_url":"https://github.com/goosemania","followers_url":"https://api.github.com/users/goosemania/followers","following_url":"https://api.github.com/users/goosemania/following{/other_user}","gists_url":"https://api.github.com/users/goosemania/gists{/gist_id}","starred_url":"https://api.github.com/users/goosemania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goosemania/subscriptions","organizations_url":"https://api.github.com/users/goosemania/orgs","repos_url":"https://api.github.com/users/goosemania/repos","events_url":"https://api.github.com/users/goosemania/events{/privacy}","received_events_url":"https://api.github.com/users/goosemania/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goosemania/plugin_template","description":null,"fork":true,"url":"https://api.github.com/repos/goosemania/plugin_template","forks_url":"https://api.github.com/repos/goosemania/plugin_template/forks","keys_url":"https://api.github.com/repos/goosemania/plugin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goosemania/plugin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goosemania/plugin_template/teams","hooks_url":"https://api.github.com/repos/goosemania/plugin_template/hooks","issue_events_url":"https://api.github.com/repos/goosemania/plugin_template/issues/events{/number}","events_url":"https://api.github.com/repos/goosemania/plugin_template/events","assignees_url":"https://api.github.com/repos/goosemania/plugin_template/assignees{/user}","branches_url":"https://api.github.com/repos/goosemania/plugin_template/branches{/branch}","tags_url":"https://api.github.com/repos/goosemania/plugin_template/tags","blobs_url":"https://api.github.com/repos/goosemania/plugin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goosemania/plugin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goosemania/plugin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/goosemania/plugin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goosemania/plugin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/goosemania/plugin_template/languages","stargazers_url":"https://api.github.com/repos/goosemania/plugin_template/stargazers","contributors_url":"https://api.github.com/repos/goosemania/plugin_template/contributors","subscribers_url":"https://api.github.com/repos/goosemania/plugin_template/subscribers","subscription_url":"https://api.github.com/repos/goosemania/plugin_template/subscription","commits_url":"https://api.github.com/repos/goosemania/plugin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/goosemania/plugin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/goosemania/plugin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/goosemania/plugin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/goosemania/plugin_template/contents/{+path}","compare_url":"https://api.github.com/repos/goosemania/plugin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goosemania/plugin_template/merges","archive_url":"https://api.github.com/repos/goosemania/plugin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goosemania/plugin_template/downloads","issues_url":"https://api.github.com/repos/goosemania/plugin_template/issues{/number}","pulls_url":"https://api.github.com/repos/goosemania/plugin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/goosemania/plugin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/goosemania/plugin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goosemania/plugin_template/labels{/name}","releases_url":"https://api.github.com/repos/goosemania/plugin_template/releases{/id}","deployments_url":"https://api.github.com/repos/goosemania/plugin_template/deployments","created_at":"2017-09-25T13:31:39Z","updated_at":"2017-09-25T14:02:29Z","pushed_at":"2017-09-25T15:20:20Z","git_url":"git://github.com/goosemania/plugin_template.git","ssh_url":"git@github.com:goosemania/plugin_template.git","clone_url":"https://github.com/goosemania/plugin_template.git","svn_url":"https://github.com/goosemania/plugin_template","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"pulp:master","ref":"master","sha":"d77c316405278e4e2dcaab099156b03d844a776b","user":{"login":"pulp","id":2103606,"avatar_url":"https://avatars1.githubusercontent.com/u/2103606?v=4","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"repo":{"id":104753269,"name":"plugin_template","full_name":"pulp/plugin_template","owner":{"login":"pulp","id":2103606,"avatar_url":"https://avatars1.githubusercontent.com/u/2103606?v=4","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulp/plugin_template","description":null,"fork":false,"url":"https://api.github.com/repos/pulp/plugin_template","forks_url":"https://api.github.com/repos/pulp/plugin_template/forks","keys_url":"https://api.github.com/repos/pulp/plugin_template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulp/plugin_template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulp/plugin_template/teams","hooks_url":"https://api.github.com/repos/pulp/plugin_template/hooks","issue_events_url":"https://api.github.com/repos/pulp/plugin_template/issues/events{/number}","events_url":"https://api.github.com/repos/pulp/plugin_template/events","assignees_url":"https://api.github.com/repos/pulp/plugin_template/assignees{/user}","branches_url":"https://api.github.com/repos/pulp/plugin_template/branches{/branch}","tags_url":"https://api.github.com/repos/pulp/plugin_template/tags","blobs_url":"https://api.github.com/repos/pulp/plugin_template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulp/plugin_template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulp/plugin_template/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulp/plugin_template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulp/plugin_template/statuses/{sha}","languages_url":"https://api.github.com/repos/pulp/plugin_template/languages","stargazers_url":"https://api.github.com/repos/pulp/plugin_template/stargazers","contributors_url":"https://api.github.com/repos/pulp/plugin_template/contributors","subscribers_url":"https://api.github.com/repos/pulp/plugin_template/subscribers","subscription_url":"https://api.github.com/repos/pulp/plugin_template/subscription","commits_url":"https://api.github.com/repos/pulp/plugin_template/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulp/plugin_template/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulp/plugin_template/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulp/plugin_template/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulp/plugin_template/contents/{+path}","compare_url":"https://api.github.com/repos/pulp/plugin_template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulp/plugin_template/merges","archive_url":"https://api.github.com/repos/pulp/plugin_template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulp/plugin_template/downloads","issues_url":"https://api.github.com/repos/pulp/plugin_template/issues{/number}","pulls_url":"https://api.github.com/repos/pulp/plugin_template/pulls{/number}","milestones_url":"https://api.github.com/repos/pulp/plugin_template/milestones{/number}","notifications_url":"https://api.github.com/repos/pulp/plugin_template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulp/plugin_template/labels{/name}","releases_url":"https://api.github.com/repos/pulp/plugin_template/releases{/id}","deployments_url":"https://api.github.com/repos/pulp/plugin_template/deployments","created_at":"2017-09-25T13:25:20Z","updated_at":"2017-09-25T14:01:34Z","pushed_at":"2017-09-25T15:21:49Z","git_url":"git://github.com/pulp/plugin_template.git","ssh_url":"git@github.com:pulp/plugin_template.git","clone_url":"https://github.com/pulp/plugin_template.git","svn_url":"https://github.com/pulp/plugin_template","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/1"},"html":{"href":"https://github.com/pulp/plugin_template/pull/1"},"issue":{"href":"https://api.github.com/repos/pulp/plugin_template/issues/1"},"comments":{"href":"https://api.github.com/repos/pulp/plugin_template/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulp/plugin_template/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/plugin_template/statuses/1ac043ea8f413975c9810a3b584d24d3886dc00b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"goosemania"}}