{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments/60725918","id":60725918,"diff_hunk":"@@ -0,0 +1,33 @@\n+#!/bin/bash\n+#\n+# Copies job templates from community-templates repository to\n+# app/views/templates/ so they can be seeded on new installations.\n+#\n+# Part of the release process.\n+\n+REPO=$(mktemp -d)\n+trap \"rm -rf $REPO\" EXIT\n+\n+git clone -q -b develop https://github.com/theforeman/community-templates $REPO/ct\n+\n+# Move into destination dir if run from plugin root\n+[ -d app/views/templates ] && cd app/views/templates\n+\n+# Add underscore prefix to snippets\n+[ -d $REPO/ct/jobs/snippets ] && (cd $REPO/ct/jobs/snippets && prename -f 's/^([^_])/_$1/' *)","path":"scripts/sync_templates.sh","position":17,"original_position":17,"commit_id":"0816c3be1581655e3b1ffc47ec1aa1abafde17ac","original_commit_id":"5f6eacc0e5dff37cb2a27bfc509a9c2d1564ae5f","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"body":"Oh, sorry, it's some utility bundled with perl on Debian only.  I forget how I got it on my Fedora box, it wasn't packaged.  It's not a bug deal, I'll rewrite it something more portable.","created_at":"2016-04-22T11:36:05Z","updated_at":"2016-04-22T11:36:05Z","html_url":"https://github.com/theforeman/foreman_remote_execution/pull/174#discussion_r60725918","pull_request_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments/60725918"},"html":{"href":"https://github.com/theforeman/foreman_remote_execution/pull/174#discussion_r60725918"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174","id":67386004,"html_url":"https://github.com/theforeman/foreman_remote_execution/pull/174","diff_url":"https://github.com/theforeman/foreman_remote_execution/pull/174.diff","patch_url":"https://github.com/theforeman/foreman_remote_execution/pull/174.patch","issue_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/174","number":174,"state":"open","locked":false,"title":"fixes #12783 - make community-templates source for job templates","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"body":"This changes the way we store job templates to the same way Foreman does it. https://github.com/theforeman/community-templates/pull/268 puts the templates in jobs/ directory.\r\n\r\nAt release time, the releaser will sync the templates. If you'd like to test the sync_templates script, you can put it against my fork.\r\n","created_at":"2016-04-21T16:42:59Z","updated_at":"2016-04-22T11:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6c1dd2ef0801db7cc3acb786fe8e1ce7e43e4ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/174/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/0816c3be1581655e3b1ffc47ec1aa1abafde17ac","head":{"label":"stbenjam:move-templates","ref":"move-templates","sha":"0816c3be1581655e3b1ffc47ec1aa1abafde17ac","user":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"repo":{"id":38254757,"name":"foreman_remote_execution","full_name":"stbenjam/foreman_remote_execution","owner":{"login":"stbenjam","id":429763,"avatar_url":"https://avatars.githubusercontent.com/u/429763?v=3","gravatar_id":"","url":"https://api.github.com/users/stbenjam","html_url":"https://github.com/stbenjam","followers_url":"https://api.github.com/users/stbenjam/followers","following_url":"https://api.github.com/users/stbenjam/following{/other_user}","gists_url":"https://api.github.com/users/stbenjam/gists{/gist_id}","starred_url":"https://api.github.com/users/stbenjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stbenjam/subscriptions","organizations_url":"https://api.github.com/users/stbenjam/orgs","repos_url":"https://api.github.com/users/stbenjam/repos","events_url":"https://api.github.com/users/stbenjam/events{/privacy}","received_events_url":"https://api.github.com/users/stbenjam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stbenjam/foreman_remote_execution","description":"A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality","fork":true,"url":"https://api.github.com/repos/stbenjam/foreman_remote_execution","forks_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/forks","keys_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/teams","hooks_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/hooks","issue_events_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/issues/events{/number}","events_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/events","assignees_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/assignees{/user}","branches_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/branches{/branch}","tags_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/tags","blobs_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/git/refs{/sha}","trees_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/statuses/{sha}","languages_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/languages","stargazers_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/stargazers","contributors_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/contributors","subscribers_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/subscribers","subscription_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/subscription","commits_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/commits{/sha}","git_commits_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/git/commits{/sha}","comments_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/comments{/number}","issue_comment_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/issues/comments{/number}","contents_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/contents/{+path}","compare_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/merges","archive_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/downloads","issues_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/issues{/number}","pulls_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/pulls{/number}","milestones_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/milestones{/number}","notifications_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/labels{/name}","releases_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/releases{/id}","deployments_url":"https://api.github.com/repos/stbenjam/foreman_remote_execution/deployments","created_at":"2015-06-29T15:21:51Z","updated_at":"2016-04-13T13:42:54Z","pushed_at":"2016-04-22T11:28:19Z","git_url":"git://github.com/stbenjam/foreman_remote_execution.git","ssh_url":"git@github.com:stbenjam/foreman_remote_execution.git","clone_url":"https://github.com/stbenjam/foreman_remote_execution.git","svn_url":"https://github.com/stbenjam/foreman_remote_execution","homepage":"","size":1779,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"theforeman:master","ref":"master","sha":"cfab668395d40b98eeb01c1b2d050031452f6bcc","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":34800230,"name":"foreman_remote_execution","full_name":"theforeman/foreman_remote_execution","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman_remote_execution","description":"A plugin bringing remote execution to the Foreman, completing the config management functionality with remote management functionality","fork":false,"url":"https://api.github.com/repos/theforeman/foreman_remote_execution","forks_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/forks","keys_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/events","assignees_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/merges","archive_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman_remote_execution/deployments","created_at":"2015-04-29T14:57:15Z","updated_at":"2016-04-14T02:32:45Z","pushed_at":"2016-04-22T11:28:20Z","git_url":"git://github.com/theforeman/foreman_remote_execution.git","ssh_url":"git@github.com:theforeman/foreman_remote_execution.git","clone_url":"https://github.com/theforeman/foreman_remote_execution.git","svn_url":"https://github.com/theforeman/foreman_remote_execution","homepage":"","size":1945,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174"},"html":{"href":"https://github.com/theforeman/foreman_remote_execution/pull/174"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/174"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman_remote_execution/statuses/0816c3be1581655e3b1ffc47ec1aa1abafde17ac"}}}}