From 85935df7ede0e5e28f445bcc2814b1cd3dbeda2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Saunier?= Date: Thu, 21 Dec 2023 10:33:09 +0100 Subject: [PATCH 1/2] Fixes #98 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d34c98d..f50a93b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN apt-get update -yqq && apt-get -yqq --no-install-recommends install build-es COPY Gemfile Gemfile COPY Gemfile.lock Gemfile.lock -RUN gem install bundler +RUN gem install bundler -v 2.4.22 RUN bundle config set with 'development test' RUN bundle install --jobs 20 --retry 5 COPY app /app From 4bdd45da25ca6d22ef8593e3fdebe2bf612ac60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Saunier?= Date: Thu, 21 Dec 2023 10:35:53 +0100 Subject: [PATCH 2/2] Fix standardrb --- Gemfile.lock | 52 +++++++++++++++++--------- app/services/github_checks_verifier.rb | 2 +- entrypoint.rb | 2 +- 3 files changed, 36 insertions(+), 20 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index bda7cb6..b59a7f7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -21,17 +21,22 @@ GEM faraday (~> 2.0) i18n (1.12.0) concurrent-ruby (~> 1.0) + json (2.7.1) + language_server-protocol (3.17.0.3) + lint_roller (1.1.0) minitest (5.18.0) octokit (4.25.0) faraday (>= 1, < 3) sawyer (~> 0.9) - parallel (1.20.1) - parser (3.0.2.0) + parallel (1.24.0) + parser (3.2.2.4) ast (~> 2.4.1) + racc public_suffix (4.0.7) - rainbow (3.0.0) - regexp_parser (2.1.1) - rexml (3.2.5) + racc (1.7.3) + rainbow (3.1.1) + regexp_parser (2.8.3) + rexml (3.2.6) rspec (3.10.0) rspec-core (~> 3.10.0) rspec-expectations (~> 3.10.0) @@ -45,31 +50,42 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.1) - rubocop (1.18.4) + rubocop (1.57.2) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.0.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.8.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.10.0) - parser (>= 3.0.1.1) - rubocop-performance (1.11.4) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) + rubocop-performance (1.19.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - ruby-progressbar (1.11.0) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) sawyer (0.9.2) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) - standard (1.1.7) - rubocop (= 1.18.4) - rubocop-performance (= 1.11.4) + standard (1.32.1) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.57.2) + standard-custom (~> 1.0.0) + standard-performance (~> 1.2) + standard-custom (1.0.2) + lint_roller (~> 1.0) + rubocop (~> 1.50) + standard-performance (1.2.1) + lint_roller (~> 1.1) + rubocop-performance (~> 1.19.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.0.0) + unicode-display_width (2.5.0) zeitwerk (2.6.7) PLATFORMS diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index 1156fd1..1928ee2 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative "./application_service" +require_relative "application_service" require_relative "../errors/check_conclusion_not_allowed_error" require_relative "../errors/check_never_run_error" require "active_support/configurable" diff --git a/entrypoint.rb b/entrypoint.rb index 1793097..8b6c0f4 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -require_relative "./app/services/github_checks_verifier" +require_relative "app/services/github_checks_verifier" require "octokit" allowed_conclusions = ENV["ALLOWED_CONCLUSIONS"]