This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Slack Notify on Star
2
- on : watch
1
+ name : Slack Notify
2
+
3
+ on :
4
+ watch :
5
+ types : [started]
6
+ issues :
7
+ types : [labeled]
8
+
3
9
jobs :
4
10
star-notify :
11
+ if : github.event_name == 'watch'
5
12
name : Notify Slack on star
6
13
runs-on : ubuntu-latest
7
14
steps :
8
15
- name : Get current star count
9
16
run : |
10
- echo "STARS=$(curl --silent 'https://api.github.com/repos/${{github.repository}}' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
11
- - name : Notify slack
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
12
19
env :
13
20
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
14
21
uses : pullreminders/slack-action@master
15
22
with :
16
- args : ' {\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{github.repository}}! (https://github.com/${{github.repository}}/stargazers) Total ⭐️: ${{env.STARS}}\"}'
23
+ args : ' {\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{ github.repository }}! (https://github.com/${{ github.repository }}/stargazers) Total ⭐️: ${{ env.STARS }}\"}'
24
+
25
+ good-first-issue-notify :
26
+ if : github.event_name == 'issues' && (github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only')
27
+ name : Notify Slack for new good-first-issue
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - name : Notify Slack
31
+ env :
32
+ SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
33
+ uses : pullreminders/slack-action@master
34
+ with :
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