Skip to content

Commit

Permalink
Bump version to v0.5.0 (#38)
Browse files Browse the repository at this point in the history
* Bump version to 0.5.0

* Lint test, too

* 😳 update package.json by running npm install
  • Loading branch information
necojackarc authored Feb 23, 2021
1 parent 0f7ef94 commit c3a25ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
8 changes: 4 additions & 4 deletions test/github.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3a25ee

Please sign in to comment.