├── .github └── workflows │ └── notification.yaml ├── README.md └── giscus.json /.github/workflows/notification.yaml: -------------------------------------------------------------------------------- 1 | name: Discussion Notification 2 | 3 | on: 4 | discussion_comment: 5 | types: ["created"] 6 | 7 | jobs: 8 | notification: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: "Get the Markdown message" 12 | uses: ouuan/notification-action@master 13 | id: markdown-message 14 | with: 15 | format: markdown 16 | 17 | - name: "Output the Markdown message" 18 | env: 19 | MESSAGE: ${{ steps.markdown-message.outputs.message }} 20 | run: echo "$MESSAGE" 21 | 22 | - name: "Send Telegram Notification on Comment" 23 | uses: appleboy/telegram-action@master 24 | with: 25 | to: ${{ secrets.DISCUSSION_TELEGRAM_TO }} 26 | token: ${{ secrets.DISCUSSION_TELEGRAM_TOKEN }} 27 | message: ${{ steps.markdown-message.outputs.message }} 28 | format: markdown 29 | disable_web_page_preview: true 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # gitment 2 | 3 | OI Wiki 评论区仓库 4 | -------------------------------------------------------------------------------- /giscus.json: -------------------------------------------------------------------------------- 1 | { 2 | "originsRegex": ["\\boi[.-]?wiki\\b"] 3 | } 4 | --------------------------------------------------------------------------------