Socket
Socket
Sign inDemoInstall

delete-github-branches

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delete-github-branches - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

3

lib/delete-github-branches.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc