File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : GitOps.PullRequestIssueManagement
2
+ description : GitOps.PullRequestIssueManagement primitive
3
+ resource : repository
4
+
5
+ configuration :
6
+ resourceManagementConfiguration :
7
+ eventResponderTasks :
8
+ - description : Auto-merge PRs to live labeled with auto-merge
9
+ triggerOnOwnActions : true
10
+ if :
11
+ - payloadType : Pull_Request
12
+ - labelAdded :
13
+ label : ' :octocat: auto-merge'
14
+ - targetsBranch :
15
+ branch : live
16
+ then :
17
+ - enableAutoMerge :
18
+ mergeMethod : Merge
19
+
20
+ - description : Don't auto-merge PRs with auto-merge label removed
21
+ if :
22
+ - payloadType : Pull_Request
23
+ - labelRemoved :
24
+ label : ' :octocat: auto-merge'
25
+ then :
26
+ - disableAutoMerge
Original file line number Diff line number Diff line change
1
+ name : GitOps.PullRequestIssueManagement
2
+ description : GitOps.PullRequestIssueManagement primitive
3
+ resource : repository
4
+
5
+ configuration :
6
+ resourceManagementConfiguration :
7
+ eventResponderTasks :
8
+ - description : Label publish PRs with auto-merge
9
+ triggerOnOwnActions : true
10
+ if :
11
+ - payloadType : Pull_Request
12
+ - isAction :
13
+ action : Opened
14
+ - isActivitySender :
15
+ user : dotnet-policy-service[bot]
16
+ - titleContains :
17
+ pattern : Merge main into live
18
+ isRegex : False
19
+ then :
20
+ - addLabel :
21
+ label : ' :octocat: auto-merge'
Original file line number Diff line number Diff line change
1
+ name : GitOps.PullRequestIssueManagement
2
+ description : Schedule a PR from main to live
3
+ resource : repository
4
+
5
+ configuration :
6
+ resourceManagementConfiguration :
7
+ scheduledSearches :
8
+ - description : Push to live branch (publish)
9
+ frequencies :
10
+ - hourly :
11
+ hour : 3
12
+ filters : []
13
+ actions :
14
+ - createPullRequest :
15
+ head : main
16
+ base : live
17
+ title : Merge main into live
18
+ body : Please don't squash-merge this PR.
You can’t perform that action at this time.
0 commit comments