{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments/89076456","pull_request_review_id":9626162,"id":89076456,"diff_hunk":"@@ -0,0 +1,52 @@\n+package org.jenkinsci.test.acceptance.plugins.workflow_multibranch;\n+\n+import org.jenkinsci.test.acceptance.po.Control;\n+import org.jenkinsci.test.acceptance.po.Describable;\n+import org.jenkinsci.test.acceptance.po.PageAreaImpl;\n+import org.jenkinsci.test.acceptance.po.WorkflowMultiBranchJob;\n+import org.openqa.selenium.Keys;\n+import org.openqa.selenium.support.ui.Select;\n+\n+import java.util.concurrent.Callable;\n+import java.util.concurrent.TimeUnit;\n+\n+/**\n+ * Base type for {@link PageAreaImpl} for Github Branch Source.\n+ */\n+@Describable(\"GitHub\")\n+public class GithubBranchSource extends BranchSource {\n+\n+    public final Control owner = control(\"source/repoOwner\");\n+    public final Control repository = control(\"source/repository\");\n+    public final Control credential = control(\"source/scanCredentialsId\");\n+\n+    public GithubBranchSource(WorkflowMultiBranchJob job, String path) {\n+        super(job, path);\n+    }\n+\n+    public GithubBranchSource owner(final String owner) {\n+        this.owner.set(owner);\n+        this.owner.sendKeys(\"\" + Keys.TAB);\n+        return this;\n+    }\n+\n+    public GithubBranchSource credential(final String credName) {\n+        this.credential.select(credName);\n+        return this;\n+    }\n+\n+    public GithubBranchSource selectRepository(final String repoName) {\n+        waitFor().withTimeout(10, TimeUnit.SECONDS)","path":"src/main/java/org/jenkinsci/test/acceptance/plugins/workflow_multibranch/GithubBranchSource.java","position":39,"original_position":39,"commit_id":"6a1852d5fd48aa695af82ee13661cad0c2f795c5","original_commit_id":"6a1852d5fd48aa695af82ee13661cad0c2f795c5","user":{"login":"varyvol","id":6572596,"avatar_url":"https://avatars.githubusercontent.com/u/6572596?v=3","gravatar_id":"","url":"https://api.github.com/users/varyvol","html_url":"https://github.com/varyvol","followers_url":"https://api.github.com/users/varyvol/followers","following_url":"https://api.github.com/users/varyvol/following{/other_user}","gists_url":"https://api.github.com/users/varyvol/gists{/gist_id}","starred_url":"https://api.github.com/users/varyvol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varyvol/subscriptions","organizations_url":"https://api.github.com/users/varyvol/orgs","repos_url":"https://api.github.com/users/varyvol/repos","events_url":"https://api.github.com/users/varyvol/events{/privacy}","received_events_url":"https://api.github.com/users/varyvol/received_events","type":"User","site_admin":false},"body":"Control does not have any way of getting the options for a dropdown, and I need it in order to check when it has been populated.\r\n\r\nThe information is gathered from GitHub, so depending on the connection status and the number of repositories, it could take longer. I think 10 seconds provide space enough to feel safe.","created_at":"2016-11-22T09:48:30Z","updated_at":"2016-11-22T09:48:30Z","html_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/228#discussion_r89076456","pull_request_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments/89076456"},"html":{"href":"https://github.com/jenkinsci/acceptance-test-harness/pull/228#discussion_r89076456"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228","id":94766102,"html_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/228","diff_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/228.diff","patch_url":"https://github.com/jenkinsci/acceptance-test-harness/pull/228.patch","issue_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/228","number":228,"state":"open","locked":false,"title":"[JENKINS-39930] Create POs for Pipeline multi branch jobs","user":{"login":"varyvol","id":6572596,"avatar_url":"https://avatars.githubusercontent.com/u/6572596?v=3","gravatar_id":"","url":"https://api.github.com/users/varyvol","html_url":"https://github.com/varyvol","followers_url":"https://api.github.com/users/varyvol/followers","following_url":"https://api.github.com/users/varyvol/following{/other_user}","gists_url":"https://api.github.com/users/varyvol/gists{/gist_id}","starred_url":"https://api.github.com/users/varyvol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varyvol/subscriptions","organizations_url":"https://api.github.com/users/varyvol/orgs","repos_url":"https://api.github.com/users/varyvol/repos","events_url":"https://api.github.com/users/varyvol/events{/privacy}","received_events_url":"https://api.github.com/users/varyvol/received_events","type":"User","site_admin":false},"body":"- PO for Pipeline Multibranch job.\r\n- PO for GitHub Branch Source.\r\n\r\n[JENKINS-39930](https://issues.jenkins-ci.org/browse/JENKINS-39930)\r\n\r\n@reviewbybees ","created_at":"2016-11-22T08:13:41Z","updated_at":"2016-11-22T09:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"385a28f893d22b7a887a988851c4f3c45a02606e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/228/comments","statuses_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/6a1852d5fd48aa695af82ee13661cad0c2f795c5","head":{"label":"varyvol:JENKINS-39930","ref":"JENKINS-39930","sha":"6a1852d5fd48aa695af82ee13661cad0c2f795c5","user":{"login":"varyvol","id":6572596,"avatar_url":"https://avatars.githubusercontent.com/u/6572596?v=3","gravatar_id":"","url":"https://api.github.com/users/varyvol","html_url":"https://github.com/varyvol","followers_url":"https://api.github.com/users/varyvol/followers","following_url":"https://api.github.com/users/varyvol/following{/other_user}","gists_url":"https://api.github.com/users/varyvol/gists{/gist_id}","starred_url":"https://api.github.com/users/varyvol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varyvol/subscriptions","organizations_url":"https://api.github.com/users/varyvol/orgs","repos_url":"https://api.github.com/users/varyvol/repos","events_url":"https://api.github.com/users/varyvol/events{/privacy}","received_events_url":"https://api.github.com/users/varyvol/received_events","type":"User","site_admin":false},"repo":{"id":72109504,"name":"acceptance-test-harness","full_name":"varyvol/acceptance-test-harness","owner":{"login":"varyvol","id":6572596,"avatar_url":"https://avatars.githubusercontent.com/u/6572596?v=3","gravatar_id":"","url":"https://api.github.com/users/varyvol","html_url":"https://github.com/varyvol","followers_url":"https://api.github.com/users/varyvol/followers","following_url":"https://api.github.com/users/varyvol/following{/other_user}","gists_url":"https://api.github.com/users/varyvol/gists{/gist_id}","starred_url":"https://api.github.com/users/varyvol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varyvol/subscriptions","organizations_url":"https://api.github.com/users/varyvol/orgs","repos_url":"https://api.github.com/users/varyvol/repos","events_url":"https://api.github.com/users/varyvol/events{/privacy}","received_events_url":"https://api.github.com/users/varyvol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/varyvol/acceptance-test-harness","description":"Acceptance tests cases for Jenkins and its plug-ins based on selenium and docker.","fork":true,"url":"https://api.github.com/repos/varyvol/acceptance-test-harness","forks_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/forks","keys_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/keys{/key_id}","collaborators_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/teams","hooks_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/hooks","issue_events_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/issues/events{/number}","events_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/events","assignees_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/assignees{/user}","branches_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/branches{/branch}","tags_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/tags","blobs_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/git/refs{/sha}","trees_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/git/trees{/sha}","statuses_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/statuses/{sha}","languages_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/languages","stargazers_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/stargazers","contributors_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/contributors","subscribers_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/subscribers","subscription_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/subscription","commits_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/commits{/sha}","git_commits_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/git/commits{/sha}","comments_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/comments{/number}","issue_comment_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/issues/comments{/number}","contents_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/contents/{+path}","compare_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/compare/{base}...{head}","merges_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/merges","archive_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/downloads","issues_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/issues{/number}","pulls_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/pulls{/number}","milestones_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/milestones{/number}","notifications_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/labels{/name}","releases_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/releases{/id}","deployments_url":"https://api.github.com/repos/varyvol/acceptance-test-harness/deployments","created_at":"2016-10-27T13:10:45Z","updated_at":"2016-10-27T13:10:50Z","pushed_at":"2016-11-22T08:13:01Z","git_url":"git://github.com/varyvol/acceptance-test-harness.git","ssh_url":"git@github.com:varyvol/acceptance-test-harness.git","clone_url":"https://github.com/varyvol/acceptance-test-harness.git","svn_url":"https://github.com/varyvol/acceptance-test-harness","homepage":"","size":8850,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"jenkinsci:master","ref":"master","sha":"5facfe7629ff189615629325cf39cb6af62f97fc","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":17294237,"name":"acceptance-test-harness","full_name":"jenkinsci/acceptance-test-harness","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/acceptance-test-harness","description":"Acceptance tests cases for Jenkins and its plug-ins based on selenium and docker.","fork":false,"url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness","forks_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/forks","keys_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/teams","hooks_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/events","assignees_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/tags","blobs_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/subscription","commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/merges","archive_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/downloads","issues_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/deployments","created_at":"2014-02-28T17:39:55Z","updated_at":"2016-11-04T08:46:58Z","pushed_at":"2016-11-22T08:13:41Z","git_url":"git://github.com/jenkinsci/acceptance-test-harness.git","ssh_url":"git@github.com:jenkinsci/acceptance-test-harness.git","clone_url":"https://github.com/jenkinsci/acceptance-test-harness.git","svn_url":"https://github.com/jenkinsci/acceptance-test-harness","homepage":"","size":9136,"stargazers_count":51,"watchers_count":51,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":16,"forks":80,"open_issues":16,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228"},"html":{"href":"https://github.com/jenkinsci/acceptance-test-harness/pull/228"},"issue":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/228"},"comments":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/issues/228/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/pulls/228/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/acceptance-test-harness/statuses/6a1852d5fd48aa695af82ee13661cad0c2f795c5"}}}}
{"actor":{"display_login":"varyvol"}}