diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml new file mode 100644 index 00000000000..f068fad501b --- /dev/null +++ b/.github/policies/close-issues.yml @@ -0,0 +1,14 @@ +name: Close issues +description: Close issues based on label. +resource: repository +where: +configuration: + resourceManagementConfiguration: + eventResponderTasks: + - description: Close issues labeled 'code-of-conduct' + if: + - payloadType: Issues + - hasLabel: + label: code-of-conduct + then: + - closeIssue