diff --git a/package.json b/package.json index 018f423..74c0ec7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/github-action-pr-helper", - "version": "1.11.6", + "version": "2.0.0", "description": "PullRequest Helper for GitHub Actions.", "keywords": [ "github", @@ -36,7 +36,7 @@ "dependencies": { "@actions/core": "^1.2.6", "@actions/github": "^4.0.0", - "@technote-space/filter-github-action": "^0.5.7", + "@technote-space/filter-github-action": "^0.5.8", "@technote-space/github-action-helper": "^4.3.1", "moment": "^2.29.1" }, diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 470090c..2a4df25 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -68,7 +68,7 @@ export const isDisabledDeletePackage = (context: ActionContext): boolean => !(co export const isClosePR = (context: ActionContext): boolean => isPr(context.actionContext) && context.actionContext.payload.action === 'closed'; -export const isNotCreatePR = (context: ActionContext): boolean => isPr(context.actionContext) && true === context.actionDetail.notCreatePr; +export const isNotCreatePR = (context: ActionContext): boolean => true === context.actionDetail.notCreatePr; export const isTargetBranch = async(branchName: string, octokit: Octokit, context: ActionContext): Promise => { if (branchName === await getDefaultBranch(octokit, context)) { diff --git a/yarn.lock b/yarn.lock index 82fd193..3ff537f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -764,10 +764,10 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@technote-space/filter-github-action@^0.5.7": - version "0.5.7" - resolved "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.7.tgz#6608b1e43347bd49f554d9d928a67482321d06f4" - integrity sha512-Z+o9LDjlxavShBxVJLSaqjsF4N7FjCrrv6VNaRbmOGOKVxsp+a4n4vTpsekmpomp5h6pIPwt4RbSmG4JdiBL6g== +"@technote-space/filter-github-action@^0.5.8": + version "0.5.8" + resolved "https://registry.yarnpkg.com/@technote-space/filter-github-action/-/filter-github-action-0.5.8.tgz#a9e3cf4bda26c43831acf78569f859077712a4a3" + integrity sha512-fHnGnS7CPhyPtFfTwXFKB+31x19mNMNFCZabWOEkkSD+30cyRbA2K2IU81FTjZSOCblFWjsz+kiaZ4kGSsU4gg== dependencies: "@actions/core" "^1.2.6" "@actions/github" "^4.0.0"