Unverified Commit 4916aa1e authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

fix: use github action instead of bot (#33718)

* fix: use github action instead of bot

* add personal access tokens to avoid rate limiting

* Update .github/workflows/lock.yml
Co-authored-by: 's avatarSteven <steven@ceriously.com>

* add cron comments
Co-authored-by: 's avatarSteven <steven@ceriously.com>
parent eaf680d6
# Configuration for lock-threads - https://github.com/dessant/lock-threads
# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 30
# Comment to post before locking. Set to `false` to disable
lockComment: 'This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.'
name: 'Lock Threads'
on:
schedule:
# This runs every hour: https://crontab.guru/every-1-hour
- cron: '0 * * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
concurrency:
group: lock
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
github-token: ${{ secrets.LOCK_TOKEN }}
issue-inactive-days: 30
issue-comment: 'This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.'
pr-inactive-days: 30
...@@ -2,6 +2,7 @@ name: 'Stale issue handler' ...@@ -2,6 +2,7 @@ name: 'Stale issue handler'
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
# This runs every day 20 minutes before midnight: https://crontab.guru/#40_23_*_*_*
- cron: '40 23 * * *' - cron: '40 23 * * *'
jobs: jobs:
...@@ -12,6 +13,7 @@ jobs: ...@@ -12,6 +13,7 @@ jobs:
id: stale id: stale
name: 'Close stale issues with no reproduction' name: 'Close stale issues with no reproduction'
with: with:
repo-token: ${{ secrets.STALE_TOKEN }}
only-labels: 'please add a complete reproduction' only-labels: 'please add a complete reproduction'
close-issue-message: 'This issue has been automatically closed after 30 days of inactivity with no reproduction. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.' close-issue-message: 'This issue has been automatically closed after 30 days of inactivity with no reproduction. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.'
days-before-issue-close: 1 days-before-issue-close: 1
...@@ -19,3 +21,4 @@ jobs: ...@@ -19,3 +21,4 @@ jobs:
days-before-pr-close: -1 days-before-pr-close: -1
days-before-pr-stale: -1 days-before-pr-stale: -1
exempt-issue-labels: 'blocked,must,should,keep' exempt-issue-labels: 'blocked,must,should,keep'
operation-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment