delete-github-branches
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -30,3 +30,4 @@ export declare type deleteGitHubBranchesOptions = { | ||
* Delete branches that are stalled 30 days by default | ||
* if today >= lastPushedDate + 30, its deletable | ||
* It means that today >= lastPushedDate + 30 and its deletable | ||
* if you set options.stalledDay is 0, delete the branch match patterns immediately | ||
* Default: 30 | ||
@@ -33,0 +34,0 @@ */ |
@@ -151,3 +151,3 @@ "use strict"; | ||
const diffDays = dayjs_1.default().diff(branch.lastPushedDate, "day"); | ||
if (diffDays < stalledDays) { | ||
if (diffDays <= stalledDays) { | ||
results.push({ | ||
@@ -154,0 +154,0 @@ branchName: branch.branchName, |
{ | ||
"name": "delete-github-branches", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Delete GitHub Branches that match patterns.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,3 +35,4 @@ import { graphql } from "@octokit/graphql"; | ||
* Delete branches that are stalled 30 days by default | ||
* if today >= lastPushedDate + 30, its deletable | ||
* It means that today >= lastPushedDate + 30 and its deletable | ||
* if you set options.stalledDay is 0, delete the branch match patterns immediately | ||
* Default: 30 | ||
@@ -226,3 +227,3 @@ */ | ||
const diffDays = dayjs().diff(branch.lastPushedDate, "day"); | ||
if (diffDays < stalledDays) { | ||
if (diffDays <= stalledDays) { | ||
results.push({ | ||
@@ -229,0 +230,0 @@ branchName: branch.branchName, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57527
1152