From efeb37255afd9b00e4a47c1186290d29e6468e8b Mon Sep 17 00:00:00 2001 From: ikenxuan <2066855608@qq.com> Date: Tue, 27 Aug 2024 18:14:55 +0800 Subject: [PATCH] new issue greeting workflow --- .github/workflows/issue_geetings.yml | 27 ++++++++++++++++++++++++++ .github/workflows/issue_similarity.yml | 20 +++++++++++++++++++ .github/workflows/issue_welcome.yml | 17 ++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/workflows/issue_geetings.yml create mode 100644 .github/workflows/issue_similarity.yml create mode 100644 .github/workflows/issue_welcome.yml diff --git a/.github/workflows/issue_geetings.yml b/.github/workflows/issue_geetings.yml new file mode 100644 index 0000000..d7716ed --- /dev/null +++ b/.github/workflows/issue_geetings.yml @@ -0,0 +1,27 @@ +on: + issues: + types: [labeled] + +jobs: + create-comment: + runs-on: ubuntu-latest + steps: + - name: Create comment for enhancement + if: github.event.label.name == 'enhancement' + uses: actions-cool/issues-helper@v3 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + body: | + 你好 @${{ github.event.issue.user.login }},我们已经记录了你的新功能提议。如果你有任何具体的实现想法或设计草图,欢迎随时分享给我们。 + emoji: 'eyes' + + - name: Create comment for bug + if: github.event.label.name == 'bug' + uses: actions-cool/issues-helper@v3 + with: + actions: 'create-comment' + token: ${{ secrets.GITHUB_TOKEN }} + body: | + 你好 @${{ github.event.issue.user.login }},看来我们的代码不小心打了个盹儿。别担心,我们已经唤醒了开发团队,他们正快马加鞭地赶来修复!🔨🐞 + emoji: 'eyes' \ No newline at end of file diff --git a/.github/workflows/issue_similarity.yml b/.github/workflows/issue_similarity.yml new file mode 100644 index 0000000..33b8fa8 --- /dev/null +++ b/.github/workflows/issue_similarity.yml @@ -0,0 +1,20 @@ +# 问题相似性分析 +name: Issues Similarity Analysis + +on: + issues: + types: [opened, edited] + +jobs: + similarity-analysis: + runs-on: ubuntu-latest + steps: + - name: analysis + uses: actions-cool/issues-similarity-analysis@v1 + with: + filter-threshold: 0.5 + comment-title: '### 似乎有相似的问题' + comment-body: '${index}. ${similarity} #${number}' + show-footer: false + show-mentioned: true + since-days: 730 \ No newline at end of file diff --git a/.github/workflows/issue_welcome.yml b/.github/workflows/issue_welcome.yml new file mode 100644 index 0000000..eb6a492 --- /dev/null +++ b/.github/workflows/issue_welcome.yml @@ -0,0 +1,17 @@ +name: Issue Welcome + +on: + issues: + types: [opened] + +jobs: + issue-welcome: + runs-on: ubuntu-latest + steps: + - name: welcome + uses: actions-cool/issues-helper@v3 + with: + actions: 'welcome' + token: ${{ secrets.GITHUB_TOKEN }} + body: 你好 @${{ github.event.issue.user.login }},我们注意到你是一次创建问题,感谢你的加入!我们非常期待你的想法和贡献。🌟 + issue-emoji: 'eyes' \ No newline at end of file