From 28fa7ac5388a4dfe891b07830c4bbd5a5a9c4e4b Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 18 Aug 2020 11:44:36 +0200 Subject: [PATCH] Migrate lock-bot to GitHub actions --- .github/lock.yml | 31 ------------------------------- .github/workflows/lock.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 31 deletions(-) delete mode 100644 .github/lock.yml create mode 100644 .github/workflows/lock.yml diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index a87d8d111..000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,31 +0,0 @@ -# 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 - -# Issues and pull requests with these labels will not be locked. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: false - -# Comment to post before locking. Set to `false` to disable -lockComment: false - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: true - -# Limit to only `issues` or `pulls` -# only: issues - -# Optionally, specify configuration settings just for `issues` or `pulls` -# issues: -# exemptLabels: -# - help-wanted -# lockLabel: outdated - -# pulls: -# daysUntilLock: 30 - -# Repository to extend settings from -# _extends: repo \ No newline at end of file diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..4d367507b --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,16 @@ +name: ASF-lock-threads + +on: + schedule: + - cron: '0 1 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - name: Lock inactive threads + uses: dessant/lock-threads@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-lock-inactive-days: 30 + pr-lock-inactive-days: 30