Skip to content

Commit 99324a2

Browse files
authored
Add shared ack workflow (#5340)
* Add shared ack workflow * Update issue-notifications.yml
1 parent 7acbb5a commit 99324a2

File tree

1 file changed

+8
-40
lines changed

1 file changed

+8
-40
lines changed
Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,19 @@
11
name: Issue Notifications
22

33
on:
4-
workflow_dispatch: # Manual trigger for testing
4+
workflow_dispatch:
55
issues:
66
types: [opened, edited]
77
issue_comment:
88
types: [created]
99
schedule:
10-
- cron: "0 * * * *" # Every hour
10+
- cron: "0 * * * *"
1111

1212
jobs:
1313
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

Comments
 (0)