Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:construction_worker: Automatically unlock reopened issues

Daniel699181642094
diff --git a/.github/workflows/unlock.yml b/.github/workflows/unlock.yml
new file mode 100644
index 0000000000..872ea4c7d1
--- /dev/null
+++ b/.github/workflows/unlock.yml
@@ -0,0 +1,19 @@
+name: Unlock reopened issues
+
+on:
+ issues:
+ types: [reopened]
+
+jobs:
+ unlock:
+ if: ${{ github.event.issue.locked }}
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ steps:
+ - name: Unlock conversation
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ ISSUE_NUMBER: ${{ github.event.issue.number }}
+ run: gh api --method DELETE "repos/${GH_REPO}/issues/${ISSUE_NUMBER}/lock"