Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crs-k/stale-branches
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.2
Choose a base ref
...
head repository: crs-k/stale-branches
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.0.2
Choose a head ref
  • 14 commits
  • 13 files changed
  • 3 contributors

Commits on Jul 15, 2024

  1. Bump prettier from 3.3.2 to 3.3.3 (#1226)

    Bumps [prettier](https://github.com/prettier/prettier) from 3.3.2 to 3.3.3.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@3.3.2...3.3.3)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ef9582d View commit details
  2. Bump crs-k/stale-branches from 5.0.1 to 5.0.2 (#1227)

    Bumps [crs-k/stale-branches](https://github.com/crs-k/stale-branches) from 5.0.1 to 5.0.2.
    - [Release notes](https://github.com/crs-k/stale-branches/releases)
    - [Commits](v5.0.1...v5.0.2)
    
    ---
    updated-dependencies:
    - dependency-name: crs-k/stale-branches
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b76c4dd View commit details

Commits on Jul 16, 2024

  1. Bump @types/node from 20.14.10 to 20.14.11 (#1229)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.10 to 20.14.11.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 16, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    679f895 View commit details

Commits on Jul 17, 2024

  1. Bump eslint-plugin-prettier from 5.1.3 to 5.2.1 (#1230)

    Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.1.3 to 5.2.1.
    - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
    - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
    - [Commits](prettier/eslint-plugin-prettier@v5.1.3...v5.2.1)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    515c04f View commit details

Commits on Jul 18, 2024

  1. Bump ts-jest from 29.2.2 to 29.2.3 (#1231)

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.2.2 to 29.2.3.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v29.2.2...v29.2.3)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    710ad8b View commit details

Commits on Jul 23, 2024

  1. Bump @types/node from 20.14.11 to 20.14.12 (#1232)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.11 to 20.14.12.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    15ae07e View commit details
  2. Bump typescript from 5.5.3 to 5.5.4 (#1233)

    Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
    - [Commits](microsoft/TypeScript@v5.5.3...v5.5.4)
    
    ---
    updated-dependencies:
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a9e6377 View commit details

Commits on Aug 1, 2024

  1. Bump ts-jest from 29.2.3 to 29.2.4 (#1236)

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.2.3 to 29.2.4.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v29.2.3...v29.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fdfa282 View commit details

Commits on Aug 2, 2024

  1. Support Dry Run & No Github Issues Interaction if repo doesn't use is…

    …sues (#1228)
    
    * Support Dry Run & No Github Issues Interaction if repo doesn't use issues
    
    * remove incorrect import
    
    * spelling mistake
    
    ---------
    
    Co-authored-by: Chris Kerins <[email protected]>
    brianhuang822 and crs-k authored Aug 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5c1f814 View commit details
  2. Bump @types/node from 20.14.12 to 22.0.2 (#1235)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.14.12 to 22.0.2.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Chris Kerins <[email protected]>
    dependabot[bot] and crs-k authored Aug 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5fe48d1 View commit details
  3. build update (#1237)

    crs-k authored Aug 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    51ffa1d View commit details
  4. Bump crs-k/stale-branches from 5.0.2 to 6.0.1 (#1238)

    Bumps [crs-k/stale-branches](https://github.com/crs-k/stale-branches) from 5.0.2 to 6.0.1.
    - [Release notes](https://github.com/crs-k/stale-branches/releases)
    - [Commits](v5.0.2...v6.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: crs-k/stale-branches
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    df9cb37 View commit details
  5. Bump @types/node from 22.0.2 to 22.1.0 (#1239)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.0.2 to 22.1.0.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Chris Kerins <[email protected]>
    dependabot[bot] and crs-k authored Aug 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b62e20c View commit details

Commits on Aug 5, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    73d715e View commit details
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -59,7 +59,9 @@ jobs:
stale-branch-label: 'stale branch 🗑️'
compare-branches: 'info'
branches-filter-regex: '^((?!dependabot))'
pr-check: true
pr-check: true
dry-run: false
ignore-issue-interaction: false


Build:
2 changes: 1 addition & 1 deletion .github/workflows/stale-branches-test.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Stale Branches
uses: crs-k/stale-branches@v5.0.1
uses: crs-k/stale-branches@v6.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
days-before-stale: 1
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -36,7 +36,9 @@ Inputs are defined in [`action.yml`](action.yml). None are required.:
| `compare-branches` | This compares each branch to the repo's default branch. <ul><li>When set to `info`, additional output describes if the current branch is ahead, behind, diverged, or identical to the default branch.<br>![image](https://user-images.githubusercontent.com/26232872/157590411-7c97806c-a509-4002-b7a5-a1e4a5da08eb.png)</li> <li>When set to `save`, this prevents branches from being deleted if they are ahead of or diverged from the default branch.</li> <li>When set to `off`, no additional calls are made.</li></ul> | off |
| `branches-filter-regex` | An optional Regex that will be used to filter branches from this action. | '' |
| `rate-limit` | If this is enabled, the action will stop if it exceeds 95% of the GitHub API rate limit. | true |
| `pr-check` | If this is enabled, the action will first check for incoming/outgoing PRs associated with the branch. If a branch has an active pr, it will not be ignored. | false |
| `pr-check` | If this is enabled, the action will first check for incoming/outgoing PRs associated with the branch. If a branch has an active pr, it will be ignored. | false |
| `dry-run` | If this is enabled, the action will not delete or tag any branches. | false |
| `ignore-issue-interaction` | If this is enabled, the action will not interact with Github issues. | false |

### Outputs
Outputs are defined in [`action.yml`](action.yml):
@@ -111,6 +113,8 @@ jobs:
branches-filter-regex: '^((?!dependabot))'
rate-limit: false
pr-check: false
dry-run: false
ignore-issue-interaction: false


```
4 changes: 3 additions & 1 deletion __mocks__/@actions/github.ts
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ export const validInputs: Inputs = {
staleBranchLabel: 'stale branch 🗑️',
compareBranches: 'save',
rateLimit: true,
prCheck: false
prCheck: false,
dryRun: false,
ignoreIssueInteraction: false,
}

type ListIssuesResponseDataType = GetResponseTypeFromEndpointMethod<typeof githubActual.github.rest.issues.listForRepo>
2 changes: 1 addition & 1 deletion __tests__/functions/get-context.test.ts
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ describe('Get Context Function', () => {
await validateInputs()

expect(core.getInput).toHaveBeenCalledTimes(6)
expect(core.getBooleanInput).toHaveBeenCalledTimes(4)
expect(core.getBooleanInput).toHaveBeenCalledTimes(6)
})

test('Expect Failure: - TypeError', async () => {
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -41,11 +41,19 @@ inputs:
rate-limit:
description: 'If this is enabled, the action will stop if it exceeds 95% of the GitHub API rate limit.'
required: false
default: true
default: 'true'
pr-check:
description: 'If this is enabled, the action will first check for active pull requests against the branch. If a branch has an active pr, it will not be ignored.'
required: false
default: false
default: 'false'
dry-run:
description: 'If this is enabled, the action will not delete or tag any branches.'
required: false
default: 'false'
ignore-issue-interaction:
description: 'If this is enabled, the action will not interact with Github issues.'
required: false
default: 'false'
outputs:
deleted-branches:
description: 'List of all deleted branches.'
Loading