Skip to content

Commit

Permalink
Redo stale label (#17969)
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Nov 14, 2024
1 parent 3ddc013 commit 9cdfe45
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/stale.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/stale_closer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Close stale issues

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale_closer:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
close-issue-message: 'Closing this issue because it has been stale with no responses for over 7 days.'
days-before-stale: -1
days-before-close: 7
operations-per-run: 50
stale-issue-label: 'Status: Stale'
ascending: true
22 changes: 22 additions & 0 deletions .github/workflows/stale_remover.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Remove stale label on comment

on:
issue_comment:
types:
- created

jobs:
stale_remover:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
id: label-script
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'Status: Stale'
})
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
!config/*
!scripts/*
!resources/*
!.github/*

##################################################################
##Blacklist all folders not modified by GT:NH team either at all
Expand Down

0 comments on commit 9cdfe45

Please sign in to comment.