{"action":"created","comment":{"url":"https://api.github.com/repos/fsek/web/pulls/comments/27468427","id":27468427,"diff_hunk":"@@ -1,214 +1,88 @@\n # encoding:UTF-8\n class AlbumsController < ApplicationController\n   load_permissions_and_authorize_resource\n+  load_and_authorize_resource :image, through: :album\n   before_action :set_edit\n-  before_action :set_album, except: [:index,:new,:create,:settings]\n   before_action :categories\n-  \n+\n   def index\n     @albums = Album.order('start_date asc')\n-    @albums_latest = Album.order('created_at desc LIMIT 4')    \n-    \n-    if (params[:id] != nil) && (params[:datum] != \"\")     \n-      @id = params[:id]\n-      @datum = Date.parse(params[:datum])  \n-      if @datum < Date.today\n-        if @kategorier.find_by_id(@id)\n-            @searched = Album.where(:start_date => @datum..Date.today).all\n-        else                \n-          @searched = Album.where(:category => @kategorier.find(@id).name, :start_date => @datum...Date.today).all\n-        end\n-      end\n-    elsif (params[:id]) && (params[:datum] == \"\" )\n-      @id = params[:id]\n-      @searched = Album.where(:category => @kategorier.find(@id).name)    \n-    end\n-      \n+    @albums_latest = Album.order('created_at desc LIMIT 4')\n   end\n-  \n+\n   def edit\n-    if(params[:commit]) && (current_user) && (current_user.moderator?(:galleri))\n-      if(params[:commit] == 'Markera alla')\n-        @mark = true\n-      elsif(params[:commit] == 'Ta bort markerade') && (params[:image_ids])\n-        params[:image_ids].each { |img_id|\n-          img = Image.find_by_id(img_id)\n-          if(img)\n-            img.destroy\n-          end\n-        }\n-        flash.now[:notice] = 'De markerade bilderna togs bort.'\n-      elsif(params[:commit] == 'Byt kategori') && (params[:image_ids]) && (params[:image_category])\n-        params[:image_ids].each { |img_id|\n-          img = Image.find_by_id(img_id)\n-          if(img)\n-            img.subcategory_id = params[:image_category]\n-            img.save()\n-          end\n-        }\n-        flash.now[:notice] = 'De markerade bilderna har nu kategorin: '+Subcategory.find_by_id(params[:image_category]).text\n-      end\n-    end\n-    \n-    \n   end\n-  \n-  def settings\n-    unless @kategori\n-      @kategori = AlbumCategory.new\n-    end    \n-    unless @kategorier       \n-      @kategorier = AlbumCategory.order('name desc')\n-    end\n-    \n-    if (params[:commit] == \"Spara ny kategori\") && (params[:album_category][:name] != nil) \n-      @kategori.update(name: params[:album_category][:name],text: params[:album_category][:text],visible: params[:album_category][:visible])\n-      if @kategori.save        \n-        flash.now[:notice] = 'Kategorin '+@kategori.name+' skapades till Bildgalleriet'\n-        @kategorier = AlbumCategory.order('name desc')\n-        @kategori = AlbumCategory.new\n-      end      \n-    end\n-        \n-    if (params[:commit] == 'Spara kategori') && (params[:album_category][:id].nil? == false)\n-      @kategorin = AlbumCategory.find(params[:album_category][:id])      \n-      @kategorin.update(name: params[:album_category][:name],text: params[:album_category][:text],visible: params[:album_category][:visible])\n-      if @kategorin.save\n-        @kategorier = AlbumCategory.unscoped.order('name desc')\n-        flash.now[:notice] = 'Kategorin '+@kategorin.name+' uppdaterades till Bildgalleriet'\n-      end\n-    end\n-    \n-    if (params[:commit] == 'Ta bort kategori')&&(params[:album_category])    \n-      @category = AlbumCategory.find_by_id(params[:album_category][:id]).destroy\n-      @kategorier = AlbumCategory.all      \n-      flash.now[:notice] = 'Kategorin togs bort'\n-    end\n-    \n-    unless @subcategory\n-      @subcategory = Subcategory.new\n-    end    \n-    unless @subcategories       \n-      @subcategories = Subcategory.order('text desc')\n-    end\n-    \n-    if (params[:commit] == \"Spara ny underkategori\") && (params[:subcategory][:text] != nil) \n-      @subcategory.update(text: params[:subcategory][:text])\n-      if @subcategory.save        \n-        flash.now[:notice] = 'Underkategorin '+@subcategory.text+' skapades till Bildgalleriet'\n-        @subcategory = Subcategory.new()\n-        \n-      end      \n-    end\n-        \n-    if (params[:commit] == 'Spara underkategori') && (params[:subcategory][:id].nil? == false)\n-      @subcategory = Subcategory.find(params[:subcategory][:id].nil? == false)      \n-      @subcategory.update(text: params[:subcategory][:text])\n-      if @subcategory.save\n-        @subcategories = Subcategory.unscoped.order('text desc')\n-        flash.now[:notice] = 'Underkategorin '+@subcategory.text+' uppdaterades till Bildgalleriet'\n-      end\n-    end\n-    \n-    if (params[:commit] == 'Ta bort underkategori')&&(params[:subcategory][:id].nil? == false)    \n-      @category = Subcategory.find(params[:subcategory][:id]).destroy\n-      @subcategories = Subcategory.unscoped.order('text desc')      \n-      flash.now[:notice] = 'Kategorin togs bort'\n-    end\n-  end \n-  \n-  def show    \n+\n+  # TODO add Settings somewhere else\n+\n+  def show\n     if (@album.images)\n       @images = @album.images.order('foto_file_name asc')\n     else\n-      @images = nil      \n-    end    \n+      @images = nil\n+    end\n   end\n-  \n+\n   def new\n-    @album = Album.new\n   end\n-  \n+\n   def create\n-      @album = Album.new(album_params)      \n-      @album.update(author: current_user.profile)    \n-      respond_to do |format|\n-        if @album.save                        \n-          format.html { redirect_to @album, notice: 'Albumet skapades!' }\n-          format.json { render :json => @album, :status => :created, :location => @album }\n-        else\n-          format.html { render action: \"new\" }\n-          format.json { render json: @album.errors, status: :unprocessable_entity }\n-        end\n-      end\n+    @album.author = current_user.profile\n+    if @album.save\n+      redirect_to @album, notice: 'Albumet skapades!'\n+    else\n+      render action: \"new\"\n+    end\n   end\n-    \n-  def destroy    \n+\n+  def destroy\n     @album.destroy\n-    respond_to do |format|\n-      format.html { redirect_to albums_url,notice: 'Albumet raderades.' }\n-      format.json { head :no_content }\n-    end\n+    redirect_to albums_url, notice: 'Albumet raderades.'\n   end\n+\n   def destroy_images\n     for image in @album.images\n       image.destroy\n     end\n-    respond_to do |format|\n-      format.html { redirect_to @album, notice: 'Bilderna tog borts!' }\n-      format.json { render :json => @album, :location => @album }\n-    end\n+    redirect_to @album, notice: 'Bilderna tog borts!'\n   end\n+\n   def upload_images\n     if (params[:fotos]) && (params[:subcategory_id])\n-        #===== The magic is here ;)\n-        @count = 1\n-        @total = params[:fotos].count\n-          params[:fotos].each { |foto|\n-            flash[:notice] =(\"Laddar upp \"+@count.to_s+\"/\"+@total.to_s)\n-            @album.images.create(foto: foto,subcategory_id: params[:subcategory_id])\n-            @count = @count+1;\n-          }\n-          flash[:notice] =(\"Färdig!   Laddat upp \"+@total.to_s+\" bilder.\")\n-    end    \n+      #===== The magic is here ;)\n+      @count = 1\n+      @total = params[:fotos].count\n+      params[:fotos].each do |foto|\n+        flash[:notice] = %(Laddar upp #{@count}/#{@total})\n+        @album.images.create(foto: foto, subcategory_id: params[:subcategory_id])\n+        @count = @count+1;\n+      end\n+      flash[:notice] = %(Färdig! Laddat upp #{@total} bilder.)\n+    end\n   end\n+\n   def update\n-    respond_to do |format|\n-      if @album.update_attributes(album_params)                \n-        format.html { redirect_to edit_album_path(@album), :notice => 'Albumet uppdaterades!' }\n-        format.json { head :no_content }\n-      else\n-        format.html { render :action => \"edit\" }\n-        format.json { render :json => @album.errors, :status => :unprocessable_entity }\n-      end\n+    if @album.update(album_params)\n+      redirect_to edit_album_path(@album), notice: 'Albumet uppdaterades!'\n+    else\n+      render action: \"edit\"\n     end\n-  end  \n-private\n-  def authenticate\n-    \n-    redirect_to(:back) unless (current_user) && (current_user.moderator?(:galleri))\n-    \n-    rescue ActionController::RedirectBackError\n-      redirect_to root_path\n   end\n+\n+  private\n+\n   def categories\n-     @kategorier = AlbumCategory.order('name desc')\n-     @subcategories = Subcategory.order('text desc')\n-  end\n-  def set_album\n-    @album = Album.find(params[:id])      \n+    @kategorier = AlbumCategory.order('name desc')\n+    @subcategories = Subcategory.order('text desc')\n   end\n+\n   def set_edit\n-   if (current_user) && (current_user.moderator?(:galleri))\n-     @edit = true\n-   else\n-     @edit = false\n-   end\n-  end\n-  def image_params\n-    params.fetch(:image,{}).permit(:album_id,:subcategory_id)\n+    @edit = can? :manage, Album\n   end\n+\n   def album_params\n-    params.fetch(:album,{}).permit(:title,:description,:author,:location,:public,:start_date,:end_date,:album_category_ids => [],:subcategory_ids => [],images_parameters: [:id, :foto])\n+    params.require(:album).permit(:title, :description, :author, :location,\n+                                  :public, :start_date, :end_date, album_category_ids: [],\n+                                  subcategory_ids: [], images_parameters: [:id, :foto])","path":"app/controllers/albums_controller.rb","position":262,"original_position":262,"commit_id":"18bb9940440f6635f7fcd2df6d5416e749989480","original_commit_id":"18bb9940440f6635f7fcd2df6d5416e749989480","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-03-31T10:38:52Z","updated_at":"2015-03-31T10:38:52Z","html_url":"https://github.com/fsek/web/pull/150#discussion_r27468427","pull_request_url":"https://api.github.com/repos/fsek/web/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/comments/27468427"},"html":{"href":"https://github.com/fsek/web/pull/150#discussion_r27468427"},"pull_request":{"href":"https://api.github.com/repos/fsek/web/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/fsek/web/pulls/150","id":32306935,"html_url":"https://github.com/fsek/web/pull/150","diff_url":"https://github.com/fsek/web/pull/150.diff","patch_url":"https://github.com/fsek/web/pull/150.patch","issue_url":"https://api.github.com/repos/fsek/web/issues/150","number":150,"state":"open","locked":false,"title":"Fixing Council pages,","user":{"login":"davidwessman","id":6763624,"avatar_url":"https://avatars.githubusercontent.com/u/6763624?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwessman","html_url":"https://github.com/davidwessman","followers_url":"https://api.github.com/users/davidwessman/followers","following_url":"https://api.github.com/users/davidwessman/following{/other_user}","gists_url":"https://api.github.com/users/davidwessman/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwessman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwessman/subscriptions","organizations_url":"https://api.github.com/users/davidwessman/orgs","repos_url":"https://api.github.com/users/davidwessman/repos","events_url":"https://api.github.com/users/davidwessman/events{/privacy}","received_events_url":"https://api.github.com/users/davidwessman/received_events","type":"User","site_admin":false},"body":"Removes all mentions of the_role actions, fixing old controllers.\r\n\r\nAlbum-, workpost-controllers are not in used at the moment and I will not implement tests for them now.","created_at":"2015-03-31T09:57:58Z","updated_at":"2015-03-31T10:38:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fsek/web/pulls/150/commits","review_comments_url":"https://api.github.com/repos/fsek/web/pulls/150/comments","review_comment_url":"https://api.github.com/repos/fsek/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsek/web/issues/150/comments","statuses_url":"https://api.github.com/repos/fsek/web/statuses/18bb9940440f6635f7fcd2df6d5416e749989480","head":{"label":"fsek:FixCouncilPage","ref":"FixCouncilPage","sha":"18bb9940440f6635f7fcd2df6d5416e749989480","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-31T10:16:17Z","pushed_at":"2015-03-31T10:38:43Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":211991,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":57,"forks":1,"open_issues":57,"watchers":2,"default_branch":"master"}},"base":{"label":"fsek:master","ref":"master","sha":"a3a742e2d14ce29c541a324a23a4ecb9b0c982bb","user":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"repo":{"id":27583674,"name":"web","full_name":"fsek/web","owner":{"login":"fsek","id":10084654,"avatar_url":"https://avatars.githubusercontent.com/u/10084654?v=3","gravatar_id":"","url":"https://api.github.com/users/fsek","html_url":"https://github.com/fsek","followers_url":"https://api.github.com/users/fsek/followers","following_url":"https://api.github.com/users/fsek/following{/other_user}","gists_url":"https://api.github.com/users/fsek/gists{/gist_id}","starred_url":"https://api.github.com/users/fsek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsek/subscriptions","organizations_url":"https://api.github.com/users/fsek/orgs","repos_url":"https://api.github.com/users/fsek/repos","events_url":"https://api.github.com/users/fsek/events{/privacy}","received_events_url":"https://api.github.com/users/fsek/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsek/web","description":"F-sektionens hemsida","fork":false,"url":"https://api.github.com/repos/fsek/web","forks_url":"https://api.github.com/repos/fsek/web/forks","keys_url":"https://api.github.com/repos/fsek/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsek/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsek/web/teams","hooks_url":"https://api.github.com/repos/fsek/web/hooks","issue_events_url":"https://api.github.com/repos/fsek/web/issues/events{/number}","events_url":"https://api.github.com/repos/fsek/web/events","assignees_url":"https://api.github.com/repos/fsek/web/assignees{/user}","branches_url":"https://api.github.com/repos/fsek/web/branches{/branch}","tags_url":"https://api.github.com/repos/fsek/web/tags","blobs_url":"https://api.github.com/repos/fsek/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsek/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsek/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsek/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsek/web/statuses/{sha}","languages_url":"https://api.github.com/repos/fsek/web/languages","stargazers_url":"https://api.github.com/repos/fsek/web/stargazers","contributors_url":"https://api.github.com/repos/fsek/web/contributors","subscribers_url":"https://api.github.com/repos/fsek/web/subscribers","subscription_url":"https://api.github.com/repos/fsek/web/subscription","commits_url":"https://api.github.com/repos/fsek/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsek/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsek/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsek/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsek/web/contents/{+path}","compare_url":"https://api.github.com/repos/fsek/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsek/web/merges","archive_url":"https://api.github.com/repos/fsek/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsek/web/downloads","issues_url":"https://api.github.com/repos/fsek/web/issues{/number}","pulls_url":"https://api.github.com/repos/fsek/web/pulls{/number}","milestones_url":"https://api.github.com/repos/fsek/web/milestones{/number}","notifications_url":"https://api.github.com/repos/fsek/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsek/web/labels{/name}","releases_url":"https://api.github.com/repos/fsek/web/releases{/id}","created_at":"2014-12-05T09:13:19Z","updated_at":"2015-03-31T10:16:17Z","pushed_at":"2015-03-31T10:38:43Z","git_url":"git://github.com/fsek/web.git","ssh_url":"git@github.com:fsek/web.git","clone_url":"https://github.com/fsek/web.git","svn_url":"https://github.com/fsek/web","homepage":"http://fsektionen.se","size":211991,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":57,"forks":1,"open_issues":57,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsek/web/pulls/150"},"html":{"href":"https://github.com/fsek/web/pull/150"},"issue":{"href":"https://api.github.com/repos/fsek/web/issues/150"},"comments":{"href":"https://api.github.com/repos/fsek/web/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/fsek/web/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/fsek/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsek/web/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/fsek/web/statuses/18bb9940440f6635f7fcd2df6d5416e749989480"}}}}