mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
Fix stale bot issue (#18064)
### Description Previously used GitHub stale app is now deprecated, so I deleted that file and added a new GitHub Actions workflow to automatically apply the stale label to inactive issues. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
2eeafc37bc
commit
28ad3ff799
2 changed files with 34 additions and 22 deletions
22
.github/stale.yml
vendored
22
.github/stale.yml
vendored
|
|
@ -1,22 +0,0 @@
|
|||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 30
|
||||
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 7
|
||||
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- contributions welcome
|
||||
- feature request
|
||||
- regression
|
||||
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: stale
|
||||
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details.
|
||||
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: >
|
||||
This issue has been automatically closed due to inactivity. Please reactivate if further support is needed.
|
||||
34
.github/workflows/stale.yml
vendored
Normal file
34
.github/workflows/stale.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Close stale issues
|
||||
on:
|
||||
# Allows you to dictate when you want this workflow to run using cron syntax (times in UTC)
|
||||
schedule:
|
||||
- cron: "0 15 * * *"
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
# workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
close-stale-issues:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v4.1.1
|
||||
with:
|
||||
# Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale
|
||||
exempt-issue-labels: contributions welcome, feature request, regression
|
||||
# Number of days without activity before the actions/stale action labels an issue
|
||||
days-before-issue-stale: 30
|
||||
# Number of days without activity before the actions/stale action closes an issue
|
||||
days-before-issue-close: 7
|
||||
# Label you want to apply to issues that have been inactive for the amount of time specified by days-before-issue-stale
|
||||
stale-issue-label: "stale"
|
||||
# Comment that you want to add to issues that are labeled by the actions/stale action
|
||||
stale-issue-message: "This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details."
|
||||
# Comment that you want to add to issues that are closed by the actions/stale action
|
||||
close-issue-message: "This issue has been automatically closed due to inactivity. Please reactivate if further support is needed."
|
||||
# If you never want this action to label PRs, set this value to -1
|
||||
days-before-pr-stale: -1
|
||||
# If you never want this action to close PRs, set this value to -1
|
||||
days-before-pr-close: -1
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Reference in a new issue