Comments (4)
Have added a web hook "/webhook"
from code-curiosity.
Sample POST data in webhook
{"ref"=>"refs/heads/master",
"before"=>"39aaba328355f5f70c4bb8bc75453de4741cf666",
"after"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"created"=>false,
"deleted"=>false,
"forced"=>false,
"base_ref"=>nil,
"compare"=>
"https://github.com/joshsoftware/code-curiosity/compare/39aaba328355...732d460b1075",
"commits"=>
[{"id"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"distinct"=>true,
"message"=>"refs #7 added webhook route\n\nJust hte skeleton",
"timestamp"=>"2015-10-27T08:21:52+05:30",
"url"=>
"https://github.com/joshsoftware/code-curiosity/commit/732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"author"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"committer"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"added"=>nil,
"removed"=>nil,
"modified"=>
["app/controllers/dashboard_controller.rb", "config/routes.rb"]}],
"head_commit"=>
{"id"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"distinct"=>true,
"message"=>"refs #7 added webhook route\n\nJust hte skeleton",
"timestamp"=>"2015-10-27T08:21:52+05:30",
"url"=>
"https://github.com/joshsoftware/code-curiosity/commit/732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"author"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"committer"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"added"=>nil,
"removed"=>nil,
"modified"=>
["app/controllers/dashboard_controller.rb", "config/routes.rb"]},
"repository"=>
{"id"=>42095647,
"name"=>"code-curiosity",
"full_name"=>"joshsoftware/code-curiosity",
"owner"=>{"name"=>"joshsoftware", "email"=>nil},
"private"=>false,
"html_url"=>"https://github.com/joshsoftware/code-curiosity",
"description"=>"Dashboard for Code Curiosity Open Source Competition",
"fork"=>false,
"url"=>"https://github.com/joshsoftware/code-curiosity",
"forks_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/forks",
"keys_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/keys{/key_id}",
"collaborators_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/collaborators{/collaborator}",
"teams_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/teams",
"hooks_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/hooks",
"issue_events_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues/events{/number}",
"events_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/events",
"assignees_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/assignees{/user}",
"branches_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/branches{/branch}",
"tags_url"=>"https://api.github.com/repos/joshsoftware/code-curiosity/tags",
"blobs_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/blobs{/sha}",
"git_tags_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/tags{/sha}",
"git_refs_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/refs{/sha}",
"trees_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/trees{/sha}",
"statuses_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/statuses/{sha}",
"languages_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/languages",
"stargazers_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/stargazers",
"contributors_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/contributors",
"subscribers_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/subscribers",
"subscription_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/subscription",
"commits_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/commits{/sha}",
"git_commits_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/commits{/sha}",
"comments_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/comments{/number}",
"issue_comment_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues/comments{/number}",
"contents_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/contents/{+path}",
"compare_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/compare/{base}...{head}",
"merges_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/merges",
"archive_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/{archive_format}{/ref}",
"downloads_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/downloads",
"issues_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues{/number}",
"pulls_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/pulls{/number}",
"milestones_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/milestones{/number}",
"notifications_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/notifications{?since,all,participating}",
"labels_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/labels{/name}",
"releases_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/releases{/id}",
"created_at"=>1441695683,
"updated_at"=>"2015-09-08T19:25:57Z",
"pushed_at"=>1445914596,
"git_url"=>"git://github.com/joshsoftware/code-curiosity.git",
"ssh_url"=>"[email protected]:joshsoftware/code-curiosity.git",
"clone_url"=>"https://github.com/joshsoftware/code-curiosity.git",
"svn_url"=>"https://github.com/joshsoftware/code-curiosity",
"homepage"=>nil,
"size"=>336,
"stargazers_count"=>1,
"watchers_count"=>1,
"language"=>"Ruby",
"has_issues"=>true,
"has_downloads"=>true,
"has_wiki"=>true,
"has_pages"=>false,
"forks_count"=>0,
"mirror_url"=>nil,
"open_issues_count"=>2,
"forks"=>0,
"open_issues"=>2,
"watchers"=>1,
"default_branch"=>"master",
"stargazers"=>1,
"master_branch"=>"master",
"organization"=>"joshsoftware"},
"pusher"=>{"name"=>"gautamrege", "email"=>"[email protected]"},
"organization"=>
{"login"=>"joshsoftware",
"id"=>130756,
"url"=>"https://api.github.com/orgs/joshsoftware",
"repos_url"=>"https://api.github.com/orgs/joshsoftware/repos",
"events_url"=>"https://api.github.com/orgs/joshsoftware/events",
"members_url"=>"https://api.github.com/orgs/joshsoftware/members{/member}",
"public_members_url"=>
"https://api.github.com/orgs/joshsoftware/public_members{/member}",
"avatar_url"=>"https://avatars.githubusercontent.com/u/130756?v=3",
"description"=>nil},
"sender"=>
{"login"=>"gautamrege",
"id"=>61500,
"avatar_url"=>"https://avatars.githubusercontent.com/u/61500?v=3",
"gravatar_id"=>"",
"url"=>"https://api.github.com/users/gautamrege",
"html_url"=>"https://github.com/gautamrege",
"followers_url"=>"https://api.github.com/users/gautamrege/followers",
"following_url"=>
"https://api.github.com/users/gautamrege/following{/other_user}",
"gists_url"=>"https://api.github.com/users/gautamrege/gists{/gist_id}",
"starred_url"=>
"https://api.github.com/users/gautamrege/starred{/owner}{/repo}",
"subscriptions_url"=>
"https://api.github.com/users/gautamrege/subscriptions",
"organizations_url"=>"https://api.github.com/users/gautamrege/orgs",
"repos_url"=>"https://api.github.com/users/gautamrege/repos",
"events_url"=>"https://api.github.com/users/gautamrege/events{/privacy}",
"received_events_url"=>
"https://api.github.com/users/gautamrege/received_events",
"type"=>"User",
"site_admin"=>false},
"dashboard"=>
{"ref"=>"refs/heads/master",
"before"=>"39aaba328355f5f70c4bb8bc75453de4741cf666",
"after"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"created"=>false,
"deleted"=>false,
"forced"=>false,
"base_ref"=>nil,
"compare"=>
"https://github.com/joshsoftware/code-curiosity/compare/39aaba328355...732d460b1075",
"commits"=>
[{"id"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"distinct"=>true,
"message"=>"refs #7 added webhook route\n\nJust hte skeleton",
"timestamp"=>"2015-10-27T08:21:52+05:30",
"url"=>
"https://github.com/joshsoftware/code-curiosity/commit/732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"author"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"committer"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"added"=>nil,
"removed"=>nil,
"modified"=>
["app/controllers/dashboard_controller.rb", "config/routes.rb"]}],
"head_commit"=>
{"id"=>"732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"distinct"=>true,
"message"=>"refs #7 added webhook route\n\nJust hte skeleton",
"timestamp"=>"2015-10-27T08:21:52+05:30",
"url"=>
"https://github.com/joshsoftware/code-curiosity/commit/732d460b1075ecbd8255ee8e407c5fcfac682c1f",
"author"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"committer"=>
{"name"=>"Gautam Rege",
"email"=>"[email protected]",
"username"=>"gautamrege"},
"added"=>nil,
"removed"=>nil,
"modified"=>
["app/controllers/dashboard_controller.rb", "config/routes.rb"]},
"repository"=>
{"id"=>42095647,
"name"=>"code-curiosity",
"full_name"=>"joshsoftware/code-curiosity",
"owner"=>{"name"=>"joshsoftware", "email"=>nil},
"private"=>false,
"html_url"=>"https://github.com/joshsoftware/code-curiosity",
"description"=>"Dashboard for Code Curiosity Open Source Competition",
"fork"=>false,
"url"=>"https://github.com/joshsoftware/code-curiosity",
"forks_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/forks",
"keys_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/keys{/key_id}",
"collaborators_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/collaborators{/collaborator}",
"teams_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/teams",
"hooks_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/hooks",
"issue_events_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues/events{/number}",
"events_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/events",
"assignees_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/assignees{/user}",
"branches_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/branches{/branch}",
"tags_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/tags",
"blobs_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/blobs{/sha}",
"git_tags_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/tags{/sha}",
"git_refs_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/refs{/sha}",
"trees_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/trees{/sha}",
"statuses_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/statuses/{sha}",
"languages_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/languages",
"stargazers_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/stargazers",
"contributors_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/contributors",
"subscribers_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/subscribers",
"subscription_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/subscription",
"commits_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/commits{/sha}",
"git_commits_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/git/commits{/sha}",
"comments_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/comments{/number}",
"issue_comment_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues/comments{/number}",
"contents_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/contents/{+path}",
"compare_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/compare/{base}...{head}",
"merges_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/merges",
"archive_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/{archive_format}{/ref}",
"downloads_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/downloads",
"issues_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/issues{/number}",
"pulls_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/pulls{/number}",
"milestones_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/milestones{/number}",
"notifications_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/notifications{?since,all,participating}",
"labels_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/labels{/name}",
"releases_url"=>
"https://api.github.com/repos/joshsoftware/code-curiosity/releases{/id}",
"created_at"=>1441695683,
"updated_at"=>"2015-09-08T19:25:57Z",
"pushed_at"=>1445914596,
"git_url"=>"git://github.com/joshsoftware/code-curiosity.git",
"ssh_url"=>"[email protected]:joshsoftware/code-curiosity.git",
"clone_url"=>"https://github.com/joshsoftware/code-curiosity.git",
"svn_url"=>"https://github.com/joshsoftware/code-curiosity",
"homepage"=>nil,
"size"=>336,
"stargazers_count"=>1,
"watchers_count"=>1,
"language"=>"Ruby",
"has_issues"=>true,
"has_downloads"=>true,
"has_wiki"=>true,
"has_pages"=>false,
"forks_count"=>0,
"mirror_url"=>nil,
"open_issues_count"=>2,
"forks"=>0,
"open_issues"=>2,
"watchers"=>1,
"default_branch"=>"master",
"stargazers"=>1,
"master_branch"=>"master",
"organization"=>"joshsoftware"},
"pusher"=>{"name"=>"gautamrege", "email"=>"[email protected]"},
"organization"=>
{"login"=>"joshsoftware",
"id"=>130756,
"url"=>"https://api.github.com/orgs/joshsoftware",
"repos_url"=>"https://api.github.com/orgs/joshsoftware/repos",
"events_url"=>"https://api.github.com/orgs/joshsoftware/events",
"members_url"=>
"https://api.github.com/orgs/joshsoftware/members{/member}",
"public_members_url"=>
"https://api.github.com/orgs/joshsoftware/public_members{/member}",
"avatar_url"=>"https://avatars.githubusercontent.com/u/130756?v=3",
"description"=>nil},
"sender"=>
{"login"=>"gautamrege",
"id"=>61500,
"avatar_url"=>"https://avatars.githubusercontent.com/u/61500?v=3",
"gravatar_id"=>"",
"url"=>"https://api.github.com/users/gautamrege",
"html_url"=>"https://github.com/gautamrege",
"followers_url"=>"https://api.github.com/users/gautamrege/followers",
"following_url"=>
"https://api.github.com/users/gautamrege/following{/other_user}",
"gists_url"=>"https://api.github.com/users/gautamrege/gists{/gist_id}",
"starred_url"=>
"https://api.github.com/users/gautamrege/starred{/owner}{/repo}",
"subscriptions_url"=>
"https://api.github.com/users/gautamrege/subscriptions",
"organizations_url"=>"https://api.github.com/users/gautamrege/orgs",
"repos_url"=>"https://api.github.com/users/gautamrege/repos",
"events_url"=>"https://api.github.com/users/gautamrege/events{/privacy}",
"received_events_url"=>
"https://api.github.com/users/gautamrege/received_events",
"type"=>"User",
"site_admin"=>false}}}
from code-curiosity.
Need to fix this ActionController::InvalidAuthenticityToken
2015-10-27T02:56:37.363722+00:00 app[web.1]: Completed 422 Unprocessable Entity in 1ms
2015-10-27T02:56:37.355937+00:00 app[web.1]: Value for params[:commits][:added] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
2015-10-27T02:56:37.356008+00:00 app[web.1]: Value for params[:commits][:removed] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
2015-10-27T02:56:37.356145+00:00 app[web.1]: Value for params[:head_commit][:added] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
2015-10-27T02:56:37.356264+00:00 app[web.1]: Value for params[:head_commit][:removed] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
2015-10-27T02:56:37.361970+00:00 app[web.1]: Processing by DashboardController#webhook as */*
2015-10-27T02:56:37.363409+00:00 app[web.1]: Can't verify CSRF token authenticity
2015-10-27T02:56:37.365321+00:00 app[web.1]:
2015-10-27T02:56:37.365324+00:00 app[web.1]: ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
from code-curiosity.
Not sure if this will pick up on web hook activities of the forked repository. If there is some activity (comment on issues etc.) we will need to subscribe to that feed to get details. Currently, the web hook is enabled as shown here:
from code-curiosity.
Related Issues (20)
- Old points are not being valued accordingly
- Something is wrong with SSL cert? HOT 1
- Change the text color under User Profile section
- In redeem popover points and cash misplaced HOT 3
- Suggestion for community involvement
- Getting standard error message in dashboard page HOT 4
- Has CodeCuriosity stopped tracking the contributions? HOT 2
- Cant Access the dashboard HOT 4
- Can we please remove all this database of emails HOT 3
- Upgrade Rails HOT 1
- Remove hard-coded devise secret key base
- Add my and JAH's keys to the deploy user HOT 1
- Failure deploying with mina, with the new code HOT 2
- yarn not installed HOT 1
- Now webpack is missing.... HOT 5
- sidekiqctl no longer exists
- Add a sidekiq service file for systemd
- Merge changes required to make it work on updated infrastructure
- Remove the "Theme Credit" from the footer HOT 1
- Move site to maintenance/devel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-curiosity.