We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2809a7a + be2d07c commit 50860a1Copy full SHA for 50860a1
.github/policies/disallow-edits.yml
@@ -0,0 +1,21 @@
1
+name: GitOps.PullRequestIssueManagement
2
+description: GitOps.PullRequestIssueManagement primitive
3
+resource: repository
4
+
5
+configuration:
6
+ resourceManagementConfiguration:
7
+ eventResponderTasks:
8
+ - description: Close PRs that introduce an index file into the repository.
9
+ if:
10
+ - payloadType: Pull_Request
11
+ - isAction:
12
+ action: Opened
13
+ - or:
14
+ - filesMatchPattern:
15
+ pattern: articles/index.yml
16
+ then:
17
+ - addReply:
18
+ reply: >-
19
+ @${issueAuthor} - You tried to add an index file to this repository; this is not permitted so your pull request will be closed automatically.
20
+ - closePullRequest
21
0 commit comments