{"action":"created","comment":{"url":"https://api.github.com/repos/netguru/people/pulls/comments/91678696","pull_request_review_id":12188895,"id":91678696,"diff_hunk":"@@ -0,0 +1,91 @@\n+class SkillsController < ApplicationController\n+  before_filter :authenticate_admin!\n+  before_action :set_skill, only: [:show, :edit, :update, :destroy]\n+  before_action :set_grouped_skills, only: [:index]\n+\n+  # GET /skills\n+  # GET /skills.json\n+  def index\n+    respond_to do |format|\n+      format.html # index.html.erb\n+      format.json { render json: @grouped_skills_by_category }\n+    end\n+  end\n+\n+  # GET /skills/1\n+  # GET /skills/1.json\n+  def show\n+    respond_to do |format|\n+      format.html # show.html.erb\n+      format.json { render json: @skill }\n+    end\n+  end\n+\n+  # GET /skills/new\n+  def new\n+    @skill = Skill.new\n+  end\n+\n+  # GET /skills/1/edit\n+  def edit\n+  end\n+\n+  # POST /skills\n+  # POST /skills.json\n+  def create\n+    @skill = Skill.new(skill_params)\n+\n+    respond_to do |format|\n+      if @skill.save\n+        format.html { redirect_to @skill, notice: 'Skill was successfully created.' }\n+        format.json { render json: @skill, status: :created }\n+      else\n+        format.html { render action: 'new' }\n+        format.json { render json: @skill.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # PATCH/PUT /skills/1\n+  # PATCH/PUT /skills/1.json\n+  def update\n+    respond_to do |format|\n+      if @skill.update(skill_params)\n+        format.html { redirect_to @skill, notice: 'Skill was successfully updated.' }\n+        format.json { head :no_content }\n+      else\n+        format.html { render action: 'edit' }\n+        format.json { render json: @skill.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # DELETE /skills/1\n+  # DELETE /skills/1.json\n+  def destroy\n+    @skill.destroy\n+    respond_to do |format|\n+      format.html { redirect_to skills_url }\n+      format.json { head :no_content }\n+    end\n+  end\n+\n+  private\n+\n+    # Use callbacks to share common setup or constraints between actions.\n+    def set_skill","path":"app/controllers/skills_controller.rb","position":76,"original_position":76,"commit_id":"88a6a8c56f8ba9d148d0d3d33e1c57a5091e5078","original_commit_id":"88a6a8c56f8ba9d148d0d3d33e1c57a5091e5078","user":{"login":"netguru-hound","id":8405163,"avatar_url":"https://avatars.githubusercontent.com/u/8405163?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru-hound","html_url":"https://github.com/netguru-hound","followers_url":"https://api.github.com/users/netguru-hound/followers","following_url":"https://api.github.com/users/netguru-hound/following{/other_user}","gists_url":"https://api.github.com/users/netguru-hound/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-hound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-hound/subscriptions","organizations_url":"https://api.github.com/users/netguru-hound/orgs","repos_url":"https://api.github.com/users/netguru-hound/repos","events_url":"https://api.github.com/users/netguru-hound/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-hound/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2016-12-09T08:59:15Z","updated_at":"2016-12-09T08:59:16Z","html_url":"https://github.com/netguru/people/pull/216#discussion_r91678696","pull_request_url":"https://api.github.com/repos/netguru/people/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/netguru/people/pulls/comments/91678696"},"html":{"href":"https://github.com/netguru/people/pull/216#discussion_r91678696"},"pull_request":{"href":"https://api.github.com/repos/netguru/people/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/netguru/people/pulls/216","id":96487826,"html_url":"https://github.com/netguru/people/pull/216","diff_url":"https://github.com/netguru/people/pull/216.diff","patch_url":"https://github.com/netguru/people/pull/216.patch","issue_url":"https://api.github.com/repos/netguru/people/issues/216","number":216,"state":"open","locked":false,"title":"Skills: db structure, models & skills page scaffold ","user":{"login":"mxaly","id":1533271,"avatar_url":"https://avatars.githubusercontent.com/u/1533271?v=3","gravatar_id":"","url":"https://api.github.com/users/mxaly","html_url":"https://github.com/mxaly","followers_url":"https://api.github.com/users/mxaly/followers","following_url":"https://api.github.com/users/mxaly/following{/other_user}","gists_url":"https://api.github.com/users/mxaly/gists{/gist_id}","starred_url":"https://api.github.com/users/mxaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxaly/subscriptions","organizations_url":"https://api.github.com/users/mxaly/orgs","repos_url":"https://api.github.com/users/mxaly/repos","events_url":"https://api.github.com/users/mxaly/events{/privacy}","received_events_url":"https://api.github.com/users/mxaly/received_events","type":"User","site_admin":false},"body":"TODO:\r\n* [x] skill model\r\n* [x] skill_category model\r\n* [x] user_skill_rate model\r\n* [x] relations (skill to user, skill_category to role)\r\n* [x] skill model validations \r\n* [x] user_skill_rate validations\r\n* [x] skill_category validations\r\n* [x] user#rated_skill & user#not_reted_skill lists\r\n* [x] scaffolded skills page - access only for admin\r\n* [x] fill out seeds with `skill_category` and `skill` data\r\n","created_at":"2016-12-05T08:38:35Z","updated_at":"2016-12-09T08:59:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3f97dc43595c4797fbf6dce4195ac8e633871ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/netguru/people/pulls/216/commits","review_comments_url":"https://api.github.com/repos/netguru/people/pulls/216/comments","review_comment_url":"https://api.github.com/repos/netguru/people/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/people/issues/216/comments","statuses_url":"https://api.github.com/repos/netguru/people/statuses/88a6a8c56f8ba9d148d0d3d33e1c57a5091e5078","head":{"label":"netguru:skills_related_db_changes_and_scaffold","ref":"skills_related_db_changes_and_scaffold","sha":"88a6a8c56f8ba9d148d0d3d33e1c57a5091e5078","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":14857326,"name":"people","full_name":"netguru/people","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/people","description":"PeopleApp: easily manage people within the projects!","fork":false,"url":"https://api.github.com/repos/netguru/people","forks_url":"https://api.github.com/repos/netguru/people/forks","keys_url":"https://api.github.com/repos/netguru/people/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/people/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/people/teams","hooks_url":"https://api.github.com/repos/netguru/people/hooks","issue_events_url":"https://api.github.com/repos/netguru/people/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/people/events","assignees_url":"https://api.github.com/repos/netguru/people/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/people/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/people/tags","blobs_url":"https://api.github.com/repos/netguru/people/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/people/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/people/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/people/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/people/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/people/languages","stargazers_url":"https://api.github.com/repos/netguru/people/stargazers","contributors_url":"https://api.github.com/repos/netguru/people/contributors","subscribers_url":"https://api.github.com/repos/netguru/people/subscribers","subscription_url":"https://api.github.com/repos/netguru/people/subscription","commits_url":"https://api.github.com/repos/netguru/people/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/people/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/people/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/people/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/people/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/people/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/people/merges","archive_url":"https://api.github.com/repos/netguru/people/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/people/downloads","issues_url":"https://api.github.com/repos/netguru/people/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/people/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/people/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/people/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/people/labels{/name}","releases_url":"https://api.github.com/repos/netguru/people/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/people/deployments","created_at":"2013-12-02T08:55:29Z","updated_at":"2016-11-22T04:02:39Z","pushed_at":"2016-12-09T08:56:32Z","git_url":"git://github.com/netguru/people.git","ssh_url":"git@github.com:netguru/people.git","clone_url":"https://github.com/netguru/people.git","svn_url":"https://github.com/netguru/people","homepage":"https://netguru.co/opensource","size":4512,"stargazers_count":45,"watchers_count":45,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":3,"forks":20,"open_issues":3,"watchers":45,"default_branch":"master"}},"base":{"label":"netguru:skills","ref":"skills","sha":"7f67239c20012cdd39d5836955d335afd8ccb7ce","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":14857326,"name":"people","full_name":"netguru/people","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/people","description":"PeopleApp: easily manage people within the projects!","fork":false,"url":"https://api.github.com/repos/netguru/people","forks_url":"https://api.github.com/repos/netguru/people/forks","keys_url":"https://api.github.com/repos/netguru/people/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/people/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/people/teams","hooks_url":"https://api.github.com/repos/netguru/people/hooks","issue_events_url":"https://api.github.com/repos/netguru/people/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/people/events","assignees_url":"https://api.github.com/repos/netguru/people/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/people/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/people/tags","blobs_url":"https://api.github.com/repos/netguru/people/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/people/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/people/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/people/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/people/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/people/languages","stargazers_url":"https://api.github.com/repos/netguru/people/stargazers","contributors_url":"https://api.github.com/repos/netguru/people/contributors","subscribers_url":"https://api.github.com/repos/netguru/people/subscribers","subscription_url":"https://api.github.com/repos/netguru/people/subscription","commits_url":"https://api.github.com/repos/netguru/people/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/people/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/people/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/people/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/people/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/people/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/people/merges","archive_url":"https://api.github.com/repos/netguru/people/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/people/downloads","issues_url":"https://api.github.com/repos/netguru/people/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/people/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/people/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/people/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/people/labels{/name}","releases_url":"https://api.github.com/repos/netguru/people/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/people/deployments","created_at":"2013-12-02T08:55:29Z","updated_at":"2016-11-22T04:02:39Z","pushed_at":"2016-12-09T08:56:32Z","git_url":"git://github.com/netguru/people.git","ssh_url":"git@github.com:netguru/people.git","clone_url":"https://github.com/netguru/people.git","svn_url":"https://github.com/netguru/people","homepage":"https://netguru.co/opensource","size":4512,"stargazers_count":45,"watchers_count":45,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":3,"forks":20,"open_issues":3,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/people/pulls/216"},"html":{"href":"https://github.com/netguru/people/pull/216"},"issue":{"href":"https://api.github.com/repos/netguru/people/issues/216"},"comments":{"href":"https://api.github.com/repos/netguru/people/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/people/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/people/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/people/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/people/statuses/88a6a8c56f8ba9d148d0d3d33e1c57a5091e5078"}}}}
{"actor":{"display_login":"netguru-hound"}}