Skip to content
check-square

GitHub Action

Close Outdated Issues

v1.3.1 Latest version

Close Outdated Issues

check-square

Close Outdated Issues

Closes issues with past dates in the titles

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Close Outdated Issues

uses: mxie/close-outdated-issues-action@v1.3.1

Learn more about this action in mxie/close-outdated-issues-action

Choose a version

close-outdated-issues-action

A GitHub Action that closes issues whose titles contain a date that has passed.

The following date formats are supported:

  • YYYY-MM-DD
  • YY-MM-DD

where,

  • the leading zero for MM and DD is optional to represent months January through September.
  • the separator (- in the examples) can be any character.

Usage

name: Check for past issues
on:
  schedule:
    - cron: 0 9 * * 5
jobs:
  run-action:
    runs-on: ubuntu-latest
    steps:
    - name: Close issues
      uses: mxie/close-outdated-issues-action@main    # replace `main` with release tag
      with:
        token: ${{ secrets.GITHUB_TOKEN }}