Skip to content

Commit

Permalink
Merge pull request #4833 from PowerShell/andyleejordan/stale-action
Browse files Browse the repository at this point in the history
Setup ``actions/stale`` for issue management
  • Loading branch information
andyleejordan authored Nov 15, 2023
2 parents cce0eb4 + b392d2c commit 7da6b4e
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 151 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: 2
updates:
- package-ecosystem: npm
directory: "/"
labels: [ ]
schedule:
interval: weekly
open-pull-requests-limit: 10
Expand All @@ -16,5 +17,6 @@ updates:
versions: ["5.x"]
- package-ecosystem: github-actions
directory: "/"
labels: [ ]
schedule:
interval: weekly
150 changes: 0 additions & 150 deletions .github/policies/resourceManagement.yml

This file was deleted.

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

permissions:
issues: write

on:
schedule:
- cron: '0 * * * *' # Every hour on the hour

jobs:
stale-resolved-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
name: Close issues labeled as resolved after 1 day of inactivity
with:
any-of-labels: "Resolution-Answered,Resolution-Duplicate,Resolution-External, Resolution-Fixed,Resolution-Inactive"
days-before-stale: 1
days-before-close: 0
close-issue-reason: completed
close-issue-message: "This issue has been marked as resolved and has not had any activity for **1 day**. It has been closed for housekeeping purposes."
debug-only: true
stale-feedback-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
name: Close issues labeled as needs feedback after 1 week of inactivity
with:
any-of-labels: "Needs: Author Feedback,Needs: Fix Verification,Needs: Repro Info"
days-before-stale: 2
days-before-close: 5
labels-to-remove-when-stale: "Needs: Maintainer Attention"
labels-to-add-when-unstale: "Needs: Maintainer Attention"
labels-to-remove-when-unstale: "Needs: Author Feedback,Needs: Fix Verification,Needs: Repro Info"
close-issue-reason: completed
close-issue-message: "This issue has been marked as needing feedback and has not had any activity for **1 daweekys**. It has been closed for housekeeping purposes."
debug-only: true
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: Run CodeQL Analysis

on:
push:
Expand Down

0 comments on commit 7da6b4e

Please sign in to comment.