Skip to content

Commit 19a38b5

Browse files
chore: refactor PR stats workflow to use environment variables
1 parent 76a3a0c commit 19a38b5

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/pr-stats.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Request Stats
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
7+
on:
8+
schedule:
9+
# Run every workday (Monday-Friday) at 9am UTC
10+
- cron: ${{ vars.PRUNA_WEBHOOK_CRON }}
11+
12+
jobs:
13+
stats:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Run pull request stats
17+
uses: flowwer-dev/pull-request-stats@main
18+
with:
19+
slackWebhook: ${{ secrets.PRUNA_WEBHOOK_URL }}
20+
slackChannel: ${{ vars.PRUNA_SLACK_CHANNEL }}
21+
period: ${{ vars.PRUNA_WEBHOOK_PERIOD }}
22+
charts: true
23+
stats: ${{ vars.PRUNA_WEBHOOK_STATS }}
24+
sortBy: ${{ vars.PRUNA_WEBHOOK_SORT_BY }}

0 commit comments

Comments
 (0)