{"action":"created","comment":{"url":"https://api.github.com/repos/omu/nokul/pulls/comments/188735427","pull_request_review_id":120774271,"id":188735427,"diff_hunk":"@@ -0,0 +1,83 @@\n+# frozen_string_literal: true\n+\n+module Calendar\n+  class AcademicCalendarsController < ApplicationController\n+    before_action :authenticate_user!\n+    before_action :set_academic_calendar, only: %i[show edit update destroy]\n+\n+    # GET /academic_calendars\n+    # GET /academic_calendars.json\n+    def index\n+      @academic_calendars = AcademicCalendar.all\n+    end\n+\n+    # GET /academic_calendars/1\n+    # GET /academic_calendars/1.json\n+    def show\n+      @events = @academic_calendar.calendar_events\n+    end\n+\n+    # GET /academic_calendars/new\n+    def new\n+      @academic_calendar = AcademicCalendar.new\n+    end\n+\n+    # GET /academic_calendars/1/edit\n+    def edit; end\n+\n+    # POST /academic_calendars\n+    # POST /academic_calendars.json\n+    def create\n+      @academic_calendar = AcademicCalendar.new(academic_calendar_params)\n+\n+      respond_to do |format|\n+        if @academic_calendar.save\n+          format.html { redirect_to @academic_calendar, notice: 'Academic calendar was successfully created.' }\n+          format.json { render :show, status: :created, location: @academic_calendar }\n+        else\n+          format.html { render :new }\n+          format.json { render json: @academic_calendar.errors, status: :unprocessable_entity }\n+        end\n+      end\n+    end\n+\n+    # PATCH/PUT /academic_calendars/1\n+    # PATCH/PUT /academic_calendars/1.json\n+    def update\n+      respond_to do |format|\n+        if @academic_calendar.update(academic_calendar_params)\n+          format.html { redirect_to @academic_calendar, notice: 'Academic calendar was successfully updated.' }\n+          format.json { render :show, status: :ok, location: @academic_calendar }\n+        else\n+          format.html { render :edit }\n+          format.json { render json: @academic_calendar.errors, status: :unprocessable_entity }\n+        end\n+      end\n+    end\n+\n+    # DELETE /academic_calendars/1\n+    # DELETE /academic_calendars/1.json\n+    def destroy\n+      @academic_calendar.destroy\n+      respond_to do |format|\n+        format.html { redirect_to academic_calendars_url, notice: 'Academic calendar was successfully destroyed.' }\n+        format.json { head :no_content }\n+      end\n+    end\n+\n+    private\n+\n+    def set_academic_calendar\n+      @academic_calendar = AcademicCalendar.find(params[:id])\n+      @calendar_titles = @academic_calendar.calendar_type.titles","path":"app/controllers/calendar/academic_calendars_controller.rb","position":72,"original_position":72,"commit_id":"6df2d65b44f77d4d1e0ba0d2d048f5328cc10107","original_commit_id":"6df2d65b44f77d4d1e0ba0d2d048f5328cc10107","user":{"login":"msdundar","id":468744,"avatar_url":"https://avatars2.githubusercontent.com/u/468744?v=4","gravatar_id":"","url":"https://api.github.com/users/msdundar","html_url":"https://github.com/msdundar","followers_url":"https://api.github.com/users/msdundar/followers","following_url":"https://api.github.com/users/msdundar/following{/other_user}","gists_url":"https://api.github.com/users/msdundar/gists{/gist_id}","starred_url":"https://api.github.com/users/msdundar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msdundar/subscriptions","organizations_url":"https://api.github.com/users/msdundar/orgs","repos_url":"https://api.github.com/users/msdundar/repos","events_url":"https://api.github.com/users/msdundar/events{/privacy}","received_events_url":"https://api.github.com/users/msdundar/received_events","type":"User","site_admin":false},"body":"@ecmelkytz rubocop'u güncelleyince yeni bir uyarı geldi:\r\n\r\n`Rails/RefuteMethods: Prefer assert_not over refute.`\r\n\r\nsen zaten `assert_not` kullanmıştın ama ben `refute` kullanıyordum, dolayısıyla öyle devam etmiştim :( refute'ları da assert_not'a çekeceğiz mecbur :/","created_at":"2018-05-16T18:53:48Z","updated_at":"2018-05-16T18:53:48Z","html_url":"https://github.com/omu/nokul/pull/16#discussion_r188735427","pull_request_url":"https://api.github.com/repos/omu/nokul/pulls/16","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/omu/nokul/pulls/comments/188735427"},"html":{"href":"https://github.com/omu/nokul/pull/16#discussion_r188735427"},"pull_request":{"href":"https://api.github.com/repos/omu/nokul/pulls/16"}},"in_reply_to_id":188727974},"pull_request":{"url":"https://api.github.com/repos/omu/nokul/pulls/16","id":188207770,"html_url":"https://github.com/omu/nokul/pull/16","diff_url":"https://github.com/omu/nokul/pull/16.diff","patch_url":"https://github.com/omu/nokul/pull/16.patch","issue_url":"https://api.github.com/repos/omu/nokul/issues/16","number":16,"state":"open","locked":false,"title":"Merge calendar into develop","user":{"login":"msdundar","id":468744,"avatar_url":"https://avatars2.githubusercontent.com/u/468744?v=4","gravatar_id":"","url":"https://api.github.com/users/msdundar","html_url":"https://github.com/msdundar","followers_url":"https://api.github.com/users/msdundar/followers","following_url":"https://api.github.com/users/msdundar/following{/other_user}","gists_url":"https://api.github.com/users/msdundar/gists{/gist_id}","starred_url":"https://api.github.com/users/msdundar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msdundar/subscriptions","organizations_url":"https://api.github.com/users/msdundar/orgs","repos_url":"https://api.github.com/users/msdundar/repos","events_url":"https://api.github.com/users/msdundar/events{/privacy}","received_events_url":"https://api.github.com/users/msdundar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-15T17:54:46Z","updated_at":"2018-05-16T18:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b0db7cabbe808ae9cf200d0a9bae060728cbda0","assignee":{"login":"ecmelkytz","id":937358,"avatar_url":"https://avatars2.githubusercontent.com/u/937358?v=4","gravatar_id":"","url":"https://api.github.com/users/ecmelkytz","html_url":"https://github.com/ecmelkytz","followers_url":"https://api.github.com/users/ecmelkytz/followers","following_url":"https://api.github.com/users/ecmelkytz/following{/other_user}","gists_url":"https://api.github.com/users/ecmelkytz/gists{/gist_id}","starred_url":"https://api.github.com/users/ecmelkytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecmelkytz/subscriptions","organizations_url":"https://api.github.com/users/ecmelkytz/orgs","repos_url":"https://api.github.com/users/ecmelkytz/repos","events_url":"https://api.github.com/users/ecmelkytz/events{/privacy}","received_events_url":"https://api.github.com/users/ecmelkytz/received_events","type":"User","site_admin":false},"assignees":[{"login":"ecmelkytz","id":937358,"avatar_url":"https://avatars2.githubusercontent.com/u/937358?v=4","gravatar_id":"","url":"https://api.github.com/users/ecmelkytz","html_url":"https://github.com/ecmelkytz","followers_url":"https://api.github.com/users/ecmelkytz/followers","following_url":"https://api.github.com/users/ecmelkytz/following{/other_user}","gists_url":"https://api.github.com/users/ecmelkytz/gists{/gist_id}","starred_url":"https://api.github.com/users/ecmelkytz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecmelkytz/subscriptions","organizations_url":"https://api.github.com/users/ecmelkytz/orgs","repos_url":"https://api.github.com/users/ecmelkytz/repos","events_url":"https://api.github.com/users/ecmelkytz/events{/privacy}","received_events_url":"https://api.github.com/users/ecmelkytz/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"roktas","id":47842,"avatar_url":"https://avatars2.githubusercontent.com/u/47842?v=4","gravatar_id":"","url":"https://api.github.com/users/roktas","html_url":"https://github.com/roktas","followers_url":"https://api.github.com/users/roktas/followers","following_url":"https://api.github.com/users/roktas/following{/other_user}","gists_url":"https://api.github.com/users/roktas/gists{/gist_id}","starred_url":"https://api.github.com/users/roktas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roktas/subscriptions","organizations_url":"https://api.github.com/users/roktas/orgs","repos_url":"https://api.github.com/users/roktas/repos","events_url":"https://api.github.com/users/roktas/events{/privacy}","received_events_url":"https://api.github.com/users/roktas/received_events","type":"User","site_admin":false},{"login":"isubas","id":5476376,"avatar_url":"https://avatars0.githubusercontent.com/u/5476376?v=4","gravatar_id":"","url":"https://api.github.com/users/isubas","html_url":"https://github.com/isubas","followers_url":"https://api.github.com/users/isubas/followers","following_url":"https://api.github.com/users/isubas/following{/other_user}","gists_url":"https://api.github.com/users/isubas/gists{/gist_id}","starred_url":"https://api.github.com/users/isubas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isubas/subscriptions","organizations_url":"https://api.github.com/users/isubas/orgs","repos_url":"https://api.github.com/users/isubas/repos","events_url":"https://api.github.com/users/isubas/events{/privacy}","received_events_url":"https://api.github.com/users/isubas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/omu/nokul/pulls/16/commits","review_comments_url":"https://api.github.com/repos/omu/nokul/pulls/16/comments","review_comment_url":"https://api.github.com/repos/omu/nokul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omu/nokul/issues/16/comments","statuses_url":"https://api.github.com/repos/omu/nokul/statuses/6df2d65b44f77d4d1e0ba0d2d048f5328cc10107","head":{"label":"omu:calendar","ref":"calendar","sha":"6df2d65b44f77d4d1e0ba0d2d048f5328cc10107","user":{"login":"omu","id":270150,"avatar_url":"https://avatars0.githubusercontent.com/u/270150?v=4","gravatar_id":"","url":"https://api.github.com/users/omu","html_url":"https://github.com/omu","followers_url":"https://api.github.com/users/omu/followers","following_url":"https://api.github.com/users/omu/following{/other_user}","gists_url":"https://api.github.com/users/omu/gists{/gist_id}","starred_url":"https://api.github.com/users/omu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omu/subscriptions","organizations_url":"https://api.github.com/users/omu/orgs","repos_url":"https://api.github.com/users/omu/repos","events_url":"https://api.github.com/users/omu/events{/privacy}","received_events_url":"https://api.github.com/users/omu/received_events","type":"Organization","site_admin":false},"repo":{"id":122194795,"name":"nokul","full_name":"omu/nokul","owner":{"login":"omu","id":270150,"avatar_url":"https://avatars0.githubusercontent.com/u/270150?v=4","gravatar_id":"","url":"https://api.github.com/users/omu","html_url":"https://github.com/omu","followers_url":"https://api.github.com/users/omu/followers","following_url":"https://api.github.com/users/omu/following{/other_user}","gists_url":"https://api.github.com/users/omu/gists{/gist_id}","starred_url":"https://api.github.com/users/omu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omu/subscriptions","organizations_url":"https://api.github.com/users/omu/orgs","repos_url":"https://api.github.com/users/omu/repos","events_url":"https://api.github.com/users/omu/events{/privacy}","received_events_url":"https://api.github.com/users/omu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omu/nokul","description":"Nokul projesi.","fork":false,"url":"https://api.github.com/repos/omu/nokul","forks_url":"https://api.github.com/repos/omu/nokul/forks","keys_url":"https://api.github.com/repos/omu/nokul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omu/nokul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omu/nokul/teams","hooks_url":"https://api.github.com/repos/omu/nokul/hooks","issue_events_url":"https://api.github.com/repos/omu/nokul/issues/events{/number}","events_url":"https://api.github.com/repos/omu/nokul/events","assignees_url":"https://api.github.com/repos/omu/nokul/assignees{/user}","branches_url":"https://api.github.com/repos/omu/nokul/branches{/branch}","tags_url":"https://api.github.com/repos/omu/nokul/tags","blobs_url":"https://api.github.com/repos/omu/nokul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omu/nokul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omu/nokul/git/refs{/sha}","trees_url":"https://api.github.com/repos/omu/nokul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omu/nokul/statuses/{sha}","languages_url":"https://api.github.com/repos/omu/nokul/languages","stargazers_url":"https://api.github.com/repos/omu/nokul/stargazers","contributors_url":"https://api.github.com/repos/omu/nokul/contributors","subscribers_url":"https://api.github.com/repos/omu/nokul/subscribers","subscription_url":"https://api.github.com/repos/omu/nokul/subscription","commits_url":"https://api.github.com/repos/omu/nokul/commits{/sha}","git_commits_url":"https://api.github.com/repos/omu/nokul/git/commits{/sha}","comments_url":"https://api.github.com/repos/omu/nokul/comments{/number}","issue_comment_url":"https://api.github.com/repos/omu/nokul/issues/comments{/number}","contents_url":"https://api.github.com/repos/omu/nokul/contents/{+path}","compare_url":"https://api.github.com/repos/omu/nokul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omu/nokul/merges","archive_url":"https://api.github.com/repos/omu/nokul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omu/nokul/downloads","issues_url":"https://api.github.com/repos/omu/nokul/issues{/number}","pulls_url":"https://api.github.com/repos/omu/nokul/pulls{/number}","milestones_url":"https://api.github.com/repos/omu/nokul/milestones{/number}","notifications_url":"https://api.github.com/repos/omu/nokul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omu/nokul/labels{/name}","releases_url":"https://api.github.com/repos/omu/nokul/releases{/id}","deployments_url":"https://api.github.com/repos/omu/nokul/deployments","created_at":"2018-02-20T12:23:06Z","updated_at":"2018-05-16T11:01:40Z","pushed_at":"2018-05-16T13:31:59Z","git_url":"git://github.com/omu/nokul.git","ssh_url":"git@github.com:omu/nokul.git","clone_url":"https://github.com/omu/nokul.git","svn_url":"https://github.com/omu/nokul","homepage":"","size":1326,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop"}},"base":{"label":"omu:develop","ref":"develop","sha":"f26bc242a0cc8088dde035887f221902374dcba7","user":{"login":"omu","id":270150,"avatar_url":"https://avatars0.githubusercontent.com/u/270150?v=4","gravatar_id":"","url":"https://api.github.com/users/omu","html_url":"https://github.com/omu","followers_url":"https://api.github.com/users/omu/followers","following_url":"https://api.github.com/users/omu/following{/other_user}","gists_url":"https://api.github.com/users/omu/gists{/gist_id}","starred_url":"https://api.github.com/users/omu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omu/subscriptions","organizations_url":"https://api.github.com/users/omu/orgs","repos_url":"https://api.github.com/users/omu/repos","events_url":"https://api.github.com/users/omu/events{/privacy}","received_events_url":"https://api.github.com/users/omu/received_events","type":"Organization","site_admin":false},"repo":{"id":122194795,"name":"nokul","full_name":"omu/nokul","owner":{"login":"omu","id":270150,"avatar_url":"https://avatars0.githubusercontent.com/u/270150?v=4","gravatar_id":"","url":"https://api.github.com/users/omu","html_url":"https://github.com/omu","followers_url":"https://api.github.com/users/omu/followers","following_url":"https://api.github.com/users/omu/following{/other_user}","gists_url":"https://api.github.com/users/omu/gists{/gist_id}","starred_url":"https://api.github.com/users/omu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omu/subscriptions","organizations_url":"https://api.github.com/users/omu/orgs","repos_url":"https://api.github.com/users/omu/repos","events_url":"https://api.github.com/users/omu/events{/privacy}","received_events_url":"https://api.github.com/users/omu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omu/nokul","description":"Nokul projesi.","fork":false,"url":"https://api.github.com/repos/omu/nokul","forks_url":"https://api.github.com/repos/omu/nokul/forks","keys_url":"https://api.github.com/repos/omu/nokul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omu/nokul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omu/nokul/teams","hooks_url":"https://api.github.com/repos/omu/nokul/hooks","issue_events_url":"https://api.github.com/repos/omu/nokul/issues/events{/number}","events_url":"https://api.github.com/repos/omu/nokul/events","assignees_url":"https://api.github.com/repos/omu/nokul/assignees{/user}","branches_url":"https://api.github.com/repos/omu/nokul/branches{/branch}","tags_url":"https://api.github.com/repos/omu/nokul/tags","blobs_url":"https://api.github.com/repos/omu/nokul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omu/nokul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omu/nokul/git/refs{/sha}","trees_url":"https://api.github.com/repos/omu/nokul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omu/nokul/statuses/{sha}","languages_url":"https://api.github.com/repos/omu/nokul/languages","stargazers_url":"https://api.github.com/repos/omu/nokul/stargazers","contributors_url":"https://api.github.com/repos/omu/nokul/contributors","subscribers_url":"https://api.github.com/repos/omu/nokul/subscribers","subscription_url":"https://api.github.com/repos/omu/nokul/subscription","commits_url":"https://api.github.com/repos/omu/nokul/commits{/sha}","git_commits_url":"https://api.github.com/repos/omu/nokul/git/commits{/sha}","comments_url":"https://api.github.com/repos/omu/nokul/comments{/number}","issue_comment_url":"https://api.github.com/repos/omu/nokul/issues/comments{/number}","contents_url":"https://api.github.com/repos/omu/nokul/contents/{+path}","compare_url":"https://api.github.com/repos/omu/nokul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omu/nokul/merges","archive_url":"https://api.github.com/repos/omu/nokul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omu/nokul/downloads","issues_url":"https://api.github.com/repos/omu/nokul/issues{/number}","pulls_url":"https://api.github.com/repos/omu/nokul/pulls{/number}","milestones_url":"https://api.github.com/repos/omu/nokul/milestones{/number}","notifications_url":"https://api.github.com/repos/omu/nokul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omu/nokul/labels{/name}","releases_url":"https://api.github.com/repos/omu/nokul/releases{/id}","deployments_url":"https://api.github.com/repos/omu/nokul/deployments","created_at":"2018-02-20T12:23:06Z","updated_at":"2018-05-16T11:01:40Z","pushed_at":"2018-05-16T13:31:59Z","git_url":"git://github.com/omu/nokul.git","ssh_url":"git@github.com:omu/nokul.git","clone_url":"https://github.com/omu/nokul.git","svn_url":"https://github.com/omu/nokul","homepage":"","size":1326,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/omu/nokul/pulls/16"},"html":{"href":"https://github.com/omu/nokul/pull/16"},"issue":{"href":"https://api.github.com/repos/omu/nokul/issues/16"},"comments":{"href":"https://api.github.com/repos/omu/nokul/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/omu/nokul/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/omu/nokul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omu/nokul/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/omu/nokul/statuses/6df2d65b44f77d4d1e0ba0d2d048f5328cc10107"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"msdundar"}}