Skip to content

Commit

Permalink
ci: add issue and pr stale gh action (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkb79 authored Sep 26, 2023
1 parent 6f14386 commit 0aaf27c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
- name: skip-changelog
description: Skip pull request from release notes
color: 964B00
- name: skip-stale
description: Skip issue or pull request to be marked as stale
color: 964B50
- name: wontfix
description: This will not be worked on
color: ffffff
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Close stale issues and PRs"

on:
schedule:
- cron: "00 03 * * *"

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
with:
close-issue-message: "This issue has automatically been closed due to no activities."
close-pr-message: "This pull-request has automatically been closed due to no activities."
stale-issue-message: "This issue has not been updated for a while and will be closed soon."
stale-pr-message: "This pull-request has not been updated for a while and will be closed soon."
days-before-stale: 60
days-before-close: 10
exempt-all-milestones: true
exempt-issue-labels: skip-stale
exempt-pr-labels: skip-stale
stale-issue-label: stale
stale-pr-label: stale

0 comments on commit 0aaf27c

Please sign in to comment.