File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : Slack Notify
2
- on :
2
+
3
+ on :
3
4
watch :
4
5
types : [started]
6
+ issues :
7
+ types : [labeled]
8
+
5
9
jobs :
6
10
star-notify :
7
11
if : github.event_name == 'watch'
8
12
name : Notify Slack on star
9
13
runs-on : ubuntu-latest
10
14
steps :
11
- - name : Get current star count
12
- run : |
13
- echo "STARS=$(curl --silent 'https://api.github.com/repos/${{github.repository}}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
14
- - name : Notify slack
15
- env :
16
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
17
- uses : pullreminders/slack-action@master
18
- with :
19
- args : ' {\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{github.repository}}! (https://github.com/${{github.repository}}/stargazers) Total ⭐️: ${{env.STARS}}\"}'
15
+ - name : Get current star count
16
+ run : |
17
+ echo "STARS=$(curl --silent 'https://api.github.com/repos/${{ github.repository }}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
18
+ - name : Notify Slack
19
+ env :
20
+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
21
+ uses : pullreminders/slack-action@master
22
+ with :
23
+ args : ' {\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{ github.repository }}! (https://github.com/${{ github.repository }}/stargazers) Total ⭐️: ${{ env.STARS }}\"}'
24
+
20
25
good-first-issue-notify :
21
- if : github.event_name == 'issues' && github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only'
26
+ if : github.event_name == 'issues' && ( github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only')
22
27
name : Notify Slack for new good-first-issue
23
28
runs-on : ubuntu-latest
24
29
steps :
25
- - name : Notify slack
30
+ - name : Notify Slack
26
31
env :
27
32
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
28
33
uses : pullreminders/slack-action@master
29
34
with :
30
- args : ' {\"channel\":\"C019426UBNY\",\"text\":\"A good first issue label was just added to ${{github.event.issue.html_url}}.\"}'
35
+ args : ' {\"channel\":\"C019426UBNY\",\"type\":\"section\",\"text\":\":new: Good first issue up for grabs: ${{ github.event.issue.title }} - ${{ github.event.issue.html_url }} \"}'
36
+
You can’t perform that action at this time.
0 commit comments