From 459ed514b5901a2a21831aa09c10d66d5bf8ae03 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:51:50 -0800 Subject: [PATCH] automatically close code of conduct issues --- .github/policies/close-issues.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index fdcebf4cb0027..f28495ac7685f 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -19,3 +19,12 @@ configuration: - addReply: reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. - closeIssue + + eventResponderTasks: + - description: Close issues labeled 'code-of-conduct' + if: + - payloadType: Issues + - hasLabel: + label: code-of-conduct + then: + - closeIssue