-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathScheduledSearch.MarkNoRecentActivity.yml
More file actions
72 lines (68 loc) · 2.5 KB
/
ScheduledSearch.MarkNoRecentActivity.yml
File metadata and controls
72 lines (68 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
id: ScheduledSearch.MarkNoRecentActivity
name: GitOps.PullRequestIssueManagement
description: Mark issues and pull requests with no recent activity
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description: >-
Search for PR where -
* Pull Request is Open
* Pull request does not have the label "State: No Recent Activity"
* Pull request has the label "Needs: Author Feedback"
* Has not had activity in the last 7 days
Then -
* Add "State: No Recent Activity" label
* Warn user about pending closure
frequencies:
- hourly:
hour: 6
filters:
- isPullRequest
- isOpen
- isNotLabeledWith:
label: "State: No Recent Activity"
- hasLabel:
label: "Needs: Author Feedback"
- noActivitySince:
days: 7
actions:
- addLabel:
label: "State: No Recent Activity"
- addReply:
reply: >-
Hello ${issueAuthor},
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.
- description: >-
Search for Issues where -
* Issue is Open
* Issue has the label "Needs: Author Feedback"
* Issue does not have the label "State: No Recent Activity"
* Has not had activity in the last 7 days
Then -
* Add "State: No Recent Activity" label
* Warn user about pending closure
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: "Needs: Author Feedback"
- isNotLabeledWith:
label: "State: No Recent Activity"
- noActivitySince:
days: 7
actions:
- addLabel:
label: "State: No Recent Activity"
- addReply:
reply: >-
Hello ${issueAuthor},
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **7 days**. It will be closed if no further activity occurs **within 7 days of this comment**.
onFailure:
onSuccess: