|
| 1 | +name: GitOps.PullRequestIssueManagement |
| 2 | +description: GitOps.PullRequestIssueManagement primitive |
| 3 | +resource: repository |
| 4 | + |
| 5 | +configuration: |
| 6 | + resourceManagementConfiguration: |
| 7 | + eventResponderTasks: |
| 8 | + - description: Close PRs that contain content for services that have been migrated out of the azure-docs-pr repository. |
| 9 | + if: |
| 10 | + - payloadType: Pull_Request |
| 11 | + - isAction: |
| 12 | + action: Opened |
| 13 | + - or: |
| 14 | + - "includesModifiedFiles": { |
| 15 | + files: [ |
| 16 | + "/articles/aks*", |
| 17 | + "/articles/defender-for-cloud*", |
| 18 | + "/articles/attestation*", |
| 19 | + "/articles/confidential-ledger*", |
| 20 | + "/articles/dedicated-hsm*", |
| 21 | + "/articles/key-vault*", |
| 22 | + "/articles/payment-hsm*", |
| 23 | + "/articles/postgresql*", |
| 24 | + "/articles/cosmos-db*", |
| 25 | + "/articles/dms*", |
| 26 | + "/articles/mariadb*", |
| 27 | + "/articles/mysql*", |
| 28 | + "/articles/managed-instance-apache-cassandra*", |
| 29 | + "/articles/virtual-machines*", |
| 30 | + "/articles/virtual-machines-scale-sets*", |
| 31 | + "/articles/container-instances*", |
| 32 | + "/articles/service-fabric*", |
| 33 | + "/articles/machine-learning*", |
| 34 | + "/articles/ai-studio*", |
| 35 | + "/articles/ai-services*", |
| 36 | + "/articles/genomics*", |
| 37 | + "/articles/open-datasets*", |
| 38 | + "/articles/search*", |
| 39 | + "/articles/azure-monitor*", |
| 40 | + "/articles/advisor*", |
| 41 | + "/articles/chaos-studio*", |
| 42 | + "/articles/service-health*", |
| 43 | + "/articles/azure-arc*", |
| 44 | + "/articles/azure-linux*", |
| 45 | + "/articles/azure-portal*", |
| 46 | + "/articles/copilot*", |
| 47 | + "/articles/lighthouse*", |
| 48 | + "/articles/quotas*", |
| 49 | + "/articles/container-registry*", |
| 50 | + "/articles/kubernetes-fleet*" |
| 51 | + |
| 52 | + then: |
| 53 | + - addReply: |
| 54 | + reply: >- |
| 55 | + @${issueAuthor} - You are adding content to a folder path that has been removed from this repository. |
| 56 | + - if: |
| 57 | + - or: |
| 58 | + - activitySenderHasPermission: |
| 59 | + permission: None |
| 60 | + - activitySenderHasPermission: |
| 61 | + permission: Read |
| 62 | + - activitySenderHasPermission: |
| 63 | + permission: Write |
| 64 | + then: |
| 65 | + - closePullRequest |
0 commit comments