Skip to content

Bot to automatically close new GitHub issues.

Notifications You must be signed in to change notification settings

nylen/the-closer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Closer

This is a bot that automatically closes GitHub issues. You can specify a minimum issue number if you want to leave older issues open.

Also, the bot will write the issues it closes to a JSON file so that you can re-open them without further interference.

Installation

First, make sure you have Node.js installed (tested on version 5.12.0).

Then:

git clone https://github.com/nylen/the-closer.git
cd the-closer
npm install
cp sample-config.json config.json

Then fill in the values in config.json.

Configuration

  • username: Your GitHub username.
  • apiToken: Your GitHub API token.
  • owner: The owner of the repository where you want to close issues.
  • repo: The name of the repository where you want to close issues.
  • (optional) firstIssueNumber: Close issues with this issue number or higher.

For the message to use when closing an issue, the plugin will read a file called MESSAGE.md in the same directory as the config file.

Usage

node bin/the-closer.js

I recommend setting this to run using a cron job, e.g. every 5 minutes.

About

Bot to automatically close new GitHub issues.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published