{"action":"created","comment":{"url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/comments/190903522","pull_request_review_id":123383514,"id":190903522,"diff_hunk":"@@ -0,0 +1,60 @@\n+#!/bin/bash -xue\n+\n+cd \"${REPO_DIR}\"\n+if [[ ! $(grep -s 'Component-Gate-Trigger_{repo_name}' \"${PROJECTS_FILE}\") ]] ; then\n+  cat << EOF >> \"${PROJECTS_FILE}\"\n+\n+- project:\n+    name: \"${COMPONENT_NAME}\"\n+    repo_name: \"${COMPONENT_NAME}\"\n+    repo_url: \"${COMPONENT_REPO_URL}\"\n+\n+    jobs:\n+      - 'Component-Gate-Trigger_{repo_name}'\n+EOF\n+\n+  issue_message=\"This issue was generated automatically as part of registering a new component.\"\n+  issue_summary=\"Add new component gate trigger job for ${COMPONENT_NAME}\"\n+  issue=$(python ${WORKSPACE}/rpc-gating/scripts/jirautils.py \\\n+        --user \"${JIRA_USER}\" \\\n+        --password \"${JIRA_PASS}\" \\\n+        get_or_create_issue \\\n+          --project \"${JIRA_PROJECT_KEY}\" \\\n+          --summary \"${issue_summary}\" \\\n+          --description \"${issue_message}\" \\\n+          --label COMPONENT_GATE_TRIGGER \\\n+          --label \"${COMPONENT_NAME}\" \\","path":"scripts/add_component_gate_trigger_job.sh","position":26,"original_position":26,"commit_id":"ad6bf95f7c00bf647a891b66202d93bd6950bd05","original_commit_id":"ad6bf95f7c00bf647a891b66202d93bd6950bd05","user":{"login":"mattt416","id":16207,"avatar_url":"https://avatars3.githubusercontent.com/u/16207?v=4","gravatar_id":"","url":"https://api.github.com/users/mattt416","html_url":"https://github.com/mattt416","followers_url":"https://api.github.com/users/mattt416/followers","following_url":"https://api.github.com/users/mattt416/following{/other_user}","gists_url":"https://api.github.com/users/mattt416/gists{/gist_id}","starred_url":"https://api.github.com/users/mattt416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattt416/subscriptions","organizations_url":"https://api.github.com/users/mattt416/orgs","repos_url":"https://api.github.com/users/mattt416/repos","events_url":"https://api.github.com/users/mattt416/events{/privacy}","received_events_url":"https://api.github.com/users/mattt416/received_events","type":"User","site_admin":false},"body":"Does this trailing slash here cause any issues?","created_at":"2018-05-25T14:01:23Z","updated_at":"2018-05-25T14:01:24Z","html_url":"https://github.com/rcbops/rpc-gating/pull/851#discussion_r190903522","pull_request_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/comments/190903522"},"html":{"href":"https://github.com/rcbops/rpc-gating/pull/851#discussion_r190903522"},"pull_request":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851"}}},"pull_request":{"url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851","id":190590451,"html_url":"https://github.com/rcbops/rpc-gating/pull/851","diff_url":"https://github.com/rcbops/rpc-gating/pull/851.diff","patch_url":"https://github.com/rcbops/rpc-gating/pull/851.patch","issue_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/851","number":851,"state":"open","locked":false,"title":"RE-1487 Add component registration support","user":{"login":"git-harry","id":687171,"avatar_url":"https://avatars1.githubusercontent.com/u/687171?v=4","gravatar_id":"","url":"https://api.github.com/users/git-harry","html_url":"https://github.com/git-harry","followers_url":"https://api.github.com/users/git-harry/followers","following_url":"https://api.github.com/users/git-harry/following{/other_user}","gists_url":"https://api.github.com/users/git-harry/gists{/gist_id}","starred_url":"https://api.github.com/users/git-harry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git-harry/subscriptions","organizations_url":"https://api.github.com/users/git-harry/orgs","repos_url":"https://api.github.com/users/git-harry/repos","events_url":"https://api.github.com/users/git-harry/events{/privacy}","received_events_url":"https://api.github.com/users/git-harry/received_events","type":"User","site_admin":false},"body":"This change extends the standard release job to allow new components to\r\nbe added to the releases repo.\r\n\r\nIn addition, when a new component is registered this change creates a\r\npull request to rpc-gating to get the gate trigger job set up, the\r\ntrigger job is used to gate a component's pull requests.\r\n\r\nIssue: [RE-1487](https://rpc-openstack.atlassian.net/browse/RE-1487)\r\n\r\nTest pull request - https://github.com/rcbops/rpc-gating/pull/850\r\nTest issue - https://rpc-openstack.atlassian.net/browse/RE-1528","created_at":"2018-05-25T13:34:46Z","updated_at":"2018-05-25T14:01:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84aadea52915fe7f3ed9304c84d9676a7a8ff6b5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851/commits","review_comments_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851/comments","review_comment_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/851/comments","statuses_url":"https://api.github.com/repos/rcbops/rpc-gating/statuses/ad6bf95f7c00bf647a891b66202d93bd6950bd05","head":{"label":"rcbops:RE-1487/master/1","ref":"RE-1487/master/1","sha":"ad6bf95f7c00bf647a891b66202d93bd6950bd05","user":{"login":"rcbops","id":1153548,"avatar_url":"https://avatars1.githubusercontent.com/u/1153548?v=4","gravatar_id":"","url":"https://api.github.com/users/rcbops","html_url":"https://github.com/rcbops","followers_url":"https://api.github.com/users/rcbops/followers","following_url":"https://api.github.com/users/rcbops/following{/other_user}","gists_url":"https://api.github.com/users/rcbops/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbops/subscriptions","organizations_url":"https://api.github.com/users/rcbops/orgs","repos_url":"https://api.github.com/users/rcbops/repos","events_url":"https://api.github.com/users/rcbops/events{/privacy}","received_events_url":"https://api.github.com/users/rcbops/received_events","type":"Organization","site_admin":false},"repo":{"id":79365088,"name":"rpc-gating","full_name":"rcbops/rpc-gating","owner":{"login":"rcbops","id":1153548,"avatar_url":"https://avatars1.githubusercontent.com/u/1153548?v=4","gravatar_id":"","url":"https://api.github.com/users/rcbops","html_url":"https://github.com/rcbops","followers_url":"https://api.github.com/users/rcbops/followers","following_url":"https://api.github.com/users/rcbops/following{/other_user}","gists_url":"https://api.github.com/users/rcbops/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbops/subscriptions","organizations_url":"https://api.github.com/users/rcbops/orgs","repos_url":"https://api.github.com/users/rcbops/repos","events_url":"https://api.github.com/users/rcbops/events{/privacy}","received_events_url":"https://api.github.com/users/rcbops/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rcbops/rpc-gating","description":"Unified Gating Repository","fork":false,"url":"https://api.github.com/repos/rcbops/rpc-gating","forks_url":"https://api.github.com/repos/rcbops/rpc-gating/forks","keys_url":"https://api.github.com/repos/rcbops/rpc-gating/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rcbops/rpc-gating/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rcbops/rpc-gating/teams","hooks_url":"https://api.github.com/repos/rcbops/rpc-gating/hooks","issue_events_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/events{/number}","events_url":"https://api.github.com/repos/rcbops/rpc-gating/events","assignees_url":"https://api.github.com/repos/rcbops/rpc-gating/assignees{/user}","branches_url":"https://api.github.com/repos/rcbops/rpc-gating/branches{/branch}","tags_url":"https://api.github.com/repos/rcbops/rpc-gating/tags","blobs_url":"https://api.github.com/repos/rcbops/rpc-gating/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rcbops/rpc-gating/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rcbops/rpc-gating/git/refs{/sha}","trees_url":"https://api.github.com/repos/rcbops/rpc-gating/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rcbops/rpc-gating/statuses/{sha}","languages_url":"https://api.github.com/repos/rcbops/rpc-gating/languages","stargazers_url":"https://api.github.com/repos/rcbops/rpc-gating/stargazers","contributors_url":"https://api.github.com/repos/rcbops/rpc-gating/contributors","subscribers_url":"https://api.github.com/repos/rcbops/rpc-gating/subscribers","subscription_url":"https://api.github.com/repos/rcbops/rpc-gating/subscription","commits_url":"https://api.github.com/repos/rcbops/rpc-gating/commits{/sha}","git_commits_url":"https://api.github.com/repos/rcbops/rpc-gating/git/commits{/sha}","comments_url":"https://api.github.com/repos/rcbops/rpc-gating/comments{/number}","issue_comment_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/comments{/number}","contents_url":"https://api.github.com/repos/rcbops/rpc-gating/contents/{+path}","compare_url":"https://api.github.com/repos/rcbops/rpc-gating/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rcbops/rpc-gating/merges","archive_url":"https://api.github.com/repos/rcbops/rpc-gating/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rcbops/rpc-gating/downloads","issues_url":"https://api.github.com/repos/rcbops/rpc-gating/issues{/number}","pulls_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls{/number}","milestones_url":"https://api.github.com/repos/rcbops/rpc-gating/milestones{/number}","notifications_url":"https://api.github.com/repos/rcbops/rpc-gating/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rcbops/rpc-gating/labels{/name}","releases_url":"https://api.github.com/repos/rcbops/rpc-gating/releases{/id}","deployments_url":"https://api.github.com/repos/rcbops/rpc-gating/deployments","created_at":"2017-01-18T17:27:57Z","updated_at":"2018-05-25T11:51:18Z","pushed_at":"2018-05-25T13:38:09Z","git_url":"git://github.com/rcbops/rpc-gating.git","ssh_url":"git@github.com:rcbops/rpc-gating.git","clone_url":"https://github.com/rcbops/rpc-gating.git","svn_url":"https://github.com/rcbops/rpc-gating","homepage":null,"size":4378,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":33,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"rcbops:master","ref":"master","sha":"71f69dc66d6cac58724d1285e3d745dc8c827639","user":{"login":"rcbops","id":1153548,"avatar_url":"https://avatars1.githubusercontent.com/u/1153548?v=4","gravatar_id":"","url":"https://api.github.com/users/rcbops","html_url":"https://github.com/rcbops","followers_url":"https://api.github.com/users/rcbops/followers","following_url":"https://api.github.com/users/rcbops/following{/other_user}","gists_url":"https://api.github.com/users/rcbops/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbops/subscriptions","organizations_url":"https://api.github.com/users/rcbops/orgs","repos_url":"https://api.github.com/users/rcbops/repos","events_url":"https://api.github.com/users/rcbops/events{/privacy}","received_events_url":"https://api.github.com/users/rcbops/received_events","type":"Organization","site_admin":false},"repo":{"id":79365088,"name":"rpc-gating","full_name":"rcbops/rpc-gating","owner":{"login":"rcbops","id":1153548,"avatar_url":"https://avatars1.githubusercontent.com/u/1153548?v=4","gravatar_id":"","url":"https://api.github.com/users/rcbops","html_url":"https://github.com/rcbops","followers_url":"https://api.github.com/users/rcbops/followers","following_url":"https://api.github.com/users/rcbops/following{/other_user}","gists_url":"https://api.github.com/users/rcbops/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbops/subscriptions","organizations_url":"https://api.github.com/users/rcbops/orgs","repos_url":"https://api.github.com/users/rcbops/repos","events_url":"https://api.github.com/users/rcbops/events{/privacy}","received_events_url":"https://api.github.com/users/rcbops/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rcbops/rpc-gating","description":"Unified Gating Repository","fork":false,"url":"https://api.github.com/repos/rcbops/rpc-gating","forks_url":"https://api.github.com/repos/rcbops/rpc-gating/forks","keys_url":"https://api.github.com/repos/rcbops/rpc-gating/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rcbops/rpc-gating/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rcbops/rpc-gating/teams","hooks_url":"https://api.github.com/repos/rcbops/rpc-gating/hooks","issue_events_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/events{/number}","events_url":"https://api.github.com/repos/rcbops/rpc-gating/events","assignees_url":"https://api.github.com/repos/rcbops/rpc-gating/assignees{/user}","branches_url":"https://api.github.com/repos/rcbops/rpc-gating/branches{/branch}","tags_url":"https://api.github.com/repos/rcbops/rpc-gating/tags","blobs_url":"https://api.github.com/repos/rcbops/rpc-gating/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rcbops/rpc-gating/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rcbops/rpc-gating/git/refs{/sha}","trees_url":"https://api.github.com/repos/rcbops/rpc-gating/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rcbops/rpc-gating/statuses/{sha}","languages_url":"https://api.github.com/repos/rcbops/rpc-gating/languages","stargazers_url":"https://api.github.com/repos/rcbops/rpc-gating/stargazers","contributors_url":"https://api.github.com/repos/rcbops/rpc-gating/contributors","subscribers_url":"https://api.github.com/repos/rcbops/rpc-gating/subscribers","subscription_url":"https://api.github.com/repos/rcbops/rpc-gating/subscription","commits_url":"https://api.github.com/repos/rcbops/rpc-gating/commits{/sha}","git_commits_url":"https://api.github.com/repos/rcbops/rpc-gating/git/commits{/sha}","comments_url":"https://api.github.com/repos/rcbops/rpc-gating/comments{/number}","issue_comment_url":"https://api.github.com/repos/rcbops/rpc-gating/issues/comments{/number}","contents_url":"https://api.github.com/repos/rcbops/rpc-gating/contents/{+path}","compare_url":"https://api.github.com/repos/rcbops/rpc-gating/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rcbops/rpc-gating/merges","archive_url":"https://api.github.com/repos/rcbops/rpc-gating/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rcbops/rpc-gating/downloads","issues_url":"https://api.github.com/repos/rcbops/rpc-gating/issues{/number}","pulls_url":"https://api.github.com/repos/rcbops/rpc-gating/pulls{/number}","milestones_url":"https://api.github.com/repos/rcbops/rpc-gating/milestones{/number}","notifications_url":"https://api.github.com/repos/rcbops/rpc-gating/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rcbops/rpc-gating/labels{/name}","releases_url":"https://api.github.com/repos/rcbops/rpc-gating/releases{/id}","deployments_url":"https://api.github.com/repos/rcbops/rpc-gating/deployments","created_at":"2017-01-18T17:27:57Z","updated_at":"2018-05-25T11:51:18Z","pushed_at":"2018-05-25T13:38:09Z","git_url":"git://github.com/rcbops/rpc-gating.git","ssh_url":"git@github.com:rcbops/rpc-gating.git","clone_url":"https://github.com/rcbops/rpc-gating.git","svn_url":"https://github.com/rcbops/rpc-gating","homepage":null,"size":4378,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":33,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851"},"html":{"href":"https://github.com/rcbops/rpc-gating/pull/851"},"issue":{"href":"https://api.github.com/repos/rcbops/rpc-gating/issues/851"},"comments":{"href":"https://api.github.com/repos/rcbops/rpc-gating/issues/851/comments"},"review_comments":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851/comments"},"review_comment":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rcbops/rpc-gating/pulls/851/commits"},"statuses":{"href":"https://api.github.com/repos/rcbops/rpc-gating/statuses/ad6bf95f7c00bf647a891b66202d93bd6950bd05"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mattt416"}}