From a918fdd31fa3a025956cee8420e987d3b4469bd4 Mon Sep 17 00:00:00 2001 From: Takayuki Nakata Date: Thu, 10 Nov 2022 22:27:08 +0900 Subject: [PATCH 1/2] Update README and remove debug --- README.md | 12 ++---------- dist/index.js | Bin 239373 -> 239315 bytes dist/index.js.map | Bin 278292 -> 278227 bytes src/main.ts | 2 -- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b461de0..072b846 100644 --- a/README.md +++ b/README.md @@ -10,21 +10,13 @@ This action runs [Clippy](https://github.com/rust-lang/rust-clippy) with ```yml name: clippy-action on: [pull_request] -env: - CARGO_TERM_COLOR: always jobs: clippy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install latest nightly - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - components: rustfmt, clippy - - name: clippy-action - uses: giraffate/clippy-action@main + - uses: dtolnay/rust-toolchain@stable + - uses: giraffate/clippy-action@main with: reporter: 'github-pr-review' github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/dist/index.js b/dist/index.js index 6291e57e3bb266d7a59285a576b5b69ac3c85793..0a94336fe35eb5b38ec6b555d691fa75fa335313 100644 GIT binary patch delta 31 lcmeA@$9MTG--blB>Gj@B9L+83)a0x{F}#cIr14FJ&k3>E+Y delta 73 zcmcb7maq35--blBY5YtqllgVnWl~a;O4F?rRI2k!OA1O$^s@3Z^EA|B^3*kJ6Q&o| bGYU^X;Ksz!oT=8Hsm2JzOxrWnn6nxHssR{w diff --git a/dist/index.js.map b/dist/index.js.map index 726110d67439bae5e2fb6b04f8c37ba362064887..59c748475b10f8826733f8b12c627a7900f6ef30 100644 GIT binary patch delta 59 zcmbR8PvG)jfejI+)AuAXaWu~{ZJ%Sx2*ga==a@2c^i2Q2%fi8G?dWXkx&7jP=97%m P8y+!pZSOqH++7U-+IttR delta 91 zcmccoS76FNfejI+)9+g{aZ9J9CY7dJDX3KEmzETimgr^WXXa_B$He5RYffG`QEYlc v5)(&rf@yn#DI*XwZBH;|=IELJfQN;b)!Nb7+;jUxE|v?7+g%Sc_f-P`BwZj$ diff --git a/src/main.ts b/src/main.ts index 0603e3a..393847d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -75,8 +75,6 @@ async function run(): Promise { } ) - core.info(`debug: ${output.join('\n')}`) - process.env['REVIEWDOG_GITHUB_API_TOKEN'] = core.getInput('github_token') return await exec.exec( From c5faef35dd326ebf3862e9b4736e16df6910f78f Mon Sep 17 00:00:00 2001 From: Takayuki Nakata Date: Thu, 10 Nov 2022 22:35:17 +0900 Subject: [PATCH 2/2] Update action.yml --- action.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 529b08a..aa5598e 100644 --- a/action.yml +++ b/action.yml @@ -1,11 +1,18 @@ name: 'Run Clippy with reviewdog' -description: 'Provide a description here' -author: 'Your name or organization here' +description: '🐶 Run Clippy with reviewdog on pull requests to improve code review experience' +author: 'Takayuki Nakata' +branding: + icon: "check-circle" + color: "blue" inputs: github_token: description: "GITHUB_TOKEN." required: true default: ${{ github.token }} + clippy_flags: + description: "clippy flags. (cargo clippy --color never -q --message-format json ``)" + required: false + default: "" tool_name: description: "Tool name to use for reviewdog reporter" required: false @@ -42,10 +49,6 @@ inputs: description: "the version of reviewdog" required: false default: latest - cache: - deprecation: "enable cache" - default: true - required: false runs: using: 'node16' main: 'dist/index.js'