{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/yihui/servr/pulls/24","id":58640762,"html_url":"https://github.com/yihui/servr/pull/24","diff_url":"https://github.com/yihui/servr/pull/24.diff","patch_url":"https://github.com/yihui/servr/pull/24.patch","issue_url":"https://api.github.com/repos/yihui/servr/issues/24","number":24,"state":"open","locked":false,"title":"allow watch_dir to watch specific file patterns and execute a build","user":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"body":"This PR adds more flexibility to the `watch_dir` and `httw` functions by adding two arguments:\r\n\r\n1. `pattern` of files to watch, passed to `list.files`.\r\n2. `build` a build function that gets executed when any of the watched files change.\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2016-02-08T17:30:03Z","updated_at":"2016-02-08T17:30:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yihui/servr/pulls/24/commits","review_comments_url":"https://api.github.com/repos/yihui/servr/pulls/24/comments","review_comment_url":"https://api.github.com/repos/yihui/servr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yihui/servr/issues/24/comments","statuses_url":"https://api.github.com/repos/yihui/servr/statuses/444ff5adc8c27254ccbef96cf993a329dd562c73","head":{"label":"ramnathv:feature/improve-httw","ref":"feature/improve-httw","sha":"444ff5adc8c27254ccbef96cf993a329dd562c73","user":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"repo":{"id":51312386,"name":"servr","full_name":"ramnathv/servr","owner":{"login":"ramnathv","id":346288,"avatar_url":"https://avatars.githubusercontent.com/u/346288?v=3","gravatar_id":"","url":"https://api.github.com/users/ramnathv","html_url":"https://github.com/ramnathv","followers_url":"https://api.github.com/users/ramnathv/followers","following_url":"https://api.github.com/users/ramnathv/following{/other_user}","gists_url":"https://api.github.com/users/ramnathv/gists{/gist_id}","starred_url":"https://api.github.com/users/ramnathv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramnathv/subscriptions","organizations_url":"https://api.github.com/users/ramnathv/orgs","repos_url":"https://api.github.com/users/ramnathv/repos","events_url":"https://api.github.com/users/ramnathv/events{/privacy}","received_events_url":"https://api.github.com/users/ramnathv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramnathv/servr","description":"A simple HTTP server in R","fork":true,"url":"https://api.github.com/repos/ramnathv/servr","forks_url":"https://api.github.com/repos/ramnathv/servr/forks","keys_url":"https://api.github.com/repos/ramnathv/servr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramnathv/servr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramnathv/servr/teams","hooks_url":"https://api.github.com/repos/ramnathv/servr/hooks","issue_events_url":"https://api.github.com/repos/ramnathv/servr/issues/events{/number}","events_url":"https://api.github.com/repos/ramnathv/servr/events","assignees_url":"https://api.github.com/repos/ramnathv/servr/assignees{/user}","branches_url":"https://api.github.com/repos/ramnathv/servr/branches{/branch}","tags_url":"https://api.github.com/repos/ramnathv/servr/tags","blobs_url":"https://api.github.com/repos/ramnathv/servr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramnathv/servr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramnathv/servr/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramnathv/servr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramnathv/servr/statuses/{sha}","languages_url":"https://api.github.com/repos/ramnathv/servr/languages","stargazers_url":"https://api.github.com/repos/ramnathv/servr/stargazers","contributors_url":"https://api.github.com/repos/ramnathv/servr/contributors","subscribers_url":"https://api.github.com/repos/ramnathv/servr/subscribers","subscription_url":"https://api.github.com/repos/ramnathv/servr/subscription","commits_url":"https://api.github.com/repos/ramnathv/servr/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramnathv/servr/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramnathv/servr/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramnathv/servr/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramnathv/servr/contents/{+path}","compare_url":"https://api.github.com/repos/ramnathv/servr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramnathv/servr/merges","archive_url":"https://api.github.com/repos/ramnathv/servr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramnathv/servr/downloads","issues_url":"https://api.github.com/repos/ramnathv/servr/issues{/number}","pulls_url":"https://api.github.com/repos/ramnathv/servr/pulls{/number}","milestones_url":"https://api.github.com/repos/ramnathv/servr/milestones{/number}","notifications_url":"https://api.github.com/repos/ramnathv/servr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramnathv/servr/labels{/name}","releases_url":"https://api.github.com/repos/ramnathv/servr/releases{/id}","deployments_url":"https://api.github.com/repos/ramnathv/servr/deployments","created_at":"2016-02-08T17:08:31Z","updated_at":"2016-02-08T17:08:32Z","pushed_at":"2016-02-08T17:27:46Z","git_url":"git://github.com/ramnathv/servr.git","ssh_url":"git@github.com:ramnathv/servr.git","clone_url":"https://github.com/ramnathv/servr.git","svn_url":"https://github.com/ramnathv/servr","homepage":"http://cran.rstudio.com/package=servr","size":122,"stargazers_count":0,"watchers_count":0,"language":"R","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":"yihui:master","ref":"master","sha":"7fc68372602b2d8aaa273d04d1ba249f5b4a9d02","user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"repo":{"id":12801644,"name":"servr","full_name":"yihui/servr","owner":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yihui/servr","description":"A simple HTTP server in R","fork":false,"url":"https://api.github.com/repos/yihui/servr","forks_url":"https://api.github.com/repos/yihui/servr/forks","keys_url":"https://api.github.com/repos/yihui/servr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yihui/servr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yihui/servr/teams","hooks_url":"https://api.github.com/repos/yihui/servr/hooks","issue_events_url":"https://api.github.com/repos/yihui/servr/issues/events{/number}","events_url":"https://api.github.com/repos/yihui/servr/events","assignees_url":"https://api.github.com/repos/yihui/servr/assignees{/user}","branches_url":"https://api.github.com/repos/yihui/servr/branches{/branch}","tags_url":"https://api.github.com/repos/yihui/servr/tags","blobs_url":"https://api.github.com/repos/yihui/servr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yihui/servr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yihui/servr/git/refs{/sha}","trees_url":"https://api.github.com/repos/yihui/servr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yihui/servr/statuses/{sha}","languages_url":"https://api.github.com/repos/yihui/servr/languages","stargazers_url":"https://api.github.com/repos/yihui/servr/stargazers","contributors_url":"https://api.github.com/repos/yihui/servr/contributors","subscribers_url":"https://api.github.com/repos/yihui/servr/subscribers","subscription_url":"https://api.github.com/repos/yihui/servr/subscription","commits_url":"https://api.github.com/repos/yihui/servr/commits{/sha}","git_commits_url":"https://api.github.com/repos/yihui/servr/git/commits{/sha}","comments_url":"https://api.github.com/repos/yihui/servr/comments{/number}","issue_comment_url":"https://api.github.com/repos/yihui/servr/issues/comments{/number}","contents_url":"https://api.github.com/repos/yihui/servr/contents/{+path}","compare_url":"https://api.github.com/repos/yihui/servr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yihui/servr/merges","archive_url":"https://api.github.com/repos/yihui/servr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yihui/servr/downloads","issues_url":"https://api.github.com/repos/yihui/servr/issues{/number}","pulls_url":"https://api.github.com/repos/yihui/servr/pulls{/number}","milestones_url":"https://api.github.com/repos/yihui/servr/milestones{/number}","notifications_url":"https://api.github.com/repos/yihui/servr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yihui/servr/labels{/name}","releases_url":"https://api.github.com/repos/yihui/servr/releases{/id}","deployments_url":"https://api.github.com/repos/yihui/servr/deployments","created_at":"2013-09-13T04:43:46Z","updated_at":"2016-02-01T06:57:17Z","pushed_at":"2016-02-08T17:30:03Z","git_url":"git://github.com/yihui/servr.git","ssh_url":"git@github.com:yihui/servr.git","clone_url":"https://github.com/yihui/servr.git","svn_url":"https://github.com/yihui/servr","homepage":"http://cran.rstudio.com/package=servr","size":124,"stargazers_count":73,"watchers_count":73,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yihui/servr/pulls/24"},"html":{"href":"https://github.com/yihui/servr/pull/24"},"issue":{"href":"https://api.github.com/repos/yihui/servr/issues/24"},"comments":{"href":"https://api.github.com/repos/yihui/servr/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/yihui/servr/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/yihui/servr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yihui/servr/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/yihui/servr/statuses/444ff5adc8c27254ccbef96cf993a329dd562c73"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":6,"changed_files":2}}