File tree Expand file tree Collapse file tree 6 files changed +218
-0
lines changed
Expand file tree Collapse file tree 6 files changed +218
-0
lines changed Original file line number Diff line number Diff line change 1+ id :
2+ name : GitOps.PullRequestIssueManagement
3+ description : GitOps.PullRequestIssueManagement primitive
4+ owner :
5+ resource : repository
6+ disabled : false
7+ where :
8+ configuration :
9+ resourceManagementConfiguration :
10+ eventResponderTasks :
11+ - description : Label community PRs
12+ if :
13+ - payloadType : Pull_Request
14+ - isAction :
15+ action : Opened
16+ - and :
17+ - not :
18+ activitySenderHasPermission :
19+ permission : Admin
20+ - not :
21+ activitySenderHasPermission :
22+ permission : Write
23+ - not :
24+ isActivitySender :
25+ user : github-actions[bot]
26+ - not :
27+ isActivitySender :
28+ user : github-actions
29+ - not :
30+ isActivitySender :
31+ user : azure-sdk
32+ - not :
33+ isActivitySender :
34+ user : dependabot
35+ - not :
36+ isActivitySender :
37+ user : microsoft-github-policy-service[bot]
38+ then :
39+ - addLabel :
40+ label : community-contribution
41+
42+ - description : Label ref docs sync PRs from the microsoft-github-policy-service bot
43+ triggerOnOwnActions : true
44+ if :
45+ - payloadType : Pull_Request
46+ - isAction :
47+ action : Opened
48+ - isActivitySender :
49+ user : microsoft-github-policy-service[bot]
50+ - titleContains :
51+ pattern : Merge smoke-test into main
52+ isRegex : False
53+ then :
54+ - addLabel :
55+ label : " :octocat: auto-merge"
56+
57+ - description : Label prod sync PRs from the microsoft-github-policy-service bot
58+ triggerOnOwnActions : true
59+ if :
60+ - payloadType : Pull_Request
61+ - isAction :
62+ action : Opened
63+ - isActivitySender :
64+ user : microsoft-github-policy-service[bot]
65+ - titleContains :
66+ pattern : Merge main into live
67+ isRegex : False
68+ then :
69+ - addLabel :
70+ label : " :octocat: auto-merge"
71+
72+ - description : Label PRs from dependabot/dependabot[bot]
73+ if :
74+ - payloadType : Pull_Request
75+ - or :
76+ - isActivitySender :
77+ user : dependabot
78+ - isActivitySender :
79+ user : dependabot[bot]
80+ then :
81+ - addLabel :
82+ label : " :octocat: auto-merge"
Original file line number Diff line number Diff line change 1+ id :
2+ name : GitOps.PullRequestIssueManagement
3+ description : GitOps.PullRequestIssueManagement primitive
4+ owner :
5+ resource : repository
6+ disabled : false
7+ where :
8+ configuration :
9+ resourceManagementConfiguration :
10+ eventResponderTasks :
11+ - description : Approve and auto-squash-merge bot PRs to main labeled 'auto-merge'
12+ triggerOnOwnActions : true
13+ if :
14+ - payloadType : Pull_Request
15+ - labelAdded :
16+ label : ' :octocat: auto-merge'
17+ - targetsBranch :
18+ branch : main
19+ - or :
20+ - isActivitySender :
21+ user : microsoft-github-policy-service[bot]
22+ then :
23+ - enableAutoMerge :
24+ mergeMethod : Squash
25+ - approvePullRequest :
26+ comment : " Approved; this PR will merge when all status checks pass."
27+
28+ - description : Auto-merge policy service bot PRs to live labeled 'auto-merge'
29+ triggerOnOwnActions : true
30+ if :
31+ - payloadType : Pull_Request
32+ - labelAdded :
33+ label : ' :octocat: auto-merge'
34+ - targetsBranch :
35+ branch : live
36+ - or :
37+ - isActivitySender :
38+ user : microsoft-github-policy-service[bot]
39+ then :
40+ - enableAutoMerge :
41+ mergeMethod : Merge
42+ - approvePullRequest :
43+ comment : " Approved; this PR will merge when all status checks pass."
44+
45+ - description : Don't auto-merge PRs with 'auto-merge' label removed
46+ if :
47+ - payloadType : Pull_Request
48+ - labelRemoved :
49+ label : ' :octocat: auto-merge'
50+ then :
51+ - disableAutoMerge
Original file line number Diff line number Diff line change 1+ id :
2+ name : GitOps.PullRequestIssueManagement
3+ description : GitOps.PullRequestIssueManagement primitive
4+ owner :
5+ resource : repository
6+ disabled : false
7+ where :
8+ configuration :
9+ resourceManagementConfiguration :
10+ eventResponderTasks :
11+ - description : Add untriaged label to new issues
12+ if :
13+ - payloadType : Issues
14+ - isAction :
15+ action : Opened
16+ then :
17+ - addLabel :
18+ label : untriaged
Original file line number Diff line number Diff line change 1+ name : GitOps.PullRequestIssueManagement - Scheduled PRs
2+ description : Creates pull requests on a schedule
3+ resource : repository
4+
5+ where :
6+ configuration :
7+ resourceManagementConfiguration :
8+ scheduledSearches :
9+ - description : Push to main (scheduled sync)
10+ frequencies :
11+ - daily :
12+ time : 1:00
13+ - daily :
14+ time : 9:00
15+ - daily :
16+ time : 17:00
17+ filters : []
18+ actions :
19+ - createPullRequest :
20+ head : main
21+ base : live
22+ title : Merge main into live
23+ body : Please don't squash-merge this PR.
Original file line number Diff line number Diff line change 1+ name : GitOps.PullRequestIssueManagement - Scheduled PRs
2+ description : Creates pull requests on a schedule
3+ resource : repository
4+
5+ where :
6+ configuration :
7+ resourceManagementConfiguration :
8+ scheduledSearches :
9+ - description : Push to main (scheduled sync)
10+ frequencies :
11+ - daily :
12+ time : 1:00
13+ - daily :
14+ time : 9:00
15+ - daily :
16+ time : 17:00
17+ filters : []
18+ actions :
19+ - createPullRequest :
20+ head : smoke-test
21+ base : main
22+ title : Merge smoke-test into main
23+ body : Please don't squash-merge this PR.
Original file line number Diff line number Diff line change 1+ name : Stale issues
2+ description : Close needs-more-info issues that haven't had a response in 14 days
3+ resource : repository
4+ where :
5+ configuration :
6+ resourceManagementConfiguration :
7+ scheduledSearches :
8+ - frequencies :
9+ - daily :
10+ time : 12:00
11+ filters :
12+ - isIssue
13+ - isOpen
14+ - hasLabel :
15+ label : needs-more-info
16+ - noActivitySince :
17+ days : 14
18+ actions :
19+ - addReply :
20+ reply : This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further.
21+ - closeIssue
You can’t perform that action at this time.
0 commit comments