Skip to content

Commit bbfa036

Browse files
authored
Merge pull request #35 from FidalMathew/34
2 parents 2f296c5 + 3e2cdaf commit bbfa036

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/newcomers-alert.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Newcomers Alert
2+
on:
3+
issues:
4+
types: [labeled]
5+
jobs:
6+
good-first-issue-notify:
7+
if: github.event.label.name == 'good first issue' || github.event.label.name == 'first-timers-only'
8+
name: Notify Slack for new good-first-issue
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Notify slack
12+
env:
13+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
14+
uses: pullreminders/slack-action@master
15+
with:
16+
args: '{\"channel\":\"C019426UBNY\",\"text\":\"A good first issue label was just added to ${{github.event.issue.html_url}}.\"}'

.github/workflows/slack.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ jobs:
55
name: Notify Slack on star
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Get current star count
9-
run: |
10-
echo "STARS=$(curl --silent 'https://api.github.com/repos/layer5io/meshery-smp-performance-action' -H 'Accept: application/vnd.github.preview' | jq '.stargazers_count')" >> $GITHUB_ENV
11-
- name: Notify slack
12-
env:
13-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
14-
uses: pullreminders/slack-action@master
15-
with:
16-
args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred meshery-smp-performance-action! (https://github.com/layer5io/meshery-smp-performance-action/stargazers) Total ⭐️: ${{env.STARS}}\"}'
17-
8+
- name: Get current star count
9+
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
12+
env:
13+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
14+
uses: pullreminders/slack-action@master
15+
with:
16+
args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"${{ github.actor }} just starred ${{github.repository}}! (https://github.com/${{github.repository}}/stargazers) Total ⭐️: ${{env.STARS}}\"}'

0 commit comments

Comments
 (0)