{"action":"created","comment":{"url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/comments/75602344","id":75602344,"diff_hunk":"@@ -115,6 +230,33 @@\n     content => template('colorprompt/colorprompt.erb'),\n   }\n \n+  if $git_prompt {\n+    unless defined(Package[$bash_completion_package]) {\n+      package { $bash_completion_package:\n+        ensure => present,\n+      }\n+    }\n+    unless defined(Package[$git_package]) {\n+      package { $git_package:\n+        ensure => present,\n+      }\n+    }\n+  }\n+  file { \"${::colorprompt::params::bash_completion_dir}/git-prompt\":","path":"manifests/init.pp","position":228,"original_position":228,"commit_id":"6257f2906a697dc0ea41f57dfb2e86714abd362d","original_commit_id":"6257f2906a697dc0ea41f57dfb2e86714abd362d","user":{"login":"sgnl05","id":4158870,"avatar_url":"https://avatars.githubusercontent.com/u/4158870?v=3","gravatar_id":"","url":"https://api.github.com/users/sgnl05","html_url":"https://github.com/sgnl05","followers_url":"https://api.github.com/users/sgnl05/followers","following_url":"https://api.github.com/users/sgnl05/following{/other_user}","gists_url":"https://api.github.com/users/sgnl05/gists{/gist_id}","starred_url":"https://api.github.com/users/sgnl05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgnl05/subscriptions","organizations_url":"https://api.github.com/users/sgnl05/orgs","repos_url":"https://api.github.com/users/sgnl05/repos","events_url":"https://api.github.com/users/sgnl05/events{/privacy}","received_events_url":"https://api.github.com/users/sgnl05/received_events","type":"User","site_admin":false},"body":"This file type should be within the \"if $git_prompt\" statement. Running Puppet with $git_prompt set to false fails with error \"Error: Could not find dependency Package[bash-completion] for File[/etc/bash_completion.d/git-prompt] at /etc/puppet/modules/colorprompt/manifests/init.pp:258\"","created_at":"2016-08-21T20:03:16Z","updated_at":"2016-08-21T20:03:16Z","html_url":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5#discussion_r75602344","pull_request_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/comments/75602344"},"html":{"href":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5#discussion_r75602344"},"pull_request":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5","id":78327187,"html_url":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5","diff_url":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5.diff","patch_url":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5.patch","issue_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/5","number":5,"state":"open","locked":false,"title":"Add new features in module","user":{"login":"MemberIT","id":16883368,"avatar_url":"https://avatars.githubusercontent.com/u/16883368?v=3","gravatar_id":"","url":"https://api.github.com/users/MemberIT","html_url":"https://github.com/MemberIT","followers_url":"https://api.github.com/users/MemberIT/followers","following_url":"https://api.github.com/users/MemberIT/following{/other_user}","gists_url":"https://api.github.com/users/MemberIT/gists{/gist_id}","starred_url":"https://api.github.com/users/MemberIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MemberIT/subscriptions","organizations_url":"https://api.github.com/users/MemberIT/orgs","repos_url":"https://api.github.com/users/MemberIT/repos","events_url":"https://api.github.com/users/MemberIT/events{/privacy}","received_events_url":"https://api.github.com/users/MemberIT/received_events","type":"User","site_admin":false},"body":"#### Add validation fg, bg colors and styles (function validate_colors):\r\nAdded validation function of input params. \r\n#### Add feature [git-prompt](https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh \"git-prompt on github\")\r\n#### Add feature set fg, bg colors and styles of present working directory\r\n#### Rewrite templates/colorprompt.erb:\r\nNow template easier.\r\n#### Update README\r\n\r\nP.S. I'm sorry for a lot of changes on one commit.\r\nP.P.S. Sorry for my English.","created_at":"2016-07-21T14:36:38Z","updated_at":"2016-08-21T20:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2e07dd08d4b0225a3668b59a1142853f8a87aa2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/5/comments","statuses_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/statuses/6257f2906a697dc0ea41f57dfb2e86714abd362d","head":{"label":"MemberIT:feature/new_functional","ref":"feature/new_functional","sha":"6257f2906a697dc0ea41f57dfb2e86714abd362d","user":{"login":"MemberIT","id":16883368,"avatar_url":"https://avatars.githubusercontent.com/u/16883368?v=3","gravatar_id":"","url":"https://api.github.com/users/MemberIT","html_url":"https://github.com/MemberIT","followers_url":"https://api.github.com/users/MemberIT/followers","following_url":"https://api.github.com/users/MemberIT/following{/other_user}","gists_url":"https://api.github.com/users/MemberIT/gists{/gist_id}","starred_url":"https://api.github.com/users/MemberIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MemberIT/subscriptions","organizations_url":"https://api.github.com/users/MemberIT/orgs","repos_url":"https://api.github.com/users/MemberIT/repos","events_url":"https://api.github.com/users/MemberIT/events{/privacy}","received_events_url":"https://api.github.com/users/MemberIT/received_events","type":"User","site_admin":false},"repo":{"id":63874318,"name":"sgnl05-colorprompt","full_name":"MemberIT/sgnl05-colorprompt","owner":{"login":"MemberIT","id":16883368,"avatar_url":"https://avatars.githubusercontent.com/u/16883368?v=3","gravatar_id":"","url":"https://api.github.com/users/MemberIT","html_url":"https://github.com/MemberIT","followers_url":"https://api.github.com/users/MemberIT/followers","following_url":"https://api.github.com/users/MemberIT/following{/other_user}","gists_url":"https://api.github.com/users/MemberIT/gists{/gist_id}","starred_url":"https://api.github.com/users/MemberIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MemberIT/subscriptions","organizations_url":"https://api.github.com/users/MemberIT/orgs","repos_url":"https://api.github.com/users/MemberIT/repos","events_url":"https://api.github.com/users/MemberIT/events{/privacy}","received_events_url":"https://api.github.com/users/MemberIT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MemberIT/sgnl05-colorprompt","description":"Puppet module for adding colors to your bash prompt","fork":true,"url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt","forks_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/forks","keys_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/teams","hooks_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/hooks","issue_events_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/issues/events{/number}","events_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/events","assignees_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/assignees{/user}","branches_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/branches{/branch}","tags_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/tags","blobs_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/statuses/{sha}","languages_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/languages","stargazers_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/stargazers","contributors_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/contributors","subscribers_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/subscribers","subscription_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/subscription","commits_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/contents/{+path}","compare_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/merges","archive_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/downloads","issues_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/issues{/number}","pulls_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/pulls{/number}","milestones_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/milestones{/number}","notifications_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/labels{/name}","releases_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/releases{/id}","deployments_url":"https://api.github.com/repos/MemberIT/sgnl05-colorprompt/deployments","created_at":"2016-07-21T14:02:29Z","updated_at":"2016-07-21T14:02:30Z","pushed_at":"2016-07-21T14:23:39Z","git_url":"git://github.com/MemberIT/sgnl05-colorprompt.git","ssh_url":"git@github.com:MemberIT/sgnl05-colorprompt.git","clone_url":"https://github.com/MemberIT/sgnl05-colorprompt.git","svn_url":"https://github.com/MemberIT/sgnl05-colorprompt","homepage":"https://forge.puppet.com/sgnl05/colorprompt","size":58,"stargazers_count":0,"watchers_count":0,"language":"Puppet","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":"sgnl05:master","ref":"master","sha":"f64126a6a870ef8407b7c0e58761600b94d710c2","user":{"login":"sgnl05","id":4158870,"avatar_url":"https://avatars.githubusercontent.com/u/4158870?v=3","gravatar_id":"","url":"https://api.github.com/users/sgnl05","html_url":"https://github.com/sgnl05","followers_url":"https://api.github.com/users/sgnl05/followers","following_url":"https://api.github.com/users/sgnl05/following{/other_user}","gists_url":"https://api.github.com/users/sgnl05/gists{/gist_id}","starred_url":"https://api.github.com/users/sgnl05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgnl05/subscriptions","organizations_url":"https://api.github.com/users/sgnl05/orgs","repos_url":"https://api.github.com/users/sgnl05/repos","events_url":"https://api.github.com/users/sgnl05/events{/privacy}","received_events_url":"https://api.github.com/users/sgnl05/received_events","type":"User","site_admin":false},"repo":{"id":17920863,"name":"sgnl05-colorprompt","full_name":"sgnl05/sgnl05-colorprompt","owner":{"login":"sgnl05","id":4158870,"avatar_url":"https://avatars.githubusercontent.com/u/4158870?v=3","gravatar_id":"","url":"https://api.github.com/users/sgnl05","html_url":"https://github.com/sgnl05","followers_url":"https://api.github.com/users/sgnl05/followers","following_url":"https://api.github.com/users/sgnl05/following{/other_user}","gists_url":"https://api.github.com/users/sgnl05/gists{/gist_id}","starred_url":"https://api.github.com/users/sgnl05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgnl05/subscriptions","organizations_url":"https://api.github.com/users/sgnl05/orgs","repos_url":"https://api.github.com/users/sgnl05/repos","events_url":"https://api.github.com/users/sgnl05/events{/privacy}","received_events_url":"https://api.github.com/users/sgnl05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sgnl05/sgnl05-colorprompt","description":"Puppet module for adding colors to your bash prompt","fork":false,"url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt","forks_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/forks","keys_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/teams","hooks_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/hooks","issue_events_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/events{/number}","events_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/events","assignees_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/assignees{/user}","branches_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/branches{/branch}","tags_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/tags","blobs_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/statuses/{sha}","languages_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/languages","stargazers_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/stargazers","contributors_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/contributors","subscribers_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/subscribers","subscription_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/subscription","commits_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/contents/{+path}","compare_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/merges","archive_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/downloads","issues_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues{/number}","pulls_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls{/number}","milestones_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/milestones{/number}","notifications_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/labels{/name}","releases_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/releases{/id}","deployments_url":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/deployments","created_at":"2014-03-19T21:22:49Z","updated_at":"2016-06-03T20:44:34Z","pushed_at":"2016-07-21T14:36:38Z","git_url":"git://github.com/sgnl05/sgnl05-colorprompt.git","ssh_url":"git@github.com:sgnl05/sgnl05-colorprompt.git","clone_url":"https://github.com/sgnl05/sgnl05-colorprompt.git","svn_url":"https://github.com/sgnl05/sgnl05-colorprompt","homepage":"https://forge.puppet.com/sgnl05/colorprompt","size":53,"stargazers_count":2,"watchers_count":2,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5"},"html":{"href":"https://github.com/sgnl05/sgnl05-colorprompt/pull/5"},"issue":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/5"},"comments":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sgnl05/sgnl05-colorprompt/statuses/6257f2906a697dc0ea41f57dfb2e86714abd362d"}}}}
{"actor":{"display_login":"sgnl05"}}