{"action":"created","comment":{"url":"https://api.github.com/repos/waterlock/waterlock/pulls/comments/67852645","id":67852645,"diff_hunk":"@@ -286,6 +309,30 @@ describe('cycle', function() {\n \n       cycle.registerSuccess(req, res, user);\n     });\n+    \n+    it('should respond with result if given a postResponse func', function(done) {\n+      var prFunc = function() { return {test:true}; };\n+      wl.config.postActions.register.success = prFunc;\n+      var cycle = require('../../lib/cycle').apply(wl);\n+      var req = {\n+        connection: {\n+          remoteAddress: '0.0.0.0',\n+          port: '80'\n+        },\n+        session: {}\n+      };\n+      var res = {\n+        ok: function(response) {\n+          req.session.user.should.be.ok;","path":"test/unit/cycle.test.js","position":17,"original_position":48,"commit_id":"b21be789e081f633b1ae95f586a3faf04606af51","original_commit_id":"b21be789e081f633b1ae95f586a3faf04606af51","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Expected an assignment or function call and instead saw an expression.","created_at":"2016-06-21T11:42:09Z","updated_at":"2016-06-21T11:42:09Z","html_url":"https://github.com/waterlock/waterlock/pull/133#discussion_r67852645","pull_request_url":"https://api.github.com/repos/waterlock/waterlock/pulls/133","_links":{"self":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/comments/67852645"},"html":{"href":"https://github.com/waterlock/waterlock/pull/133#discussion_r67852645"},"pull_request":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/waterlock/waterlock/pulls/133","id":74348420,"html_url":"https://github.com/waterlock/waterlock/pull/133","diff_url":"https://github.com/waterlock/waterlock/pull/133.diff","patch_url":"https://github.com/waterlock/waterlock/pull/133.patch","issue_url":"https://api.github.com/repos/waterlock/waterlock/issues/133","number":133,"state":"open","locked":false,"title":"Support functions on post action configurations","user":{"login":"cantecim","id":10134785,"avatar_url":"https://avatars.githubusercontent.com/u/10134785?v=3","gravatar_id":"","url":"https://api.github.com/users/cantecim","html_url":"https://github.com/cantecim","followers_url":"https://api.github.com/users/cantecim/followers","following_url":"https://api.github.com/users/cantecim/following{/other_user}","gists_url":"https://api.github.com/users/cantecim/gists{/gist_id}","starred_url":"https://api.github.com/users/cantecim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantecim/subscriptions","organizations_url":"https://api.github.com/users/cantecim/orgs","repos_url":"https://api.github.com/users/cantecim/repos","events_url":"https://api.github.com/users/cantecim/events{/privacy}","received_events_url":"https://api.github.com/users/cantecim/received_events","type":"User","site_admin":false},"body":"Hi, I think we need to support functions too. User should be able to respond anything, plus they can do custom operations after the original operations run","created_at":"2016-06-18T21:59:10Z","updated_at":"2016-06-21T11:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"064b1ec8aaf4871c0a3f463e030000f498e9963a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/waterlock/waterlock/pulls/133/commits","review_comments_url":"https://api.github.com/repos/waterlock/waterlock/pulls/133/comments","review_comment_url":"https://api.github.com/repos/waterlock/waterlock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/waterlock/waterlock/issues/133/comments","statuses_url":"https://api.github.com/repos/waterlock/waterlock/statuses/b21be789e081f633b1ae95f586a3faf04606af51","head":{"label":"cantecim:support-function-post-actions","ref":"support-function-post-actions","sha":"b21be789e081f633b1ae95f586a3faf04606af51","user":{"login":"cantecim","id":10134785,"avatar_url":"https://avatars.githubusercontent.com/u/10134785?v=3","gravatar_id":"","url":"https://api.github.com/users/cantecim","html_url":"https://github.com/cantecim","followers_url":"https://api.github.com/users/cantecim/followers","following_url":"https://api.github.com/users/cantecim/following{/other_user}","gists_url":"https://api.github.com/users/cantecim/gists{/gist_id}","starred_url":"https://api.github.com/users/cantecim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantecim/subscriptions","organizations_url":"https://api.github.com/users/cantecim/orgs","repos_url":"https://api.github.com/users/cantecim/repos","events_url":"https://api.github.com/users/cantecim/events{/privacy}","received_events_url":"https://api.github.com/users/cantecim/received_events","type":"User","site_admin":false},"repo":{"id":61453681,"name":"waterlock","full_name":"cantecim/waterlock","owner":{"login":"cantecim","id":10134785,"avatar_url":"https://avatars.githubusercontent.com/u/10134785?v=3","gravatar_id":"","url":"https://api.github.com/users/cantecim","html_url":"https://github.com/cantecim","followers_url":"https://api.github.com/users/cantecim/followers","following_url":"https://api.github.com/users/cantecim/following{/other_user}","gists_url":"https://api.github.com/users/cantecim/gists{/gist_id}","starred_url":"https://api.github.com/users/cantecim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantecim/subscriptions","organizations_url":"https://api.github.com/users/cantecim/orgs","repos_url":"https://api.github.com/users/cantecim/repos","events_url":"https://api.github.com/users/cantecim/events{/privacy}","received_events_url":"https://api.github.com/users/cantecim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cantecim/waterlock","description":"User authentication and json web token handling for Sails","fork":true,"url":"https://api.github.com/repos/cantecim/waterlock","forks_url":"https://api.github.com/repos/cantecim/waterlock/forks","keys_url":"https://api.github.com/repos/cantecim/waterlock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cantecim/waterlock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cantecim/waterlock/teams","hooks_url":"https://api.github.com/repos/cantecim/waterlock/hooks","issue_events_url":"https://api.github.com/repos/cantecim/waterlock/issues/events{/number}","events_url":"https://api.github.com/repos/cantecim/waterlock/events","assignees_url":"https://api.github.com/repos/cantecim/waterlock/assignees{/user}","branches_url":"https://api.github.com/repos/cantecim/waterlock/branches{/branch}","tags_url":"https://api.github.com/repos/cantecim/waterlock/tags","blobs_url":"https://api.github.com/repos/cantecim/waterlock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cantecim/waterlock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cantecim/waterlock/git/refs{/sha}","trees_url":"https://api.github.com/repos/cantecim/waterlock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cantecim/waterlock/statuses/{sha}","languages_url":"https://api.github.com/repos/cantecim/waterlock/languages","stargazers_url":"https://api.github.com/repos/cantecim/waterlock/stargazers","contributors_url":"https://api.github.com/repos/cantecim/waterlock/contributors","subscribers_url":"https://api.github.com/repos/cantecim/waterlock/subscribers","subscription_url":"https://api.github.com/repos/cantecim/waterlock/subscription","commits_url":"https://api.github.com/repos/cantecim/waterlock/commits{/sha}","git_commits_url":"https://api.github.com/repos/cantecim/waterlock/git/commits{/sha}","comments_url":"https://api.github.com/repos/cantecim/waterlock/comments{/number}","issue_comment_url":"https://api.github.com/repos/cantecim/waterlock/issues/comments{/number}","contents_url":"https://api.github.com/repos/cantecim/waterlock/contents/{+path}","compare_url":"https://api.github.com/repos/cantecim/waterlock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cantecim/waterlock/merges","archive_url":"https://api.github.com/repos/cantecim/waterlock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cantecim/waterlock/downloads","issues_url":"https://api.github.com/repos/cantecim/waterlock/issues{/number}","pulls_url":"https://api.github.com/repos/cantecim/waterlock/pulls{/number}","milestones_url":"https://api.github.com/repos/cantecim/waterlock/milestones{/number}","notifications_url":"https://api.github.com/repos/cantecim/waterlock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cantecim/waterlock/labels{/name}","releases_url":"https://api.github.com/repos/cantecim/waterlock/releases{/id}","deployments_url":"https://api.github.com/repos/cantecim/waterlock/deployments","created_at":"2016-06-18T21:40:40Z","updated_at":"2016-06-18T21:40:41Z","pushed_at":"2016-06-21T11:42:01Z","git_url":"git://github.com/cantecim/waterlock.git","ssh_url":"git@github.com:cantecim/waterlock.git","clone_url":"https://github.com/cantecim/waterlock.git","svn_url":"https://github.com/cantecim/waterlock","homepage":"http://waterlock.ninja","size":831,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"waterlock:master","ref":"master","sha":"088c7f9c641f626e6ebe9de4eec68f7eddf8d094","user":{"login":"waterlock","id":10261713,"avatar_url":"https://avatars.githubusercontent.com/u/10261713?v=3","gravatar_id":"","url":"https://api.github.com/users/waterlock","html_url":"https://github.com/waterlock","followers_url":"https://api.github.com/users/waterlock/followers","following_url":"https://api.github.com/users/waterlock/following{/other_user}","gists_url":"https://api.github.com/users/waterlock/gists{/gist_id}","starred_url":"https://api.github.com/users/waterlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waterlock/subscriptions","organizations_url":"https://api.github.com/users/waterlock/orgs","repos_url":"https://api.github.com/users/waterlock/repos","events_url":"https://api.github.com/users/waterlock/events{/privacy}","received_events_url":"https://api.github.com/users/waterlock/received_events","type":"Organization","site_admin":false},"repo":{"id":20204177,"name":"waterlock","full_name":"waterlock/waterlock","owner":{"login":"waterlock","id":10261713,"avatar_url":"https://avatars.githubusercontent.com/u/10261713?v=3","gravatar_id":"","url":"https://api.github.com/users/waterlock","html_url":"https://github.com/waterlock","followers_url":"https://api.github.com/users/waterlock/followers","following_url":"https://api.github.com/users/waterlock/following{/other_user}","gists_url":"https://api.github.com/users/waterlock/gists{/gist_id}","starred_url":"https://api.github.com/users/waterlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waterlock/subscriptions","organizations_url":"https://api.github.com/users/waterlock/orgs","repos_url":"https://api.github.com/users/waterlock/repos","events_url":"https://api.github.com/users/waterlock/events{/privacy}","received_events_url":"https://api.github.com/users/waterlock/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/waterlock/waterlock","description":"User authentication and json web token handling for Sails","fork":false,"url":"https://api.github.com/repos/waterlock/waterlock","forks_url":"https://api.github.com/repos/waterlock/waterlock/forks","keys_url":"https://api.github.com/repos/waterlock/waterlock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waterlock/waterlock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waterlock/waterlock/teams","hooks_url":"https://api.github.com/repos/waterlock/waterlock/hooks","issue_events_url":"https://api.github.com/repos/waterlock/waterlock/issues/events{/number}","events_url":"https://api.github.com/repos/waterlock/waterlock/events","assignees_url":"https://api.github.com/repos/waterlock/waterlock/assignees{/user}","branches_url":"https://api.github.com/repos/waterlock/waterlock/branches{/branch}","tags_url":"https://api.github.com/repos/waterlock/waterlock/tags","blobs_url":"https://api.github.com/repos/waterlock/waterlock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waterlock/waterlock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waterlock/waterlock/git/refs{/sha}","trees_url":"https://api.github.com/repos/waterlock/waterlock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waterlock/waterlock/statuses/{sha}","languages_url":"https://api.github.com/repos/waterlock/waterlock/languages","stargazers_url":"https://api.github.com/repos/waterlock/waterlock/stargazers","contributors_url":"https://api.github.com/repos/waterlock/waterlock/contributors","subscribers_url":"https://api.github.com/repos/waterlock/waterlock/subscribers","subscription_url":"https://api.github.com/repos/waterlock/waterlock/subscription","commits_url":"https://api.github.com/repos/waterlock/waterlock/commits{/sha}","git_commits_url":"https://api.github.com/repos/waterlock/waterlock/git/commits{/sha}","comments_url":"https://api.github.com/repos/waterlock/waterlock/comments{/number}","issue_comment_url":"https://api.github.com/repos/waterlock/waterlock/issues/comments{/number}","contents_url":"https://api.github.com/repos/waterlock/waterlock/contents/{+path}","compare_url":"https://api.github.com/repos/waterlock/waterlock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waterlock/waterlock/merges","archive_url":"https://api.github.com/repos/waterlock/waterlock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waterlock/waterlock/downloads","issues_url":"https://api.github.com/repos/waterlock/waterlock/issues{/number}","pulls_url":"https://api.github.com/repos/waterlock/waterlock/pulls{/number}","milestones_url":"https://api.github.com/repos/waterlock/waterlock/milestones{/number}","notifications_url":"https://api.github.com/repos/waterlock/waterlock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waterlock/waterlock/labels{/name}","releases_url":"https://api.github.com/repos/waterlock/waterlock/releases{/id}","deployments_url":"https://api.github.com/repos/waterlock/waterlock/deployments","created_at":"2014-05-27T02:17:34Z","updated_at":"2016-06-21T03:15:07Z","pushed_at":"2016-06-21T11:42:02Z","git_url":"git://github.com/waterlock/waterlock.git","ssh_url":"git@github.com:waterlock/waterlock.git","clone_url":"https://github.com/waterlock/waterlock.git","svn_url":"https://github.com/waterlock/waterlock","homepage":"http://waterlock.ninja","size":828,"stargazers_count":283,"watchers_count":283,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":71,"mirror_url":null,"open_issues_count":62,"forks":71,"open_issues":62,"watchers":283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/133"},"html":{"href":"https://github.com/waterlock/waterlock/pull/133"},"issue":{"href":"https://api.github.com/repos/waterlock/waterlock/issues/133"},"comments":{"href":"https://api.github.com/repos/waterlock/waterlock/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/waterlock/waterlock/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/waterlock/waterlock/statuses/b21be789e081f633b1ae95f586a3faf04606af51"}}}}
{"actor":{"display_login":"houndci-bot"}}