Green-Software-Foundation/carbon-aware-sdk

[Feature Contribution]: Implement stale issue github actions

Closed this issue · 2 comments

danuw commented

What happened?

As the Carbon Aware SDK working group
I want to enable stale for actions
So that I reduce overhead of inactive issues and review the backlog faster

In order to help the team manage the issues more easily, we would like to enable automatically labelling stale issues and closing inactive stale issues as documented here https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues

We understand that common practice is to have maximum 60 days for stale issues.
In order for that change to transition smoothly, we will want issues that are older than 6 months old to be closed automatically.
To that end, we will start with the following settings:

          days-before-issue-stale: 120
          days-before-issue-close: 60

This sits under #252

Code of Conduct

  • I agree to follow this project's Code of Conduct

Feature Commitment

  • I commit to contributing this feature as a PR and working with the GSF to merge this feature into the Carbon Aware SDK.
danuw commented

On reflection, and to align with our original (and initial) 6 months threshold, i have used the following:

        days-before-issue-stale: 240 # ~6 months old 
        days-before-issue-close: 20 # further 20 days
        days-before-pr-stale: 120 # ~3 months old
danuw commented

Messages have also been updated to the following:

        stale-issue-message: 'This issue has not had any activity in 240 days. Please review this issue and ensure it is still relevant. If no more activity is detected on this issue for the next 20 days, it will be closed automatically.'
        close-issue-message: 'This issue has not had any activity for too long. If you believe this issue has been closed in error, please contact an administrator to re-open, or if absolutly relevant and necessary, create a new issue referencing this one. '
        stale-pr-message: 'This a stale pull request. Please review, update or/and close as necessary.'