Skip to content

Commit

Permalink
Revert "Handle and persist checkrun webhook events."
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshepley authored May 21, 2021
1 parent 1c41a46 commit 4b192cd
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 360 deletions.
1 change: 0 additions & 1 deletion app/models/shipit/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def default_handlers
'status' => [Handlers::StatusHandler],
'membership' => [Handlers::MembershipHandler],
'check_suite' => [Handlers::CheckSuiteHandler],
'check_run' => [Handlers::CheckRunHandler],
}
end

Expand Down
30 changes: 0 additions & 30 deletions app/models/shipit/webhooks/handlers/check_run_handler.rb

This file was deleted.

12 changes: 0 additions & 12 deletions test/controllers/webhooks_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,6 @@ class WebhooksControllerTest < ActionController::TestCase
end
end

test ":check_run creates a check run for a commit" do
request.headers['X-Github-Event'] = 'check_run'

body = JSON.parse(payload(:check_run_success)).to_json
assert_no_enqueued_jobs(only: RefreshCheckRunsJob) do
assert_difference -> { Commit.find_by(sha: "6d9278037b872fd9a6690523e411ecb3aa181355").check_runs.count }, +1 do
post :create, body: body, as: :json
assert_response :ok
end
end
end

test "returns head :ok if request is ping" do
@request.headers['X-Github-Event'] = 'ping'

Expand Down
317 changes: 0 additions & 317 deletions test/fixtures/payloads/check_run_success.json

This file was deleted.

0 comments on commit 4b192cd

Please sign in to comment.