freemium-survey-components 2.0.477 → 2.0.479
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/stale.yml +112 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/types/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
name: Stale PR Management
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 * * *' # Run daily at midnight UTC
|
|
6
|
+
|
|
7
|
+
workflow_dispatch: # Allow manual trigger
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
pull-requests: write
|
|
11
|
+
issues: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
stale:
|
|
15
|
+
runs-on: ['self-hosted', 'Linux']
|
|
16
|
+
name: Mark and Close Stale PRs
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
|
|
20
|
+
with:
|
|
21
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
22
|
+
|
|
23
|
+
# PR Configuration
|
|
24
|
+
days-before-stale: 2
|
|
25
|
+
days-before-close: 2
|
|
26
|
+
|
|
27
|
+
# Do not handle issues
|
|
28
|
+
days-before-issue-stale: -1
|
|
29
|
+
days-before-issue-close: -1
|
|
30
|
+
|
|
31
|
+
# Stale PR message (warning)
|
|
32
|
+
stale-pr-message: |
|
|
33
|
+
## ⏰ Stale PR Warning
|
|
34
|
+
|
|
35
|
+
This pull request has been **inactive for 2 days** with no commits, comments, or reviews.
|
|
36
|
+
|
|
37
|
+
### What happens next?
|
|
38
|
+
|
|
39
|
+
- This PR will be automatically closed in **2 days** if no activity occurs
|
|
40
|
+
- To prevent closure, you can:
|
|
41
|
+
- Push new commits
|
|
42
|
+
- Add a comment with updates or status
|
|
43
|
+
- Remove the `stale` label
|
|
44
|
+
- Request review from team members
|
|
45
|
+
|
|
46
|
+
### Why does this matter?
|
|
47
|
+
|
|
48
|
+
- Keeps our PR list clean and manageable
|
|
49
|
+
- Helps identify abandoned or forgotten work
|
|
50
|
+
- Encourages timely reviews and merges
|
|
51
|
+
|
|
52
|
+
### Need more time?
|
|
53
|
+
|
|
54
|
+
Simply comment on this PR to remove the stale label, or:
|
|
55
|
+
- Add `work-in-progress` label if still developing
|
|
56
|
+
- Add `blocked` label if waiting on external dependencies
|
|
57
|
+
- Add `on-hold` label if intentionally paused
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
💡 **Tip:** Keep your PRs active by:
|
|
62
|
+
- Requesting reviews when ready
|
|
63
|
+
- Responding to feedback promptly
|
|
64
|
+
- Rebasing on latest main/dev branch
|
|
65
|
+
- Adding status updates if blocked
|
|
66
|
+
|
|
67
|
+
# Close message (final notice)
|
|
68
|
+
close-pr-message: |
|
|
69
|
+
## 🔒 PR Automatically Closed
|
|
70
|
+
|
|
71
|
+
This pull request has been closed due to **4 days of inactivity** (2 days stale + 2 days grace period).
|
|
72
|
+
|
|
73
|
+
### What you can do:
|
|
74
|
+
|
|
75
|
+
✅ **Reopen this PR** if you want to continue working on it
|
|
76
|
+
✅ **Create a new PR** with updated changes
|
|
77
|
+
✅ **Link related issues** to track the work
|
|
78
|
+
|
|
79
|
+
### Why was this closed?
|
|
80
|
+
|
|
81
|
+
- Helps maintain a clean, manageable PR list
|
|
82
|
+
- Prevents outdated PRs from accumulating
|
|
83
|
+
- Encourages active development workflow
|
|
84
|
+
|
|
85
|
+
### Need help?
|
|
86
|
+
|
|
87
|
+
If this PR was closed in error or you need assistance:
|
|
88
|
+
- Comment mentioning a team member
|
|
89
|
+
- Reopen and add context about delays
|
|
90
|
+
- Reach out on team channels
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
# Label configuration
|
|
95
|
+
stale-pr-label: 'stale'
|
|
96
|
+
exempt-pr-labels: 'work-in-progress,blocked,on-hold,keep-open,dependencies'
|
|
97
|
+
exempt-draft-pr: true
|
|
98
|
+
|
|
99
|
+
# Activity that removes stale label
|
|
100
|
+
remove-stale-when-updated: true
|
|
101
|
+
|
|
102
|
+
# Operations limit (prevent API rate limiting)
|
|
103
|
+
operations-per-run: 100
|
|
104
|
+
|
|
105
|
+
# Sort order (process oldest first)
|
|
106
|
+
ascending: true
|
|
107
|
+
|
|
108
|
+
# Delete branch on close (optional - uncomment if desired)
|
|
109
|
+
# delete-branch: true
|
|
110
|
+
|
|
111
|
+
# Additional configuration
|
|
112
|
+
enable-statistics: true
|