Skip to content

Commit 325ca6f

Browse files
authored
Merge pull request #7 from praha-inc/feature/only-return-if-author-excluded
Authorが除外リストに含まれていた時例外を投げるのをやめた
2 parents a09c73b + ad32df7 commit 325ca6f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# action-auto-pr-assign
22

3+
## 1.3.0
4+
5+
### Minor Changes
6+
7+
- 9adbe86: Author が除外リストに含まれていた時例外を投げるのをやめた
8+
39
## 1.2.2
410

511
### Patch Changes

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "action-auto-pr-assign",
3-
"version": "1.2.2",
3+
"version": "1.3.0",
44
"scripts": {
55
"build": "ncc build src/index.ts --out dist --transpile-only --minify",
66
"test": "vitest --run",

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export const main: Main = async ({
1818
}
1919

2020
if (exclude.includes(author)) {
21-
throw new Error(`This PR is created by ${author}`);
21+
console.log(`This PR is created by ${author}`);
22+
return;
2223
}
2324

2425
const octokit = getOctokit(token);

0 commit comments

Comments
 (0)