From 47698d3b7181f188430ce428f72870fd8a2e414b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 5 Apr 2024 00:44:59 +0000 Subject: [PATCH] fix: grept apply --- .github/ISSUE_TEMPLATE/avm_module_issue.yml | 15 +- .../ISSUE_TEMPLATE/avm_question_feedback.yml | 32 ++ .github/ISSUE_TEMPLATE/config.yml | 5 + .github/policies/eventResponder.yml | 204 +++++++++++++ .github/policies/scheduledSearches.yml | 279 ++++++++++++++++++ 5 files changed, 523 insertions(+), 12 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/avm_question_feedback.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/policies/eventResponder.yml create mode 100644 .github/policies/scheduledSearches.yml diff --git a/.github/ISSUE_TEMPLATE/avm_module_issue.yml b/.github/ISSUE_TEMPLATE/avm_module_issue.yml index a243c94..8b05245 100644 --- a/.github/ISSUE_TEMPLATE/avm_module_issue.yml +++ b/.github/ISSUE_TEMPLATE/avm_module_issue.yml @@ -7,11 +7,9 @@ body: - type: markdown attributes: value: | - Thank you for submitting this AVM Module Issue! + Thank you for submitting this AVM Module Issue! To help us triage your issue, please provide the below details. - To help us triage your issue, please provide the below details. - - > **NOTE**: If you'd like to propose a new AVM module, please follow the process described in the [AVM repo](https://aka.ms/AVM/ModuleProposal). + > **NOTE**: If you'd like to propose a new AVM module, please file an [AVM Module Proposal](https://aka.ms/AVM/ModuleProposal). - type: checkboxes id: existing-checks attributes: @@ -20,20 +18,13 @@ body: options: - label: I have checked for previous/existing GitHub issues required: true - - type: checkboxes - id: module-specific-checks - attributes: - label: Module specific issue - description: By submitting this issue, you confirm that this issue is about this AVM module and not about the resource itself, or how to use Terraform. - options: - - label: I confirm that this issue is about this AVM module and not about the resource itself, or how to use Terraform. - required: true - type: dropdown id: issue-type attributes: label: Issue Type? description: How would you best describe this issue? Is this a... options: + - "" - "Feature Request" - "Bug" - "Security Bug" diff --git a/.github/ISSUE_TEMPLATE/avm_question_feedback.yml b/.github/ISSUE_TEMPLATE/avm_question_feedback.yml new file mode 100644 index 0000000..a93a8ac --- /dev/null +++ b/.github/ISSUE_TEMPLATE/avm_question_feedback.yml @@ -0,0 +1,32 @@ +name: AVM - General Question/Feedback ❔ +description: Just got a question or some general feedback? Let us know! +title: "[AVM Question/Feedback]: " +labels: + [ + "Language: Terraform :globe_with_meridians:", + "Type: Question/Feedback :raising_hand:", + "Needs: Triage :mag:", + ] +projects: ["Azure/538"] +body: + - type: markdown + attributes: + value: | + Thank you for your question/feedback! + + > **NOTE**: If your question/request is related to the AVM site/documentation, please file an issue in the [AVM repo](https://github.com/Azure/Azure-Verified-Modules/issues/new?assignees=&labels=Type%3A+Question%2FFeedback+%3Araising_hand%3A%2CNeeds%3A+Triage+%3Amag%3A&projects=&template=question_feedback.yml&title=%5BQuestion%2FFeedback%5D%3A+). + - type: checkboxes + id: existing-checks + attributes: + label: Check for previous/existing GitHub issues + description: By submitting this issue, you confirm that you have searched for previous/existing GitHub issues to avoid creating a duplicate. + options: + - label: I have checked for previous/existing GitHub issues + required: true + - type: textarea + id: question-feedback-text + attributes: + label: Description + description: Let us know your question or feedback here! + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..cbfd0a4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: true +contact_links: + - name: New AVM Module Proposal 📝 + url: https://aka.ms/AVM/ModuleProposal + about: Want a new AVM Module to exist? Let us know! \ No newline at end of file diff --git a/.github/policies/eventResponder.yml b/.github/policies/eventResponder.yml new file mode 100644 index 0000000..1d5ba40 --- /dev/null +++ b/.github/policies/eventResponder.yml @@ -0,0 +1,204 @@ +id: avmEventResponder +name: AVM Event Responder +description: AVM Event Responder +resource: repository +disabled: false + +configuration: + resourceManagementConfiguration: + eventResponderTasks: + - description: 'ITA06 - If a new issue or PR is opened add the "Needs: Triage :mag:" label' + if: + - or: + - payloadType: Issues + - payloadType: Pull_Request + - isAction: + action: Opened + then: + - addLabel: + label: "Needs: Triage :mag:" + - addReply: + reply: | + > [!IMPORTANT] + > **The "Needs: Triage :mag:" label must be removed once the triage process is complete!** + + + + > [!NOTE] + > This label was added as per [ITA06](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita06). + + - description: 'ITA09 - When #RR is used in an issue, add the "Needs: Author Feedback :ear:" label' + if: + - or: + - payloadType: Pull_Request_Review_Comment + - payloadType: Issue_Comment + - commentContains: + pattern: "#RR" + - not: + hasLabel: + label: "Needs: Author Feedback :ear:" + then: + - addLabel: + label: "Needs: Author Feedback :ear:" + - addReply: + reply: | + > [!NOTE] + > The "Needs: Author Feedback :ear:" label was added as per [ITA09](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita09). + + - description: 'ITA10 - When #wontfix is used in an issue, mark it by using the label of "Status: Won''t Fix :broken_heart:"' + if: + - or: + - payloadType: Pull_Request_Review_Comment + - payloadType: Issue_Comment + - commentContains: + pattern: "#wontfix" + - not: + hasLabel: + label: "Status: Won't Fix :broken_heart:" + then: + - addLabel: + label: "Status: Won't Fix :broken_heart:" + - closeIssue + - addReply: + reply: | + > [!NOTE] + > The "Status: Won't Fix :broken_heart:" label was added and the issue was closed as per [ITA10](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita10). + + - description: 'ITA11 - When a reply from anyone to an issue occurs, remove the "Needs: Author Feedback :ear:" label and label with "Needs: Attention :wave:"' + if: + - or: + - payloadType: Pull_Request_Review_Comment + - payloadType: Issue_Comment + - not: + isAction: + action: Closed + - hasLabel: + label: "Needs: Author Feedback :ear:" + then: + - removeLabel: + label: "Needs: Author Feedback :ear:" + - addLabel: + label: "Needs: Attention :wave:" + - addReply: + reply: | + > [!NOTE] + > The "Needs: Author Feedback :ear:" label was removed and the "Needs: Attention :wave:" label was added as per [ITA11](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita11). + + - description: "ITA12 - Clean email replies on every comment" + if: + - payloadType: Issue_Comment + then: + - cleanEmailReply + + - description: 'ITA15 - remove the "Needs: Triage" label from a PR, if it already has a "Type: XYZ" label added at the time of creating it.' + if: + - payloadType: Pull_Request + - isAction: + action: Opened + - or: + - hasLabel: + label: "Type: Bug :bug:" + - hasLabel: + label: "Type: Documentation :page_facing_up:" + - hasLabel: + label: "Type: Duplicate :palms_up_together:" + - hasLabel: + label: "Type: Feature Request :heavy_plus_sign:" + - hasLabel: + label: "Type: Hygiene :broom:" + - hasLabel: + label: "Type: New Module Proposal :bulb:" + - hasLabel: + label: "Type: Question/Feedback :raising_hand:" + - hasLabel: + label: "Type: Security Bug :lock:" + - isAssignedToSomeone + then: + - removeLabel: + label: "Needs: Triage :mag:" + - addReply: + reply: | + > [!NOTE] + > The "Needs: Triage :mag:" label was removed as per [ITA15](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita15). + + - description: 'ITA20 - If the type is feature request, add the "Type: Feature Request :heavy_plus_sign:" label on the issue' + if: + - payloadType: Issues + - isAction: + action: Opened + - bodyContains: + pattern: | + ### Issue Type? + + Feature Request + - not: + hasLabel: + label: "Type: Feature Request :heavy_plus_sign:" + then: + - addLabel: + label: "Type: Feature Request :heavy_plus_sign:" + - addReply: + reply: | + > [!NOTE] + > The "Type: Feature Request :heavy_plus_sign:" label was added as per [ITA20](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita20). + + - description: 'ITA21 - If the type is bug, add the "Type: Bug :bug:" label on the issue' + if: + - payloadType: Issues + - isAction: + action: Opened + - bodyContains: + pattern: | + ### Issue Type? + + Bug + - not: + hasLabel: + label: "Type: Bug :bug:" + then: + - addLabel: + label: "Type: Bug :bug:" + - addReply: + reply: | + > [!NOTE] + > The "Type: Bug :bug:" label was added as per [ITA21](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita21). + + - description: 'ITA22 - If the type is security bug, add the "Type: Security Bug :lock:" label on the issue' + if: + - payloadType: Issues + - isAction: + action: Opened + - bodyContains: + pattern: | + ### Issue Type? + + Security Bug + - not: + hasLabel: + label: "Type: Security Bug :lock:" + then: + - addLabel: + label: "Type: Security Bug :lock:" + - addReply: + reply: | + > [!NOTE] + > The "Type: Security Bug :lock:" label was added as per [ITA22](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita22). + + + - description: 'ITA23 - Remove the "Status: In PR" label from an issue when it''s closed.' + if: + - payloadType: Issues + - isAction: + action: Closed + - hasLabel: + label: "Status: In PR :point_right:" + then: + - removeLabel: + label: "Status: In PR :point_right:" + - addReply: + reply: | + > [!NOTE] + > The "Status: In PR :point_right:" label was removed as per [ITA23](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita23). diff --git a/.github/policies/scheduledSearches.yml b/.github/policies/scheduledSearches.yml new file mode 100644 index 0000000..452cca7 --- /dev/null +++ b/.github/policies/scheduledSearches.yml @@ -0,0 +1,279 @@ +id: avmScheduledSearches +name: AVM Scheduled Searches +description: AVM Scheduled Searches +resource: repository +disabled: false + +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: "ITA01TF.1 - Label and comment AVM issues that have been marked as requiring triage and have not had any activity for 3 business days." + frequencies: + - weekday: + day: Monday + time: 12:00 + - weekday: + day: Tuesday + time: 12:00 + - weekday: + day: Wednesday + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Triage :mag:" + - noActivitySince: + days: 5 + actions: + - mentionUsers: + mentionees: + - Azure/avm-core-team-technical-terraform + replyTemplate: | + > [!WARNING] + > **Tagging the AVM Core Team (${mentionees}) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.** + + > [!TIP] + > - To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to. + > - To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)! + + > [!NOTE] + > This message was posted as per [ITA01TF](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita01tf1-2). + - addLabel: + label: "Status: Response Overdue :triangular_flag_on_post:" + + - description: "ITA01TF.2 - Label and comment AVM issues that have been marked as requiring triage and have not had any activity for 3 business days." + frequencies: + - weekday: + day: Thursday + time: 12:00 + - weekday: + day: Friday + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Triage :mag:" + - noActivitySince: + days: 3 + actions: + - mentionUsers: + mentionees: + - Azure/avm-core-team-technical-terraform + replyTemplate: | + > [!WARNING] + > **Tagging the AVM Core Team (${mentionees}) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.** + + > [!TIP] + > - To prevent further actions to take effect, the "Status: Response Overdue 🚩" label must be removed, once this issue has been responded to. + > - To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)! + + > [!NOTE] + > This message was posted as per [ITA01TF](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita01tf1-2). + - addLabel: + label: "Status: Response Overdue :triangular_flag_on_post:" + - assignTo: + user: Azure/avm-core-team-technical-terraform + + - description: "ITA02TF.1 - Label and comment issues as Needs Immediate Attention and leave comment if after an additional 3 business days there's still no update to the issue." + frequencies: + - weekday: + day: Monday + time: 12:00 + - weekday: + day: Tuesday + time: 12:00 + - weekday: + day: Wednesday + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Status: Response Overdue :triangular_flag_on_post:" + - noActivitySince: + days: 5 + actions: + - mentionUsers: + mentionees: + - Azure/avm-core-team-technical-terraform + replyTemplate: | + > [!CAUTION] + > **This issue requires the AVM Core Team's (${mentionees}) immediate attention as it hasn't been responded to within 6 business days. ** + + > [!TIP] + > - To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to! + > - Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to. + + > [!NOTE] + > This message was posted as per [ITA02TF](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita02tf1-2). + - addLabel: + label: "Needs: Immediate Attention :bangbang:" + + - description: "ITA02TF.2 - Label issues as Needs Immediate Attention and leave comment if after an additional 3 business days there's still no update to the issue." + frequencies: + - weekday: + day: Thursday + time: 12:00 + - weekday: + day: Friday + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Status: Response Overdue :triangular_flag_on_post:" + - noActivitySince: + days: 3 + actions: + - mentionUsers: + mentionees: + - Azure/avm-core-team-technical-terraform + replyTemplate: | + > [!CAUTION] + > **This issue requires the AVM Core Team's (${mentionees}) immediate attention as it hasn't been responded to within 6 business days. ** + + > [!TIP] + > - To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to! + > - Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to. + + > [!NOTE] + > This message was posted as per [ITA02TF](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita02tf1-2). + - addLabel: + label: "Needs: Immediate Attention :bangbang:" + + - description: "ITA03TF - Label and mention Terraform PG to security issues that have not had any activity for 5 business days." + frequencies: + - weekday: + day: Monday + time: 12:00 + - weekday: + day: Tuesday + time: 12:00 + - weekday: + day: Wednesday + time: 12:00 + - weekday: + day: Thursday + time: 12:00 + - weekday: + day: Friday + time: 12:00 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Triage :mag:" + - hasLabel: + label: "Type: Security Bug :lock:" + - hasLabel: + label: "Status: Response Overdue :triangular_flag_on_post:" + - noActivitySince: + days: 7 + actions: + - mentionUsers: + mentionees: + - Azure/terraform-avm + replyTemplate: | + > [!CAUTION] + > **Tagging the Terraform PG team (${mentionees}) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.** + + > [!TIP] + > - To avoid this rule being (re)triggered, the "Needs: Triage :mag:" and "Status: Response Overdue :triangular_flag_on_post:" labels must be removed when the issue is first responded to! + > - Remove the "Needs: Immediate Attention :bangbang:" label once the issue has been responded to. + + > [!NOTE] + > This message was posted as per [ITA03TF](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita03tf). + - addLabel: + label: "Needs: Immediate Attention :bangbang:" + - assignTo: + user: Azure/terraform-avm + + - description: "ITA04 - Label issues that have been marked as requiring author feedback but have not had any activity for 4 days." + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Author Feedback :ear:" + - noActivitySince: + days: 4 + - isNotLabeledWith: + label: "Status: No Recent Activity :zzz:" + actions: + - addLabel: + label: "Status: No Recent Activity :zzz:" + - addReply: + reply: | + - addReply: + reply: | + > [!IMPORTANT] + > @${issueAuthor}, this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. + + > [!TIP] + > To prevent further actions to take effect, one of the following conditions must be met: + > - The author must respond in a comment within 3 days of this comment. + > - The "Status: No Recent Activity :zzz:" label must be removed. + > - If applicable, the "Status: Long Term :hourglass_flowing_sand:" or the "Needs: Module Owner :mega:" label must be added. + + > [!NOTE] + > This message was posted as per [ITA04](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita04). + + - description: 'ITA05A - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.' + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Author Feedback :ear:" + - hasLabel: + label: "Status: No Recent Activity :zzz:" + - isNotLabeledWith: + label: "Needs: Module Owner :mega:" + - noActivitySince: + days: 3 + actions: + - addReply: + reply: | + > [!WARNING] + > @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**. + + > [!TIP] + > In case this issue needs to be reopened (e.g., the author responds after the issue was closed), the "Status: No Recent Activity :zzz:" label must be removed. + + > [!NOTE] + > This message was posted as per [ITA05](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita05). + - closeIssue + + - description: 'ITA05B - Close issues that have been marked as requiring author feedback but have not had any activity for 3 days, unless it''s been marked with the "Status long term" label.' + frequencies: + - hourly: + hour: 3 + filters: + - isIssue + - isOpen + - hasLabel: + label: "Needs: Author Feedback :ear:" + - hasLabel: + label: "Status: No Recent Activity :zzz:" + - isNotLabeledWith: + label: "Status: Long Term :hourglass_flowing_sand:" + - noActivitySince: + days: 3 + actions: + - addReply: + reply: | + > [!WARNING] + > @${issueAuthor}, this issue will now be closed, as it has been marked as requiring author feedback but has not had any activity for **7 days**. + + > [!TIP] + > In case this issue needs to be reopened (e.g., the author responds after the issue was closed), the "Status: No Recent Activity :zzz:" label must be removed. + + > [!NOTE] + > This message was posted as per [ITA05](https://azure.github.io/Azure-Verified-Modules/help-support/issue-triage/issue-triage-automation/#ita05). + - closeIssue