Skip to content

Commit

Permalink
new issue greeting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ikenxuan committed Aug 27, 2024
1 parent 0932cff commit efeb372
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/issue_geetings.yml
Original file line number Diff line number Diff line change
@@ -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'
20 changes: 20 additions & 0 deletions .github/workflows/issue_similarity.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .github/workflows/issue_welcome.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit efeb372

Please sign in to comment.