From f1e656dca8603321b8e1228a6a8df83a739b3471 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Mon, 23 Aug 2021 17:58:20 +0200 Subject: [PATCH 01/15] Add auto_paginate to Octokit client creation --- entrypoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.rb b/entrypoint.rb index 080a5e8..88699ba 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -8,7 +8,7 @@ config.allowed_conclusions = allowed_conclusions.split(",").map(&:strip) config.check_name = check_name config.check_regexp = check_regexp - config.client = Octokit::Client.new(access_token: token) + config.client = Octokit::Client.new(access_token: token, auto_paginate: true) config.ref = ref config.repo = ENV["GITHUB_REPOSITORY"] config.verbose = verbose From 5e4c7d11ba4ea78388de11328f7edcb1df30c026 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Mon, 23 Aug 2021 18:01:37 +0200 Subject: [PATCH 02/15] Add 30 sample tasks --- .github/workflows/test-auto-paginate1.yml | 11 +++++++++++ .github/workflows/test-auto-paginate10.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate11.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate12.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate13.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate14.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate15.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate16.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate17.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate18.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate19.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate2.yml | 11 +++++++++++ .github/workflows/test-auto-paginate20.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate21.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate22.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate23.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate24.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate25.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate26.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate27.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate28.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate29.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate3.yml | 11 +++++++++++ .github/workflows/test-auto-paginate30.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate4.yml | 11 +++++++++++ .github/workflows/test-auto-paginate5.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate6.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate7.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate8.yaml | 11 +++++++++++ .github/workflows/test-auto-paginate9.yaml | 11 +++++++++++ 30 files changed, 330 insertions(+) create mode 100644 .github/workflows/test-auto-paginate1.yml create mode 100644 .github/workflows/test-auto-paginate10.yaml create mode 100644 .github/workflows/test-auto-paginate11.yaml create mode 100644 .github/workflows/test-auto-paginate12.yaml create mode 100644 .github/workflows/test-auto-paginate13.yaml create mode 100644 .github/workflows/test-auto-paginate14.yaml create mode 100644 .github/workflows/test-auto-paginate15.yaml create mode 100644 .github/workflows/test-auto-paginate16.yaml create mode 100644 .github/workflows/test-auto-paginate17.yaml create mode 100644 .github/workflows/test-auto-paginate18.yaml create mode 100644 .github/workflows/test-auto-paginate19.yaml create mode 100644 .github/workflows/test-auto-paginate2.yml create mode 100644 .github/workflows/test-auto-paginate20.yaml create mode 100644 .github/workflows/test-auto-paginate21.yaml create mode 100644 .github/workflows/test-auto-paginate22.yaml create mode 100644 .github/workflows/test-auto-paginate23.yaml create mode 100644 .github/workflows/test-auto-paginate24.yaml create mode 100644 .github/workflows/test-auto-paginate25.yaml create mode 100644 .github/workflows/test-auto-paginate26.yaml create mode 100644 .github/workflows/test-auto-paginate27.yaml create mode 100644 .github/workflows/test-auto-paginate28.yaml create mode 100644 .github/workflows/test-auto-paginate29.yaml create mode 100644 .github/workflows/test-auto-paginate3.yml create mode 100644 .github/workflows/test-auto-paginate30.yaml create mode 100644 .github/workflows/test-auto-paginate4.yml create mode 100644 .github/workflows/test-auto-paginate5.yaml create mode 100644 .github/workflows/test-auto-paginate6.yaml create mode 100644 .github/workflows/test-auto-paginate7.yaml create mode 100644 .github/workflows/test-auto-paginate8.yaml create mode 100644 .github/workflows/test-auto-paginate9.yaml diff --git a/.github/workflows/test-auto-paginate1.yml b/.github/workflows/test-auto-paginate1.yml new file mode 100644 index 0000000..b71afaa --- /dev/null +++ b/.github/workflows/test-auto-paginate1.yml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task1: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate10.yaml b/.github/workflows/test-auto-paginate10.yaml new file mode 100644 index 0000000..5024954 --- /dev/null +++ b/.github/workflows/test-auto-paginate10.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task10: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate11.yaml b/.github/workflows/test-auto-paginate11.yaml new file mode 100644 index 0000000..9f088a9 --- /dev/null +++ b/.github/workflows/test-auto-paginate11.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task11: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate12.yaml b/.github/workflows/test-auto-paginate12.yaml new file mode 100644 index 0000000..a8a9851 --- /dev/null +++ b/.github/workflows/test-auto-paginate12.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task12: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate13.yaml b/.github/workflows/test-auto-paginate13.yaml new file mode 100644 index 0000000..a7a38aa --- /dev/null +++ b/.github/workflows/test-auto-paginate13.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task13: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate14.yaml b/.github/workflows/test-auto-paginate14.yaml new file mode 100644 index 0000000..65236d8 --- /dev/null +++ b/.github/workflows/test-auto-paginate14.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task14: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate15.yaml b/.github/workflows/test-auto-paginate15.yaml new file mode 100644 index 0000000..95e381e --- /dev/null +++ b/.github/workflows/test-auto-paginate15.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task15: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate16.yaml b/.github/workflows/test-auto-paginate16.yaml new file mode 100644 index 0000000..f7aee97 --- /dev/null +++ b/.github/workflows/test-auto-paginate16.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task16: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate17.yaml b/.github/workflows/test-auto-paginate17.yaml new file mode 100644 index 0000000..58554be --- /dev/null +++ b/.github/workflows/test-auto-paginate17.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task17: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate18.yaml b/.github/workflows/test-auto-paginate18.yaml new file mode 100644 index 0000000..3fc598b --- /dev/null +++ b/.github/workflows/test-auto-paginate18.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task18: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate19.yaml b/.github/workflows/test-auto-paginate19.yaml new file mode 100644 index 0000000..b9ecce3 --- /dev/null +++ b/.github/workflows/test-auto-paginate19.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task19: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate2.yml b/.github/workflows/test-auto-paginate2.yml new file mode 100644 index 0000000..485c7c6 --- /dev/null +++ b/.github/workflows/test-auto-paginate2.yml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task2: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate20.yaml b/.github/workflows/test-auto-paginate20.yaml new file mode 100644 index 0000000..622db03 --- /dev/null +++ b/.github/workflows/test-auto-paginate20.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task20: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate21.yaml b/.github/workflows/test-auto-paginate21.yaml new file mode 100644 index 0000000..22a4647 --- /dev/null +++ b/.github/workflows/test-auto-paginate21.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task21: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate22.yaml b/.github/workflows/test-auto-paginate22.yaml new file mode 100644 index 0000000..eed5a06 --- /dev/null +++ b/.github/workflows/test-auto-paginate22.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task22: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate23.yaml b/.github/workflows/test-auto-paginate23.yaml new file mode 100644 index 0000000..667bad1 --- /dev/null +++ b/.github/workflows/test-auto-paginate23.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task23: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate24.yaml b/.github/workflows/test-auto-paginate24.yaml new file mode 100644 index 0000000..42f4e4b --- /dev/null +++ b/.github/workflows/test-auto-paginate24.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task24: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate25.yaml b/.github/workflows/test-auto-paginate25.yaml new file mode 100644 index 0000000..2ca94e4 --- /dev/null +++ b/.github/workflows/test-auto-paginate25.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task25: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate26.yaml b/.github/workflows/test-auto-paginate26.yaml new file mode 100644 index 0000000..c0ff731 --- /dev/null +++ b/.github/workflows/test-auto-paginate26.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task26: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate27.yaml b/.github/workflows/test-auto-paginate27.yaml new file mode 100644 index 0000000..7369d4e --- /dev/null +++ b/.github/workflows/test-auto-paginate27.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task27: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate28.yaml b/.github/workflows/test-auto-paginate28.yaml new file mode 100644 index 0000000..a9743a3 --- /dev/null +++ b/.github/workflows/test-auto-paginate28.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task28: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate29.yaml b/.github/workflows/test-auto-paginate29.yaml new file mode 100644 index 0000000..eba4421 --- /dev/null +++ b/.github/workflows/test-auto-paginate29.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task29: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate3.yml b/.github/workflows/test-auto-paginate3.yml new file mode 100644 index 0000000..71cf7da --- /dev/null +++ b/.github/workflows/test-auto-paginate3.yml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task3: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate30.yaml b/.github/workflows/test-auto-paginate30.yaml new file mode 100644 index 0000000..22d8f5d --- /dev/null +++ b/.github/workflows/test-auto-paginate30.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task30: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate4.yml b/.github/workflows/test-auto-paginate4.yml new file mode 100644 index 0000000..e71f7f7 --- /dev/null +++ b/.github/workflows/test-auto-paginate4.yml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task4: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate5.yaml b/.github/workflows/test-auto-paginate5.yaml new file mode 100644 index 0000000..a744c33 --- /dev/null +++ b/.github/workflows/test-auto-paginate5.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task5: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate6.yaml b/.github/workflows/test-auto-paginate6.yaml new file mode 100644 index 0000000..dd19f6a --- /dev/null +++ b/.github/workflows/test-auto-paginate6.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task6: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate7.yaml b/.github/workflows/test-auto-paginate7.yaml new file mode 100644 index 0000000..5109f16 --- /dev/null +++ b/.github/workflows/test-auto-paginate7.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task7: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate8.yaml b/.github/workflows/test-auto-paginate8.yaml new file mode 100644 index 0000000..3d420f3 --- /dev/null +++ b/.github/workflows/test-auto-paginate8.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task8: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate9.yaml b/.github/workflows/test-auto-paginate9.yaml new file mode 100644 index 0000000..cdb4536 --- /dev/null +++ b/.github/workflows/test-auto-paginate9.yaml @@ -0,0 +1,11 @@ +name: Simple Task +on: + workflow_dispatch: + push: + +jobs: + simple-task9: + runs-on: ubuntu-latest + steps: + - name: Done + run: echo 'Done' \ No newline at end of file From 2089214fc340adaef02ea03d68cf61fe2ac26cd0 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sat, 4 Sep 2021 07:17:50 +0200 Subject: [PATCH 03/15] Test with `per_page` --- app/services/github_checks_verifier.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index 10ba0dc..9dea8b2 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -26,7 +26,9 @@ def call private def query_check_status - checks = client.check_runs_for_ref(repo, ref, {accept: "application/vnd.github.antiope-preview+json"}).check_runs + checks = client.check_runs_for_ref( + repo, ref, { per_page: 100, accept: "application/vnd.github.antiope-preview+json" } + ).check_runs log_checks(checks, "Checks running on ref:") apply_filters(checks) From cf3296b18de6f1526865aa192c62ed14111958dc Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sat, 4 Sep 2021 07:19:25 +0200 Subject: [PATCH 04/15] Fix linter --- app/services/github_checks_verifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index 9dea8b2..eccad24 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -27,7 +27,7 @@ def call def query_check_status checks = client.check_runs_for_ref( - repo, ref, { per_page: 100, accept: "application/vnd.github.antiope-preview+json" } + repo, ref, {per_page: 100, accept: "application/vnd.github.antiope-preview+json"} ).check_runs log_checks(checks, "Checks running on ref:") From e6b4fc930fe1c83bc9b274fe21f7d8b7c5bbd799 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Wed, 1 Jun 2022 19:49:12 +0200 Subject: [PATCH 05/15] Update octokit gem --- Gemfile | 2 +- Gemfile.lock | 26 ++++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/Gemfile b/Gemfile index a64699f..514fb63 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } -gem "octokit", "~> 4.20" +gem "octokit", "~> 4.23" gem "activesupport", "~> 6.1.1" group :test, :development do diff --git a/Gemfile.lock b/Gemfile.lock index 9a717a2..f85ab72 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,22 +13,20 @@ GEM byebug (11.1.3) concurrent-ruby (1.1.7) diff-lcs (1.4.4) - faraday (1.3.0) - faraday-net_http (~> 1.0) - multipart-post (>= 1.2, < 3) - ruby2_keywords - faraday-net_http (1.0.1) + faraday (2.3.0) + faraday-net_http (~> 2.0) + ruby2_keywords (>= 0.0.4) + faraday-net_http (2.0.3) i18n (1.8.7) concurrent-ruby (~> 1.0) minitest (5.14.3) - multipart-post (2.1.1) - octokit (4.20.0) - faraday (>= 0.9) - sawyer (~> 0.8.0, >= 0.5.3) + octokit (4.23.0) + faraday (>= 1, < 3) + sawyer (~> 0.9) parallel (1.20.1) parser (3.0.2.0) ast (~> 2.4.1) - public_suffix (4.0.6) + public_suffix (4.0.7) rainbow (3.0.0) regexp_parser (2.1.1) rexml (3.2.5) @@ -60,10 +58,10 @@ GEM rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) ruby-progressbar (1.11.0) - ruby2_keywords (0.0.2) - sawyer (0.8.2) + ruby2_keywords (0.0.5) + sawyer (0.9.1) addressable (>= 2.3.5) - faraday (> 0.8, < 2.0) + faraday (>= 0.17.3, < 3) standard (1.1.7) rubocop (= 1.18.4) rubocop-performance (= 1.11.4) @@ -79,7 +77,7 @@ PLATFORMS DEPENDENCIES activesupport (~> 6.1.1) byebug - octokit (~> 4.20) + octokit (~> 4.23) rspec standard From ac3b5be0f097d423ef85750f2e6cbe11aec09fda Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 9 Jun 2022 00:42:51 -0700 Subject: [PATCH 06/15] try no auth --- entrypoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.rb b/entrypoint.rb index f46855f..c84ee34 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -15,7 +15,7 @@ config.allowed_conclusions = allowed_conclusions.split(",").map(&:strip) config.check_name = check_name config.check_regexp = check_regexp - config.client = Octokit::Client.new(access_token: token) + config.client = Octokit::Client.new config.ref = ref config.repo = ENV["GITHUB_REPOSITORY"] config.verbose = verbose From 634ce300f4ab0dcf82839e6af4a2cd4491e190db Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 9 Jun 2022 00:51:09 -0700 Subject: [PATCH 07/15] is this how this works? --- entrypoint.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint.rb b/entrypoint.rb index c84ee34..7ea1b0f 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -16,6 +16,9 @@ config.check_name = check_name config.check_regexp = check_regexp config.client = Octokit::Client.new + if token != "" + config.client.access_token(token) + end config.ref = ref config.repo = ENV["GITHUB_REPOSITORY"] config.verbose = verbose From cba19f49c940963c7bd2fb59c629c3c2bd056eda Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 9 Jun 2022 01:02:16 -0700 Subject: [PATCH 08/15] think this should work --- entrypoint.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.rb b/entrypoint.rb index 7ea1b0f..1e3ff6d 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -16,8 +16,8 @@ config.check_name = check_name config.check_regexp = check_regexp config.client = Octokit::Client.new - if token != "" - config.client.access_token(token) + if token.empty? + config.client.access_token = token end config.ref = ref config.repo = ENV["GITHUB_REPOSITORY"] From 8c77e11c4095fc58ce29752d3e8f47d4d6b31908 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 9 Jun 2022 01:07:59 -0700 Subject: [PATCH 09/15] cool ruby syntax! --- entrypoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.rb b/entrypoint.rb index 1e3ff6d..d4fd4f6 100755 --- a/entrypoint.rb +++ b/entrypoint.rb @@ -16,7 +16,7 @@ config.check_name = check_name config.check_regexp = check_regexp config.client = Octokit::Client.new - if token.empty? + unless token.empty? config.client.access_token = token end config.ref = ref From 627ba34b8e21e3279069c29975d00a0b0669ae32 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sun, 19 Jun 2022 10:47:39 +0200 Subject: [PATCH 10/15] Remove `per_page` since it's not needed when using `auto_paginate` --- app/services/github_checks_verifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index eccad24..ff528a1 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -27,7 +27,7 @@ def call def query_check_status checks = client.check_runs_for_ref( - repo, ref, {per_page: 100, accept: "application/vnd.github.antiope-preview+json"} + repo, ref, { accept: "application/vnd.github.antiope-preview+json" } ).check_runs log_checks(checks, "Checks running on ref:") From 4ec149ee17045596c10fb81b4007744bb93d4752 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sun, 19 Jun 2022 10:49:28 +0200 Subject: [PATCH 11/15] Remove test-auto-paginate workflows (we should not test the octokit client) --- .github/workflows/test-auto-paginate1.yml | 11 ----------- .github/workflows/test-auto-paginate10.yaml | 11 ----------- .github/workflows/test-auto-paginate11.yaml | 11 ----------- .github/workflows/test-auto-paginate12.yaml | 11 ----------- .github/workflows/test-auto-paginate13.yaml | 11 ----------- .github/workflows/test-auto-paginate14.yaml | 11 ----------- .github/workflows/test-auto-paginate15.yaml | 11 ----------- .github/workflows/test-auto-paginate16.yaml | 11 ----------- .github/workflows/test-auto-paginate17.yaml | 11 ----------- .github/workflows/test-auto-paginate18.yaml | 11 ----------- .github/workflows/test-auto-paginate19.yaml | 11 ----------- .github/workflows/test-auto-paginate2.yml | 11 ----------- .github/workflows/test-auto-paginate20.yaml | 11 ----------- .github/workflows/test-auto-paginate21.yaml | 11 ----------- .github/workflows/test-auto-paginate22.yaml | 11 ----------- .github/workflows/test-auto-paginate23.yaml | 11 ----------- .github/workflows/test-auto-paginate24.yaml | 11 ----------- .github/workflows/test-auto-paginate25.yaml | 11 ----------- .github/workflows/test-auto-paginate26.yaml | 11 ----------- .github/workflows/test-auto-paginate27.yaml | 11 ----------- .github/workflows/test-auto-paginate28.yaml | 11 ----------- .github/workflows/test-auto-paginate29.yaml | 11 ----------- .github/workflows/test-auto-paginate3.yml | 11 ----------- .github/workflows/test-auto-paginate30.yaml | 11 ----------- .github/workflows/test-auto-paginate4.yml | 11 ----------- .github/workflows/test-auto-paginate5.yaml | 11 ----------- .github/workflows/test-auto-paginate6.yaml | 11 ----------- .github/workflows/test-auto-paginate7.yaml | 11 ----------- .github/workflows/test-auto-paginate8.yaml | 11 ----------- .github/workflows/test-auto-paginate9.yaml | 11 ----------- 30 files changed, 330 deletions(-) delete mode 100644 .github/workflows/test-auto-paginate1.yml delete mode 100644 .github/workflows/test-auto-paginate10.yaml delete mode 100644 .github/workflows/test-auto-paginate11.yaml delete mode 100644 .github/workflows/test-auto-paginate12.yaml delete mode 100644 .github/workflows/test-auto-paginate13.yaml delete mode 100644 .github/workflows/test-auto-paginate14.yaml delete mode 100644 .github/workflows/test-auto-paginate15.yaml delete mode 100644 .github/workflows/test-auto-paginate16.yaml delete mode 100644 .github/workflows/test-auto-paginate17.yaml delete mode 100644 .github/workflows/test-auto-paginate18.yaml delete mode 100644 .github/workflows/test-auto-paginate19.yaml delete mode 100644 .github/workflows/test-auto-paginate2.yml delete mode 100644 .github/workflows/test-auto-paginate20.yaml delete mode 100644 .github/workflows/test-auto-paginate21.yaml delete mode 100644 .github/workflows/test-auto-paginate22.yaml delete mode 100644 .github/workflows/test-auto-paginate23.yaml delete mode 100644 .github/workflows/test-auto-paginate24.yaml delete mode 100644 .github/workflows/test-auto-paginate25.yaml delete mode 100644 .github/workflows/test-auto-paginate26.yaml delete mode 100644 .github/workflows/test-auto-paginate27.yaml delete mode 100644 .github/workflows/test-auto-paginate28.yaml delete mode 100644 .github/workflows/test-auto-paginate29.yaml delete mode 100644 .github/workflows/test-auto-paginate3.yml delete mode 100644 .github/workflows/test-auto-paginate30.yaml delete mode 100644 .github/workflows/test-auto-paginate4.yml delete mode 100644 .github/workflows/test-auto-paginate5.yaml delete mode 100644 .github/workflows/test-auto-paginate6.yaml delete mode 100644 .github/workflows/test-auto-paginate7.yaml delete mode 100644 .github/workflows/test-auto-paginate8.yaml delete mode 100644 .github/workflows/test-auto-paginate9.yaml diff --git a/.github/workflows/test-auto-paginate1.yml b/.github/workflows/test-auto-paginate1.yml deleted file mode 100644 index b71afaa..0000000 --- a/.github/workflows/test-auto-paginate1.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task1: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate10.yaml b/.github/workflows/test-auto-paginate10.yaml deleted file mode 100644 index 5024954..0000000 --- a/.github/workflows/test-auto-paginate10.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task10: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate11.yaml b/.github/workflows/test-auto-paginate11.yaml deleted file mode 100644 index 9f088a9..0000000 --- a/.github/workflows/test-auto-paginate11.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task11: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate12.yaml b/.github/workflows/test-auto-paginate12.yaml deleted file mode 100644 index a8a9851..0000000 --- a/.github/workflows/test-auto-paginate12.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task12: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate13.yaml b/.github/workflows/test-auto-paginate13.yaml deleted file mode 100644 index a7a38aa..0000000 --- a/.github/workflows/test-auto-paginate13.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task13: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate14.yaml b/.github/workflows/test-auto-paginate14.yaml deleted file mode 100644 index 65236d8..0000000 --- a/.github/workflows/test-auto-paginate14.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task14: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate15.yaml b/.github/workflows/test-auto-paginate15.yaml deleted file mode 100644 index 95e381e..0000000 --- a/.github/workflows/test-auto-paginate15.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task15: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate16.yaml b/.github/workflows/test-auto-paginate16.yaml deleted file mode 100644 index f7aee97..0000000 --- a/.github/workflows/test-auto-paginate16.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task16: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate17.yaml b/.github/workflows/test-auto-paginate17.yaml deleted file mode 100644 index 58554be..0000000 --- a/.github/workflows/test-auto-paginate17.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task17: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate18.yaml b/.github/workflows/test-auto-paginate18.yaml deleted file mode 100644 index 3fc598b..0000000 --- a/.github/workflows/test-auto-paginate18.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task18: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate19.yaml b/.github/workflows/test-auto-paginate19.yaml deleted file mode 100644 index b9ecce3..0000000 --- a/.github/workflows/test-auto-paginate19.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task19: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate2.yml b/.github/workflows/test-auto-paginate2.yml deleted file mode 100644 index 485c7c6..0000000 --- a/.github/workflows/test-auto-paginate2.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task2: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate20.yaml b/.github/workflows/test-auto-paginate20.yaml deleted file mode 100644 index 622db03..0000000 --- a/.github/workflows/test-auto-paginate20.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task20: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate21.yaml b/.github/workflows/test-auto-paginate21.yaml deleted file mode 100644 index 22a4647..0000000 --- a/.github/workflows/test-auto-paginate21.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task21: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate22.yaml b/.github/workflows/test-auto-paginate22.yaml deleted file mode 100644 index eed5a06..0000000 --- a/.github/workflows/test-auto-paginate22.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task22: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate23.yaml b/.github/workflows/test-auto-paginate23.yaml deleted file mode 100644 index 667bad1..0000000 --- a/.github/workflows/test-auto-paginate23.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task23: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate24.yaml b/.github/workflows/test-auto-paginate24.yaml deleted file mode 100644 index 42f4e4b..0000000 --- a/.github/workflows/test-auto-paginate24.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task24: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate25.yaml b/.github/workflows/test-auto-paginate25.yaml deleted file mode 100644 index 2ca94e4..0000000 --- a/.github/workflows/test-auto-paginate25.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task25: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate26.yaml b/.github/workflows/test-auto-paginate26.yaml deleted file mode 100644 index c0ff731..0000000 --- a/.github/workflows/test-auto-paginate26.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task26: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate27.yaml b/.github/workflows/test-auto-paginate27.yaml deleted file mode 100644 index 7369d4e..0000000 --- a/.github/workflows/test-auto-paginate27.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task27: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate28.yaml b/.github/workflows/test-auto-paginate28.yaml deleted file mode 100644 index a9743a3..0000000 --- a/.github/workflows/test-auto-paginate28.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task28: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate29.yaml b/.github/workflows/test-auto-paginate29.yaml deleted file mode 100644 index eba4421..0000000 --- a/.github/workflows/test-auto-paginate29.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task29: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate3.yml b/.github/workflows/test-auto-paginate3.yml deleted file mode 100644 index 71cf7da..0000000 --- a/.github/workflows/test-auto-paginate3.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task3: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate30.yaml b/.github/workflows/test-auto-paginate30.yaml deleted file mode 100644 index 22d8f5d..0000000 --- a/.github/workflows/test-auto-paginate30.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task30: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate4.yml b/.github/workflows/test-auto-paginate4.yml deleted file mode 100644 index e71f7f7..0000000 --- a/.github/workflows/test-auto-paginate4.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task4: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate5.yaml b/.github/workflows/test-auto-paginate5.yaml deleted file mode 100644 index a744c33..0000000 --- a/.github/workflows/test-auto-paginate5.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task5: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate6.yaml b/.github/workflows/test-auto-paginate6.yaml deleted file mode 100644 index dd19f6a..0000000 --- a/.github/workflows/test-auto-paginate6.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task6: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate7.yaml b/.github/workflows/test-auto-paginate7.yaml deleted file mode 100644 index 5109f16..0000000 --- a/.github/workflows/test-auto-paginate7.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task7: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate8.yaml b/.github/workflows/test-auto-paginate8.yaml deleted file mode 100644 index 3d420f3..0000000 --- a/.github/workflows/test-auto-paginate8.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task8: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file diff --git a/.github/workflows/test-auto-paginate9.yaml b/.github/workflows/test-auto-paginate9.yaml deleted file mode 100644 index cdb4536..0000000 --- a/.github/workflows/test-auto-paginate9.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Simple Task -on: - workflow_dispatch: - push: - -jobs: - simple-task9: - runs-on: ubuntu-latest - steps: - - name: Done - run: echo 'Done' \ No newline at end of file From d48bf99b1bf612642c90c4924acb459e24907769 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sun, 19 Jun 2022 11:01:02 +0200 Subject: [PATCH 12/15] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index bc58b79..0b8cc37 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,12 @@ jobs: ... ``` +## Auto-pagination + +Since we are using Octokit for using GitHub API, we are subject to their limitations. One of them is the pagination max size: if we have more than 100 workflows running, the auto-pagination won't help. +More about Octokit auto-pagination can be found [here](https://octokit.github.io/octokit.rb/file.README.html#Pagination:~:text=get.data-,Auto%20Pagination,-For%20smallish%20resource) +The solution would be to fetch all pages to gather all running workflows if they're more than 100, but it's still no implemented. + ## Tests There are sample workflows in the `.github/workflows` directory. Two of them are logging tasks to emulate real-world actions being executed that have to be waited. The important workflows are the ones that use the wait-on-check-action. From 89032427bc1661f2e878046637cc77ee828acd4b Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sun, 19 Jun 2022 16:26:40 +0200 Subject: [PATCH 13/15] Update github_checks_verifier.rb --- app/services/github_checks_verifier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/github_checks_verifier.rb b/app/services/github_checks_verifier.rb index ff528a1..56f69a2 100644 --- a/app/services/github_checks_verifier.rb +++ b/app/services/github_checks_verifier.rb @@ -27,7 +27,7 @@ def call def query_check_status checks = client.check_runs_for_ref( - repo, ref, { accept: "application/vnd.github.antiope-preview+json" } + repo, ref, {accept: "application/vnd.github.antiope-preview+json"} ).check_runs log_checks(checks, "Checks running on ref:") From 7987be5856380720ffde92b6c9c181d627e449d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 19 Jun 2022 14:32:44 +0000 Subject: [PATCH 14/15] Bump octokit from 4.23.0 to 4.25.0 Bumps [octokit](https://github.com/octokit/octokit.rb) from 4.23.0 to 4.25.0. - [Release notes](https://github.com/octokit/octokit.rb/releases) - [Changelog](https://github.com/octokit/octokit.rb/blob/4-stable/RELEASE.md) - [Commits](https://github.com/octokit/octokit.rb/compare/v4.23.0...v4.25.0) --- updated-dependencies: - dependency-name: octokit dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 514fb63..848e99f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } -gem "octokit", "~> 4.23" +gem "octokit", "~> 4.25" gem "activesupport", "~> 6.1.1" group :test, :development do diff --git a/Gemfile.lock b/Gemfile.lock index f85ab72..6303398 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ GEM i18n (1.8.7) concurrent-ruby (~> 1.0) minitest (5.14.3) - octokit (4.23.0) + octokit (4.25.0) faraday (>= 1, < 3) sawyer (~> 0.9) parallel (1.20.1) @@ -59,7 +59,7 @@ GEM rubocop-ast (>= 0.4.0) ruby-progressbar (1.11.0) ruby2_keywords (0.0.5) - sawyer (0.9.1) + sawyer (0.9.2) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) standard (1.1.7) @@ -77,7 +77,7 @@ PLATFORMS DEPENDENCIES activesupport (~> 6.1.1) byebug - octokit (~> 4.23) + octokit (~> 4.25) rspec standard From 19703664c354e02fa4da674e1f2c321845dce083 Mon Sep 17 00:00:00 2001 From: Matias Albarello Date: Sun, 19 Jun 2022 16:51:09 +0200 Subject: [PATCH 15/15] Create wait-for-check-without-token.yml --- .../wait-for-check-without-token.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/wait-for-check-without-token.yml diff --git a/.github/workflows/wait-for-check-without-token.yml b/.github/workflows/wait-for-check-without-token.yml new file mode 100644 index 0000000..9db3e9a --- /dev/null +++ b/.github/workflows/wait-for-check-without-token.yml @@ -0,0 +1,20 @@ +name: Wait for check name +on: + push: + workflow_dispatch: + +jobs: + wait-without-token: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Wait without token + uses: ./ + with: + ref: ${{ github.sha }} + wait-interval: 10 # seconds + running-workflow-name: wait-without-token + check-name: wait-on-me + + - name: Success + run: echo 'Success!'