• This repository has been archived on 20/May/2023
  • Stars
    star
    1,249
  • Rank 37,617 (Top 0.8 %)
  • Language
    JavaScript
  • License
    ISC License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A GitHub App built with Probot that closes abandoned Issues and Pull Requests after a period of inactivity.

Probot: Stale

A GitHub App built with Probot that closes abandoned Issues and Pull Requests after a period of inactivity.

Inspired by @parkr's auto-reply bot that runs @jekyllbot.

📯 The stale app is deprecated and this repository is no longer maintained

Please use the stale action instead.

See old Readme

Usage

  1. Configure the GitHub App
  2. Create .github/stale.yml based on the following template.
  3. It will start scanning for stale issues and/or pull requests within 24 hours.

A .github/stale.yml file is required to enable the plugin. The file can be empty, or it can override any of these default settings:

# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 60

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
  - pinned
  - security
  - "[Status] Maybe Later"

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: wontfix

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
  This issue has been automatically marked as stale because it has not had
  recent activity. It will be closed if no further activity occurs. Thank you
  for your contributions.

# Comment to post when removing the stale label.
# unmarkComment: >
#   Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
# closeComment: >
#   Your comment here.

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
# only: issues

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
#   daysUntilStale: 30
#   markComment: >
#     This pull request has been automatically marked as stale because it has not had
#     recent activity. It will be closed if no further activity occurs. Thank you
#     for your contributions.

# issues:
#   exemptLabels:
#     - confirmed

How are issues and pull requests considered stale?

The app uses GitHub's updated search qualifier to determine staleness. Any change to an issue or pull request is considered an update, including comments, changing labels, applying or removing milestones, or pushing commits.

An easy way to check and see which issues or pull requests will initially be marked as stale is to add the updated search qualifier to either the issue or pull request page filter for your repository: updated:<2017-07-01. Adjust the date to be 60 days ago (or whatever you set for daysUntilStale) to see which issues or pull requests will be marked.

Why did only some issues and pull requests get marked stale?

To avoid triggering abuse prevention mechanisms on GitHub, only 30 issues and pull requests will be marked or closed per hour. If your repository has more than that, it will just take a few hours or days to mark them all.

How long will it take?

The app runs on a scheduled basis and in batches in order to avoid hitting rate limit ceilings.

This means that even after you initially install the GitHub configuration and add the stale.yml file, you may not see it act immediately.

If the bot doesn't run within 24 hours of initial setup, feel free to open an issue and we can investigate further.

Is closing stale issues really a good idea?

In an ideal world with infinite resources, there would be no need for this app.

But in any successful software project, there's always more work to do than people to do it. As more and more work piles up, it becomes paralyzing. Just making decisions about what work should and shouldn't get done can exhaust all available resources. In the experience of the maintainers of this app—and the hundreds of other projects and organizations that use it—focusing on issues that are actively affecting humans is an effective method for prioritizing work.

To some, a robot trying to close stale issues may seem inhospitable or offensive to contributors. But the alternative is to disrespect them by setting false expectations and implicitly ignoring their work. This app makes it explicit: if work is not progressing, then it's stale. A comment is all it takes to keep the conversation alive.

Deployment

See docs/deploy.md if you would like to run your own instance of this plugin.

Contribute

If you have suggestions for how Stale could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

Note that all interactions fall under the Probot Code of Conduct.

License

ISC Copyright © 2017-2018 Brandon Keepers

More Repositories

1

probot

🤖 A framework for building GitHub Apps to automate and improve your workflow
TypeScript
8,883
star
2

smee-client

🔴 Receives payloads then sends them to your local server
TypeScript
419
star
3

smee.io

☁️📦 Webhook payload delivery service
JavaScript
324
star
4

create-probot-app

🤖📦 Create a new probot app
JavaScript
235
star
5

dco

GitHub App that enforces the Developer Certificate of Origin (DCO) on Pull Requests
JavaScript
219
star
6

reminders

set reminders on Issues and Pull Requests
JavaScript
162
star
7

probot.github.io

This is the home of probot documentation, apps, how-to guides and more.
HTML
114
star
8

unfurl

a GitHub App built with Probot that unfurls links on Issues and Pull Request discussions
JavaScript
109
star
9

no-response

a GitHub App that closes issues where the author hasn't responded to a request for more information
JavaScript
107
star
10

ideas

Share ideas for new GitHub Apps built with Probot
96
star
11

adapter-aws-lambda-serverless

An extension for running Probot on Lambda
JavaScript
93
star
12

adapter-github-actions

🔌 An adapter that takes a Probot app and makes it compatible with GitHub Actions
JavaScript
83
star
13

commands

A Probot extension that adds slash commands to GitHub
JavaScript
64
star
14

probot-config

A Probot extension to easily share configs between repositories.
JavaScript
63
star
15

linter

a GitHub App that lints and fixes code in Pull Requests
JavaScript
59
star
16

metadata

A Probot extension to store metadata on Issues and Pull Requests
JavaScript
52
star
17

github-app

node module to handle authentication for the GitHub Apps API
JavaScript
51
star
18

template

Template for new Probot apps
JavaScript
50
star
19

scheduler

⚠️ Archived
JavaScript
46
star
20

autoresponder

reply to opened GitHub issues with the contents of `.github/ISSUE_REPLY_TEMPLATE.md`
JavaScript
46
star
21

octokit-plugin-config

🛠️ Get/set persisted configuration using YAML/JSON files in repositories
TypeScript
35
star
22

example-github-action

Probot & GitHub Action example
JavaScript
32
star
23

invite

a GitHub App built with Probot for inviting users to an organization
JavaScript
24
star
24

stale-action

Just like the Stale app, but for Actions!
JavaScript
18
star
25

example-vercel

Example Probot Application that is deployed to Vercel
JavaScript
18
star
26

attachments

A Probot extension to add message attachments to comments on GitHub
JavaScript
16
star
27

serverless-gcf

An extension for running Probot on Google Cloud Functions
JavaScript
14
star
28

template-typescript

TypeScript Template for new Probot apps
TypeScript
14
star
29

example-aws-lambda-serverless

Probot & AWS Lamda example using Serverless
JavaScript
13
star
30

auth-routes

🔀🔒 Helpful authentication routes for Node.js GitHub integrations
TypeScript
13
star
31

octokit-auth-probot

🛠️ Octokit authentication strategy for token, app (JWT), and event-based installation authentication
TypeScript
11
star
32

get-private-key

🛠️ Get private key from a path, environment variables, or a `*.pem` file in the current working directory
TypeScript
10
star
33

probot-ui

Browser extension to show custom events from your Probot App in the GitHub timeline
JavaScript
9
star
34

example-google-cloud-function

Probot & Google Cloud Functions example
JavaScript
8
star
35

pino

🛠️ formatting and error captioning for probot logs
JavaScript
8
star
36

friction

a place to talk about any friction experienced using Probot.
8
star
37

mistaken-pull-closer

A GitHub app built with Probot that automatically closes pull requests that are commonly mistakes.
JavaScript
8
star
38

twitter

A repository to compose tweets together for @ProbotTheRobot
6
star
39

hello-world

Probot Hello World on Glitch
JavaScript
6
star
40

adapter-azure-functions

Adapter to run a probot application function in Azure Functions
JavaScript
5
star
41

talks

A collection of conference/lightning talks and presentations about Probot
4
star
42

probot-now-starter

Template for deploying Probot Apps to now.sh
JavaScript
4
star
43

example-nitro

Use Probot with Nitro to deploy it anywhere
CSS
2
star
44

example-azure-function

Probot & Azure Functions example
JavaScript
1
star
45

.github

Org-wide settings
1
star
46

example-begin

Probot & Begin.com example
JavaScript
1
star
47

test

a playground to test probot
1
star
48

eslint-config-probot

JavaScript
1
star
49

example-aws-lambda-sam

JavaScript
1
star