-
Notifications
You must be signed in to change notification settings - Fork 636
46 lines (40 loc) · 1.46 KB
/
issue_welcome.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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: hi @${{ github.event.issue.user.login }}, welcome!
labels: 'good first issue'
issue-emoji: '+1, -1, eyes'
comment:
runs-on: ubuntu-latest
steps:
- name: check-star
uses: gacts/is-stargazer@v1
id: check-star
- name: Add need star labels
if: steps.check-star.outputs.is-stargazer != 'true'
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: '🌟 need star'
- name: Create comment
if: steps.check-star.outputs.is-stargazer != 'true'
uses: actions-cool/issues-helper@v3
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hi @${{ github.event.issue.user.login }}, Please star this repo if you find it useful! Thanks :star:!
你好 @${{ github.event.issue.user.login }}。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!