mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
### Description Changed the actions/stale version back to v8 from v9. ### Motivation and Context There is a well-documented issue w/ the new actions/stale version (v9.0.0) that causes the following error: "Error delete _state: [403] Resource not accessible by integration". See https://github.com/actions/stale/issues/1133 for more context. This issue is preventing the stale bot from labeling stale issues since the version was updated b/c the action can no longer access the cache and cannot apply labels to all issues due to GH API rate limiting. There are two potential fixes if we continue to use the new version: (1) run the action on all PRs/issues to avoid using the cache or (2) give write access to the endpoints listed in https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens?apiVersion=2022-11-28#repository-permissions-for-actions. Neither of these options is preferable, so I am going to wait until the bug is fixed. Note: The old version (v8.0.0) uses Node 16, which will be deprecated in Spring 2024, instead of Node 20, so we should keep an eye on [this issue](https://github.com/actions/stale/issues/1133) to see when they make the fix and we can switch back to the new version.
39 lines
2.2 KiB
YAML
39 lines
2.2 KiB
YAML
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@v8
|
|
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
|
|
# Override exempt-all-assignees but only to exempt the issues with an assignee to be marked as stale automatically
|
|
exempt-all-issue-assignees: true
|
|
# Used to ignore the issues and pull requests created before the start date
|
|
# Start date should be April 19, 2022 - corresponds to the day previous stale bot stopped working
|
|
start-date: '2022-04-19T00:00:00Z'
|
|
# 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: 30
|
|
# 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 30 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 }}
|