From f44d8411feeb5c1a5fb6567fb400cb84439ab0a4 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 11 May 2021 14:27:39 -0300 Subject: [PATCH 1/6] double quote string --- delete.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/delete.rb b/delete.rb index 8cac793..615da0f 100644 --- a/delete.rb +++ b/delete.rb @@ -2,3 +2,5 @@ DB = Sequel.connect('postgres://postgres:postgres@postgres:5432/postgres') items = DB[:items].delete + +"this will be commented by pronto, by the rest of the violations wont" From b8fa0523c9aa7219186ce851e57f09aa1ee461b4 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 11 May 2021 14:32:34 -0300 Subject: [PATCH 2/6] fix config... maybe? --- .github/workflows/main.yml | 9 ++++---- .pronto.yml | 15 ++++++++++++++ Gemfile | 2 ++ Gemfile.lock | 42 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 .pronto.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62b7e67..b12e6f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: CI -# Controls when the action will run. +# Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master branch push: @@ -24,6 +24,7 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - - name: Pronto Action - uses: HeRoMo/pronto-action@v1.17.0 + + - uses: adwerx/pronto-ruby + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pronto.yml b/.pronto.yml new file mode 100644 index 0000000..ba6ce22 --- /dev/null +++ b/.pronto.yml @@ -0,0 +1,15 @@ +name: Pronto + +on: + - push + - pull_request + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: git fetch origin master --depth=1 + - uses: adwerx/pronto-ruby@v2.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Gemfile b/Gemfile index 60ef573..9e06445 100644 --- a/Gemfile +++ b/Gemfile @@ -11,3 +11,5 @@ gem "sequel", "~> 5.29" gem "pg", "~> 1.2" gem "rubocop", "~> 1.14" + +gem "pronto", "~> 0.11.0" diff --git a/Gemfile.lock b/Gemfile.lock index 42e825a..529abc0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,11 +1,45 @@ GEM remote: https://rubygems.org/ specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) ast (2.4.2) + faraday (1.4.1) + faraday-excon (~> 1.1) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.1) + multipart-post (>= 1.2, < 3) + ruby2_keywords (>= 0.0.4) + faraday-excon (1.1.0) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.1.0) + gitlab (4.17.0) + httparty (~> 0.18) + terminal-table (~> 1.5, >= 1.5.1) + httparty (0.18.1) + mime-types (~> 3.0) + multi_xml (>= 0.5.2) + mime-types (3.3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2021.0225) + multi_xml (0.6.0) + multipart-post (2.1.1) + octokit (4.21.0) + faraday (>= 0.9) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.20.1) parser (3.0.1.1) ast (~> 2.4.1) pg (1.2.2) + pronto (0.11.0) + gitlab (~> 4.4, >= 4.4.0) + httparty (>= 0.13.7) + octokit (~> 4.7, >= 4.7.0) + rainbow (>= 2.2, < 4.0) + rexml (~> 3.2) + rugged (>= 0.23.0, < 1.1.0) + thor (>= 0.20.3, < 2.0) + public_suffix (4.0.6) rainbow (3.0.0) regexp_parser (2.1.1) rexml (3.2.5) @@ -21,7 +55,14 @@ GEM rubocop-ast (1.5.0) parser (>= 3.0.1.1) ruby-progressbar (1.11.0) + ruby2_keywords (0.0.4) + rugged (1.0.1) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) sequel (5.29.0) + terminal-table (1.6.0) + thor (1.1.0) unicode-display_width (2.0.0) PLATFORMS @@ -29,6 +70,7 @@ PLATFORMS DEPENDENCIES pg (~> 1.2) + pronto (~> 0.11.0) rubocop (~> 1.14) sequel (~> 5.29) From 928b9534234b6e30704568e18141005406cc6128 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 11 May 2021 14:34:21 -0300 Subject: [PATCH 3/6] fix config... maybe? --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b12e6f6..f64b5d3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,7 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + - name: Pronto Action - uses: adwerx/pronto-ruby env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5c1a5b6473e8d4704d8ca6d4f18ae87947101241 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 11 May 2021 14:37:29 -0300 Subject: [PATCH 4/6] rename workflow --- .github/workflows/main.yml | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f64b5d3..4e611d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,31 +1,12 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the action will run. +name: Pronto on: - # Triggers the workflow on push or pull request events but only for the master branch - push: - branches: [ master ] pull_request: - branches: [ master ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel + types: [opened, synchronize] jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on + pronto: runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - name: Pronto Action - - uses: adwerx/pronto-ruby - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v1 + - uses: HeRoMo/pronto-action@v1.17.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} From 5ec0b37b16985fa3f5bebfe3b2af5e84c1262252 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 18 May 2021 11:05:07 -0300 Subject: [PATCH 5/6] remove pronto gem --- Gemfile | 2 -- Gemfile.lock | 48 +++--------------------------------------------- 2 files changed, 3 insertions(+), 47 deletions(-) diff --git a/Gemfile b/Gemfile index 9e06445..60ef573 100644 --- a/Gemfile +++ b/Gemfile @@ -11,5 +11,3 @@ gem "sequel", "~> 5.29" gem "pg", "~> 1.2" gem "rubocop", "~> 1.14" - -gem "pronto", "~> 0.11.0" diff --git a/Gemfile.lock b/Gemfile.lock index 529abc0..50cc454 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,49 +1,15 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) ast (2.4.2) - faraday (1.4.1) - faraday-excon (~> 1.1) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.1) - multipart-post (>= 1.2, < 3) - ruby2_keywords (>= 0.0.4) - faraday-excon (1.1.0) - faraday-net_http (1.0.1) - faraday-net_http_persistent (1.1.0) - gitlab (4.17.0) - httparty (~> 0.18) - terminal-table (~> 1.5, >= 1.5.1) - httparty (0.18.1) - mime-types (~> 3.0) - multi_xml (>= 0.5.2) - mime-types (3.3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2021.0225) - multi_xml (0.6.0) - multipart-post (2.1.1) - octokit (4.21.0) - faraday (>= 0.9) - sawyer (~> 0.8.0, >= 0.5.3) parallel (1.20.1) parser (3.0.1.1) ast (~> 2.4.1) - pg (1.2.2) - pronto (0.11.0) - gitlab (~> 4.4, >= 4.4.0) - httparty (>= 0.13.7) - octokit (~> 4.7, >= 4.7.0) - rainbow (>= 2.2, < 4.0) - rexml (~> 3.2) - rugged (>= 0.23.0, < 1.1.0) - thor (>= 0.20.3, < 2.0) - public_suffix (4.0.6) + pg (1.2.3) rainbow (3.0.0) regexp_parser (2.1.1) rexml (3.2.5) - rubocop (1.14.0) + rubocop (1.15.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) @@ -55,14 +21,7 @@ GEM rubocop-ast (1.5.0) parser (>= 3.0.1.1) ruby-progressbar (1.11.0) - ruby2_keywords (0.0.4) - rugged (1.0.1) - sawyer (0.8.2) - addressable (>= 2.3.5) - faraday (> 0.8, < 2.0) - sequel (5.29.0) - terminal-table (1.6.0) - thor (1.1.0) + sequel (5.44.0) unicode-display_width (2.0.0) PLATFORMS @@ -70,7 +29,6 @@ PLATFORMS DEPENDENCIES pg (~> 1.2) - pronto (~> 0.11.0) rubocop (~> 1.14) sequel (~> 5.29) From 64cd083365996ba377b462a3ce4760bd52a123b1 Mon Sep 17 00:00:00 2001 From: Cassio Godinho Date: Tue, 18 May 2021 11:31:13 -0300 Subject: [PATCH 6/6] add pronto gem --- Gemfile | 2 ++ Gemfile.lock | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/Gemfile b/Gemfile index 60ef573..9e06445 100644 --- a/Gemfile +++ b/Gemfile @@ -11,3 +11,5 @@ gem "sequel", "~> 5.29" gem "pg", "~> 1.2" gem "rubocop", "~> 1.14" + +gem "pronto", "~> 0.11.0" diff --git a/Gemfile.lock b/Gemfile.lock index 50cc454..6011ef7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,11 +1,45 @@ GEM remote: https://rubygems.org/ specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) ast (2.4.2) + faraday (1.4.1) + faraday-excon (~> 1.1) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.1) + multipart-post (>= 1.2, < 3) + ruby2_keywords (>= 0.0.4) + faraday-excon (1.1.0) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.1.0) + gitlab (4.17.0) + httparty (~> 0.18) + terminal-table (~> 1.5, >= 1.5.1) + httparty (0.18.1) + mime-types (~> 3.0) + multi_xml (>= 0.5.2) + mime-types (3.3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2021.0225) + multi_xml (0.6.0) + multipart-post (2.1.1) + octokit (4.21.0) + faraday (>= 0.9) + sawyer (~> 0.8.0, >= 0.5.3) parallel (1.20.1) parser (3.0.1.1) ast (~> 2.4.1) pg (1.2.3) + pronto (0.11.0) + gitlab (~> 4.4, >= 4.4.0) + httparty (>= 0.13.7) + octokit (~> 4.7, >= 4.7.0) + rainbow (>= 2.2, < 4.0) + rexml (~> 3.2) + rugged (>= 0.23.0, < 1.1.0) + thor (>= 0.20.3, < 2.0) + public_suffix (4.0.6) rainbow (3.0.0) regexp_parser (2.1.1) rexml (3.2.5) @@ -21,7 +55,14 @@ GEM rubocop-ast (1.5.0) parser (>= 3.0.1.1) ruby-progressbar (1.11.0) + ruby2_keywords (0.0.4) + rugged (1.0.1) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) sequel (5.44.0) + terminal-table (1.6.0) + thor (1.1.0) unicode-display_width (2.0.0) PLATFORMS @@ -29,6 +70,7 @@ PLATFORMS DEPENDENCIES pg (~> 1.2) + pronto (~> 0.11.0) rubocop (~> 1.14) sequel (~> 5.29)