File tree Expand file tree Collapse file tree 3 files changed +67
-26
lines changed Expand file tree Collapse file tree 3 files changed +67
-26
lines changed Original file line number Diff line number Diff line change 8
8
configuration :
9
9
resourceManagementConfiguration :
10
10
eventResponderTasks :
11
- - description : Approve and auto-squash-merge PRs to main labeled with 'auto-merge'
11
+ - description : Approve and auto-squash-merge bot PRs to main labeled 'auto-merge'
12
12
triggerOnOwnActions : true
13
13
if :
14
- - payloadType : Pull_Request
15
- - labelAdded :
16
- label : ' :octocat: auto-merge'
17
- - targetsBranch :
18
- branch : main
14
+ - payloadType : Pull_Request
15
+ - labelAdded :
16
+ label : ' :octocat: auto-merge'
17
+ - targetsBranch :
18
+ branch : main
19
+ - or :
20
+ - isActivitySender :
21
+ user : azure-sdk
22
+ - isActivitySender :
23
+ user : dependabot
24
+ - isActivitySender :
25
+ user : dependabot[bot]
19
26
then :
20
- - enableAutoMerge :
21
- mergeMethod : Squash
22
- - approvePullRequest :
23
- comment : " Approved; this PR will merge when all status checks pass."
27
+ - enableAutoMerge :
28
+ mergeMethod : Squash
29
+ - approvePullRequest :
30
+ comment : " Approved; this PR will merge when all status checks pass."
24
31
25
- - description : Auto-merge PRs to live labeled with 'auto-merge'
32
+ - description : Auto-merge policy service bot PRs to live labeled 'auto-merge'
26
33
triggerOnOwnActions : true
27
34
if :
28
- - payloadType : Pull_Request
29
- - labelAdded :
30
- label : ' :octocat: auto-merge'
31
- - targetsBranch :
32
- branch : live
35
+ - payloadType : Pull_Request
36
+ - labelAdded :
37
+ label : ' :octocat: auto-merge'
38
+ - targetsBranch :
39
+ branch : live
40
+ - isActivitySender :
41
+ user : dotnet-policy-service[bot]
33
42
then :
34
- - enableAutoMerge :
35
- mergeMethod : Merge
43
+ - enableAutoMerge :
44
+ mergeMethod : Merge
36
45
37
46
- description : Don't auto-merge PRs with 'auto-merge' label removed
38
47
if :
39
- - payloadType : Pull_Request
40
- - labelRemoved :
41
- label : ' :octocat: auto-merge'
48
+ - payloadType : Pull_Request
49
+ - labelRemoved :
50
+ label : ' :octocat: auto-merge'
42
51
then :
43
- - disableAutoMerge
52
+ - disableAutoMerge
44
53
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ configuration:
64
64
if :
65
65
- payloadType : Pull_Request
66
66
- or :
67
- - isActivitySender :
68
- user : dependabot
69
- - isActivitySender :
70
- user : dependabot[bot]
67
+ - isActivitySender :
68
+ user : dependabot
69
+ - isActivitySender :
70
+ user : dependabot[bot]
71
71
then :
72
72
- addLabel :
73
73
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 : Flag PRs that change .github folder files.
12
+ triggerOnOwnActions : true
13
+ if :
14
+ - payloadType : Pull_Request
15
+ - isAction :
16
+ action : Opened
17
+ - filesMatchPattern :
18
+ pattern : .github/*
19
+ matchAny : true
20
+ excludedFiles :
21
+ - .github/CODEOWNERS
22
+ - not :
23
+ or :
24
+ - activitySenderHasPermission :
25
+ permission : admin
26
+ - activitySenderHasPermission :
27
+ permission : write
28
+ then :
29
+ - addReply :
30
+ reply : >-
31
+ @${issueAuthor} - This PR edits a file in the .github folder, which is not allowed. CC @dotnet/docs.
32
+ - closePullRequest
You can’t perform that action at this time.
0 commit comments