1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

fixing stale action

This commit is contained in:
Massimo Candela
2024-02-23 13:41:55 +01:00
parent d333a28330
commit ae20ba26f5
2 changed files with 41 additions and 20 deletions

20
.github/stale.yml vendored
View File

@ -1,20 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 1
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- no-stale
# Label to use when marking an issue as stale
staleLabel: wontfix
markComment: false
# Comment to post when marking an issue as stale. Set to `false` to disable
closeComment: >
This issue has been automatically closed as stale.
This mechanism helps to prioritize feature requests which received more support from the community.
If you want to open again this issue you have to provide a Pull Request.

41
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,41 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Stale
on:
workflow_dispatch:
schedule:
- cron: '0 13 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 90
days-before-pr-stale: 90
days-before-issue-close: 0
days-before-pr-close: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}
exempt-issue-labels: >
no-stale,
pinned
close-issue-message: >
This issue has been automatically closed as stale.
This mechanism helps to prioritize feature requests which received more support from the community.
If you want to open again this issue you have to provide a Pull Request.
close-pr-message: >
This pr has been automatically closed as stale.
This mechanism helps to prioritize feature requests which received more support from the community.
A pr may become stale because there is no interest or bandwidth in reviewing/merging it.
stale-issue-label: 'wontfix'
stale-pr-label: 'wontfix'