File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change 11name : Slack Notify
2- on :
2+
3+ on :
34 watch :
5+ types : [started]
46 issues :
5- types : [labeled]
7+ types : [labeled]
8+
69jobs :
710 star-notify :
811 if : github.event_name == 'watch'
912 name : Notify Slack on star
1013 runs-on : ubuntu-latest
1114 steps :
12- - name : Get current star count
13- run : |
14- echo "STARS=$(curl --silent 'https://api.github.com/repos/${{github.repository}}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
15- - name : Notify slack
16- env :
17- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
18- uses : pullreminders/slack-action@master
19- with :
20- 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+
2125 good-first-issue-notify :
22- 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')
2327 name : Notify Slack for new good-first-issue
2428 runs-on : ubuntu-latest
2529 steps :
26- - name : Notify slack
30+ - name : Notify Slack
2731 env :
2832 SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
2933 uses : pullreminders/slack-action@master
3034 with :
31- 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