From c3a25eebcdd9965496953b6fe7e21c67dd4a3a7e Mon Sep 17 00:00:00 2001 From: Taka Date: Tue, 23 Feb 2021 19:22:58 +0000 Subject: [PATCH] Bump version to v0.5.0 (#38) * Bump version to 0.5.0 * Lint test, too * :flushed: update package.json by running npm install --- README.md | 2 +- package-lock.json | 2 +- package.json | 4 ++-- test/github.test.js | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3908d40..fcec25a 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Request review based on files changes and/or groups the author belongs to - uses: necojackarc/auto-request-review@v0.4.0 + uses: necojackarc/auto-request-review@v0.5.0 with: token: ${{ secrets.GITHUB_TOKEN }} config: .github/reviewers.yml # Config file location override diff --git a/package-lock.json b/package-lock.json index f174b90..aecf449 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "auto-request-review", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d30dd81..e27af8f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "auto-request-review", - "version": "0.4.0", + "version": "0.5.0", "description": "GitHub Action that automatically requests review of a pull request based on files changed", "main": "index.js", "scripts": { "build": "ncc build src/index.js", - "lint": "eslint src", + "lint": "eslint src test", "test": "NODE_ENV=automated-testing nyc --all mocha test", "coverage": "nyc report --reporter=text-lcov > coverage/lcov.info" }, diff --git a/test/github.test.js b/test/github.test.js index d27a7e1..c6f6418 100644 --- a/test/github.test.js +++ b/test/github.test.js @@ -99,14 +99,14 @@ describe('github', function() { it('fetch changed files through the last page', async function() { const filenames = []; - for (let i = 0; i < 222; i += 1) { - filenames.push(`path/to/file${i}`); + for (let index = 0; index < 222; index += 1) { + filenames.push(`path/to/file${index}`); } const page_size = 100; const filenames_in_chunks = []; - for (let i = 0; i < filenames.length; i += page_size) { - filenames_in_chunks.push(filenames.slice(i, i + page_size)); + for (let index = 0; index < filenames.length; index += page_size) { + filenames_in_chunks.push(filenames.slice(index, index + page_size)); } // Make sure filenames are correctly split into chunks