Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
Signed-off-by: Duarte Nunes <duarte.m.nunes@gmail.com>
  • Loading branch information
duarten committed Mar 25, 2020
1 parent bb251c5 commit 91baf91
Show file tree
Hide file tree
Showing 95 changed files with 14,242 additions and 36,341 deletions.
10 changes: 8 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ function getChangedFiles(client, prNumber, fileCount) {
page: pageIndex,
per_page: fetchPerPage,
});
listFilesResponse.data.forEach(f => {
const pattern = core.getInput("pattern");
const re = new RegExp(pattern.length ? pattern : ".*");
listFilesResponse.data
.filter(f => re.test(f.filename))
.forEach(f => {
if (f.status === "added") {
changedFiles.created.push(f.filename);
}
Expand All @@ -52,7 +56,9 @@ function getChangedFiles(client, prNumber, fileCount) {
}
else if (f.status === "renamed") {
changedFiles.created.push(f.filename);
changedFiles.deleted.push(f["previous_filename"]);
if (re.test(f["previous_filename"])) {
changedFiles.deleted.push(f["previous_filename"]);
}
}
});
}
Expand Down
6 changes: 6 additions & 0 deletions node_modules/@actions/core/README.md

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

6 changes: 3 additions & 3 deletions node_modules/@actions/core/lib/command.d.ts

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

46 changes: 29 additions & 17 deletions node_modules/@actions/core/lib/command.js

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

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/command.js.map

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

4 changes: 4 additions & 0 deletions node_modules/@actions/core/lib/core.d.ts

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

18 changes: 16 additions & 2 deletions node_modules/@actions/core/lib/core.js

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

2 changes: 1 addition & 1 deletion node_modules/@actions/core/lib/core.js.map

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

4 changes: 3 additions & 1 deletion node_modules/@actions/core/package.json

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

23 changes: 20 additions & 3 deletions node_modules/@actions/github/README.md

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

4 changes: 2 additions & 2 deletions node_modules/@actions/github/lib/context.d.ts

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

2 changes: 1 addition & 1 deletion node_modules/@actions/github/lib/context.js

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

Loading

0 comments on commit 91baf91

Please sign in to comment.