{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22","id":48699793,"html_url":"https://github.com/stephenyeargin/hubot-grafana/pull/22","diff_url":"https://github.com/stephenyeargin/hubot-grafana/pull/22.diff","patch_url":"https://github.com/stephenyeargin/hubot-grafana/pull/22.patch","issue_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/22","number":22,"state":"closed","locked":false,"title":"Feature: Dashboard search","user":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"body":"Related to #20\r\n\r\nThere is an API endpoint that accepts a query string to search available dashboards. Rather than re-invent the wheel, this adds two new calls to leverage that endpoint. This prevents a user from haivng to always use `hubot graf list` to get the entire list of the dashboards in order to query one of them.\r\n\r\n- `hubot graf search <term>` will translate to `/api/search/?query=<term>` and return dashboards that have titles that match specified term\r\n- `hubot graf list <tag>` will translate to `/api/search/?tag=<tag>` and return dashboards that match the specified tag","created_at":"2015-10-26T04:01:47Z","updated_at":"2015-10-28T02:44:27Z","closed_at":"2015-10-28T02:44:27Z","merged_at":"2015-10-28T02:44:27Z","merge_commit_sha":"e7504c3f22ccb767817447597f73ae82fc777be7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22/commits","review_comments_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22/comments","review_comment_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/22/comments","statuses_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/statuses/be6ccb2fed68e706e73e6af19732cdc751abbdc1","head":{"label":"stephenyeargin:search-dashboards","ref":"search-dashboards","sha":"be6ccb2fed68e706e73e6af19732cdc751abbdc1","user":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"repo":{"id":37869793,"name":"hubot-grafana","full_name":"stephenyeargin/hubot-grafana","owner":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenyeargin/hubot-grafana","description":"Query Grafana dashboards.","fork":false,"url":"https://api.github.com/repos/stephenyeargin/hubot-grafana","forks_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/forks","keys_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/teams","hooks_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/hooks","issue_events_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/events{/number}","events_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/events","assignees_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/assignees{/user}","branches_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/branches{/branch}","tags_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/tags","blobs_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/languages","stargazers_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/stargazers","contributors_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/contributors","subscribers_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/subscribers","subscription_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/subscription","commits_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/contents/{+path}","compare_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/merges","archive_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/downloads","issues_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues{/number}","pulls_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/labels{/name}","releases_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/releases{/id}","created_at":"2015-06-22T17:25:33Z","updated_at":"2015-10-23T23:47:05Z","pushed_at":"2015-10-28T02:44:27Z","git_url":"git://github.com/stephenyeargin/hubot-grafana.git","ssh_url":"git@github.com:stephenyeargin/hubot-grafana.git","clone_url":"https://github.com/stephenyeargin/hubot-grafana.git","svn_url":"https://github.com/stephenyeargin/hubot-grafana","homepage":"http://docs.grafana.org/tutorials/hubot_howto/","size":258,"stargazers_count":15,"watchers_count":15,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":15,"default_branch":"master"}},"base":{"label":"stephenyeargin:master","ref":"master","sha":"268d53d3bab93ab784fd70ee1fb4d206c6641be6","user":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"repo":{"id":37869793,"name":"hubot-grafana","full_name":"stephenyeargin/hubot-grafana","owner":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephenyeargin/hubot-grafana","description":"Query Grafana dashboards.","fork":false,"url":"https://api.github.com/repos/stephenyeargin/hubot-grafana","forks_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/forks","keys_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/teams","hooks_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/hooks","issue_events_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/events{/number}","events_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/events","assignees_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/assignees{/user}","branches_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/branches{/branch}","tags_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/tags","blobs_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/statuses/{sha}","languages_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/languages","stargazers_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/stargazers","contributors_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/contributors","subscribers_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/subscribers","subscription_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/subscription","commits_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/comments{/number}","contents_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/contents/{+path}","compare_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/merges","archive_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/downloads","issues_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues{/number}","pulls_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls{/number}","milestones_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/milestones{/number}","notifications_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/labels{/name}","releases_url":"https://api.github.com/repos/stephenyeargin/hubot-grafana/releases{/id}","created_at":"2015-06-22T17:25:33Z","updated_at":"2015-10-23T23:47:05Z","pushed_at":"2015-10-28T02:44:27Z","git_url":"git://github.com/stephenyeargin/hubot-grafana.git","ssh_url":"git@github.com:stephenyeargin/hubot-grafana.git","clone_url":"https://github.com/stephenyeargin/hubot-grafana.git","svn_url":"https://github.com/stephenyeargin/hubot-grafana","homepage":"http://docs.grafana.org/tutorials/hubot_howto/","size":258,"stargazers_count":15,"watchers_count":15,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22"},"html":{"href":"https://github.com/stephenyeargin/hubot-grafana/pull/22"},"issue":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/22"},"comments":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/stephenyeargin/hubot-grafana/statuses/be6ccb2fed68e706e73e6af19732cdc751abbdc1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"comments":1,"review_comments":4,"commits":2,"additions":49,"deletions":21,"changed_files":4}}