File tree Expand file tree Collapse file tree 3 files changed +89
-0
lines changed Expand file tree Collapse file tree 3 files changed +89
-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 : Approve and auto-squash-merge dependabot 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 : dotnet-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
+ - isActivitySender :
37
+ user : dotnet-policy-service[bot]
38
+ then :
39
+ - enableAutoMerge :
40
+ mergeMethod : Merge
41
+
42
+ - description : Don't auto-merge PRs with 'auto-merge' label removed
43
+ if :
44
+ - payloadType : Pull_Request
45
+ - labelRemoved :
46
+ label : ' :octocat: auto-merge'
47
+ then :
48
+ - 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
+ where :
6
+ configuration :
7
+ resourceManagementConfiguration :
8
+ eventResponderTasks :
9
+ - description : Label publish PRs from the dotnet-policy-service bot
10
+ triggerOnOwnActions : true
11
+ if :
12
+ - payloadType : Pull_Request
13
+ - isAction :
14
+ action : Opened
15
+ - isActivitySender :
16
+ user : dotnet-policy-service[bot]
17
+ - titleContains :
18
+ pattern : Merge main into live
19
+ isRegex : False
20
+ then :
21
+ - addLabel :
22
+ label : " :octocat: auto-merge"
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 live branch (scheduled publish)
10
+ frequencies :
11
+ - hourly :
12
+ hour : 3
13
+ filters : []
14
+ actions :
15
+ - createPullRequest :
16
+ head : main
17
+ base : live
18
+ title : Merge main into live
19
+ body : Please don't squash-merge this PR.
You can’t perform that action at this time.
0 commit comments