A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: add sleep to close old discussions
shamoon66167aeb553e
diff --git a/.github/workflows/repo-maintenance.yml b/.github/workflows/repo-maintenance.ymlindex 68bbd1612..f7147ddca 100644--- a/.github/workflows/repo-maintenance.yml+++ b/.github/workflows/repo-maintenance.yml@@ -50,9 +50,13 @@ jobs:name: 'Close Answered Discussions'runs-on: ubuntu-lateststeps:- - uses: actions/github-script@v6+ - uses: actions/github-script@v7with: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 +100,5 @@ jobs:}await github.graphql(closeDiscussionMutation, closeVariables)+ await sleep(1000)}