diff --git a/.github/workflows/repo-maintenance.yml b/.github/workflows/repo-maintenance.yml index 68bbd1612..c732d0342 100644 --- a/.github/workflows/repo-maintenance.yml +++ b/.github/workflows/repo-maintenance.yml @@ -33,10 +33,11 @@ jobs: name: 'Lock Old Threads' runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v4 + - uses: dessant/lock-threads@v5 with: issue-inactive-days: '30' pr-inactive-days: '30' + discussion-inactive-days: '30' log-output: true issue-comment: > This issue has been automatically locked since there @@ -46,13 +47,21 @@ jobs: This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. + discussion-comment: > + This discussion has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new discussion for related concerns. close-answered-discussions: name: 'Close Answered Discussions' runs-on: ubuntu-latest steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | + function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); + } + const query = `query($owner:String!, $name:String!) { repository(owner:$owner, name:$name){ discussions(first:100, answered:true, states:[OPEN]) { @@ -96,4 +105,5 @@ jobs: } await github.graphql(closeDiscussionMutation, closeVariables) + await sleep(1000) } diff --git a/README.md b/README.md index 6573006f7..d31b8bf1b 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,11 @@ [](https://demo.paperless-ngx.com)
-
-
+
+