|
1 | 1 | name: Issue Notifications |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: # Manual trigger for testing |
| 4 | + workflow_dispatch: |
5 | 5 | issues: |
6 | 6 | types: [opened, edited] |
7 | 7 | issue_comment: |
8 | 8 | types: [created] |
9 | 9 | schedule: |
10 | | - - cron: "0 * * * *" # Every hour |
| 10 | + - cron: "0 * * * *" |
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | notify: |
14 | | - runs-on: ubuntu-latest |
15 | | - steps: |
16 | | - - name: Issue Notification Action |
17 | | - uses: joshdholtz/github-action-issue-ack@v15 |
18 | | - env: |
19 | | - GITHUB_TOKEN: ${{ github.token }} |
20 | | - with: |
21 | | - slack_webhook_url: ${{ secrets.ACK_SLACK_WEBHOOK_URL }} |
22 | | - |
23 | | - # Keywords to raise alert |
24 | | - title_keywords: ${{ secrets.ACK_ALERT_KEYWORDS }} |
25 | | - |
26 | | - # Excluded labels to silence notifications |
27 | | - excluded_labels: "acknowledged" |
28 | | - |
29 | | - # Reaction and comment thresholds to raise alert |
30 | | - reaction_threshold: ${{ secrets.ACK_REACTION_THRESHOLD }} |
31 | | - comment_threshold: ${{ secrets.ACK_COMMENT_THRESHOLD }} |
32 | | - |
33 | | - # Batch checking configuration |
34 | | - check_all_open_issues: "true" |
35 | | - max_issues_to_check: "100" |
36 | | - issue_state: "open" |
37 | | - |
38 | | - # Custom message for testing |
39 | | - message_template: | |
40 | | - *{title}* |
41 | | - Created: {created_ago} |
42 | | - Reactions: {reactions} | Comments: {comments} |
43 | | - {url} |
44 | | -
|
45 | | - # Custom prefixes for testing |
46 | | - new_issue_prefix: "🚨 New issue created on *RevenueCat/purchases-ios*!" |
47 | | - threshold_prefix: "📈 High-engagement issue on *RevenueCat/purchases-ios*!" |
48 | | - |
49 | | - # Enable both notification types |
50 | | - notify_on_create: "true" |
51 | | - notify_on_threshold: "true" |
| 14 | + uses: revenuecat/sdk-github-workflows/.github/workflows/issue-notifications.yml@v1 |
| 15 | + secrets: |
| 16 | + ACK_SLACK_WEBHOOK_URL: ${{ secrets.ACK_SLACK_WEBHOOK_URL }} |
| 17 | + ACK_ALERT_KEYWORDS: ${{ secrets.ACK_ALERT_KEYWORDS }} |
| 18 | + ACK_REACTION_THRESHOLD: ${{ secrets.ACK_REACTION_THRESHOLD }} |
| 19 | + ACK_COMMENT_THRESHOLD: ${{ secrets.ACK_COMMENT_THRESHOLD }} |
0 commit comments