From 0377b4d104587c91148fac2c4b293299b10c6254 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 14:32:38 +1100 Subject: [PATCH 01/12] Remove probot configs;update issue management config --- .github/lock.yaml | 21 - .github/move.yml | 33 - .../IssueLifecycleManagementEventDriven.yml | 172 ++++ .../issueLifecycleManagementPeriodic.yml | 333 +++++++ .github/policies/manageAssignees.yml | 520 ++++++++++ .github/policies/resourceManagement.yml | 915 ------------------ .github/stale.yml | 66 -- 7 files changed, 1025 insertions(+), 1035 deletions(-) delete mode 100644 .github/lock.yaml delete mode 100644 .github/move.yml create mode 100644 .github/policies/IssueLifecycleManagementEventDriven.yml create mode 100644 .github/policies/issueLifecycleManagementPeriodic.yml create mode 100644 .github/policies/manageAssignees.yml delete mode 100644 .github/policies/resourceManagement.yml delete mode 100755 .github/stale.yml diff --git a/.github/lock.yaml b/.github/lock.yaml deleted file mode 100644 index 72669b63..00000000 --- a/.github/lock.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 365 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: true - -# Comment to post before locking. Set to `false` to disable -lockComment: > - This thread has been automatically locked since there has not been - any recent activity after it was closed. Please open a new issue for - related bugs. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: false diff --git a/.github/move.yml b/.github/move.yml deleted file mode 100644 index e206e720..00000000 --- a/.github/move.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Configuration for Move Issues - https://github.com/dessant/move-issues - -# Delete the command comment when it contains no other content -deleteCommand: true - -# Close the source issue after moving -closeSourceIssue: true - -# Lock the source issue after moving -lockSourceIssue: false - -# Mention issue and comment authors -mentionAuthors: true - -# Preserve mentions in the issue content -keepContentMentions: false - -# Move labels that also exist on the target repository -moveLabels: true - -# Set custom aliases for targets -aliases: - r: engine - or: Azure/aks-engine - r: vk - or: virtual-kubelet/virtual-kubelet - r: cli - or: Azure/azure-cli - r: preview - or: Azure/azure-cli-extensions - -# Repository to extend settings from -# _extends: repo diff --git a/.github/policies/IssueLifecycleManagementEventDriven.yml b/.github/policies/IssueLifecycleManagementEventDriven.yml new file mode 100644 index 00000000..5f105cbf --- /dev/null +++ b/.github/policies/IssueLifecycleManagementEventDriven.yml @@ -0,0 +1,172 @@ +id: issueLifecycleManagementEventDriven +name: GitOps.PullRequestIssueManagement +description: Manage issue lifecycle via event-driven triggers +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + eventResponderTasks: + - description: When a new announcement is created and not assigned to someone, assign it to the Author + if: + - payloadType: Issues + - isAction: + action: Opened + - isActivitySender: + issueAuthor: True + - hasLabel: + label: announcement + - not: + - isAssignedToSomeone + then: + - assignTo: + author: true + - description: When a comment is added to an open issue by the issue author, add the 'action-required' label and remove the 'Needs Information' and 'Needs Author Feedback' labels. + if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - isOpen + - or: + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback + then: + - addLabel: + label: action-required + - removeLabel: + label: Needs Author Feedback + - removeLabel: + label: Needs Information + - description: When a stale issue has any activity (other than closing) remove the stale label. + if: + - payloadType: Issues + - not: + isAction: + action: Closed + - hasLabel: + label: stale + - not: + labelAdded: + label: stale + then: + - removeLabel: + label: stale + - description: When a stale issue has a comment, remove the stale label. + if: + - payloadType: Issue_Comment + - hasLabel: + label: stale + then: + - removeLabel: + label: stale + - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. + if: + - payloadType: Issues + - labelAdded: + label: SR-Support Request + - isOpen + then: + - addReply: + reply: >- + Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. + + + Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. + + + Please do mention this issue in the case description so our teams can coordinate to help you. + + + Thank you! + - description: When any activity is performed by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. + if: + - payloadType: Issues + - isOpen + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required + - or: + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasPermission: + permission: Admin + - activitySenderHasAssociation: + association: Member + - isAction: + action: Labeled + - isAction: + action: Unlabeled + - isAction: + action: Null + then: + - removeLabel: + label: action-required + - removeLabel: + label: 'Needs Attention :wave:' + - description: When a comment is made by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. + if: + - payloadType: Issue_Comment + - isOpen + - or: + - activitySenderHasPermission: + permission: Admin + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Member + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required + then: + - removeLabel: + label: action-required + - removeLabel: + label: 'Needs Attention :wave:' + - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/shipped label. + if: + - payloadType: Issue_Comment + - isOpen + - not: + hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False + then: + - addLabel: + label: resolution/shipped + - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/fix-released label. + if: + - payloadType: Issue_Comment + - isOpen + - hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False + then: + - addLabel: + label: resolution/fix-released +onFailure: +onSuccess: diff --git a/.github/policies/issueLifecycleManagementPeriodic.yml b/.github/policies/issueLifecycleManagementPeriodic.yml new file mode 100644 index 00000000..e973046b --- /dev/null +++ b/.github/policies/issueLifecycleManagementPeriodic.yml @@ -0,0 +1,333 @@ +id: issueLifecycleManagementPeriodic +name: GitOps.PullRequestIssueManagement +description: Manage issue lifecycle via periodic parsing of issues +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: stale + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any open unassigned issue that is a bug that has 30 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: stale + - hasLabel: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any open unassigned issue that is a feature request without activity for 180 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 180 + - isNotLabeledWith: + label: stale + - hasLabel: + label: feature-request + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any issue awaiting further information or author feedback that has had no activity for 7 days - runs daily at 1am + frequencies: + - daily: + time: 1:0 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: stale + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - description: Stale any non-bug or feature request issue that is tagged as requiring Microsoft support that has had no activity for 7 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: SR-Support Request + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: stale + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - addReply: + reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. + - description: Stale any open announcements that have 180 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: announcement + - noActivitySince: + days: 180 + - isNotLabeledWith: + label: stale + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Mark as needing attention and tag members of AKS team - 5 days inactivity - runs several times a day + frequencies: + - daily: + time: 9:0 + - daily: + time: 12:0 + - daily: + time: 15:0 + - daily: + time: 18:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasLabel: + label: action-required + - noActivitySince: + days: 5 + - isNotLabeledWith: + label: Needs Author Feedback + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: 'Needs Attention :wave:' + actions: + - addReply: + reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure + - addLabel: + label: 'Needs Attention :wave:' + - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: triage + - noActivitySince: + days: 2 + - isNotLabeledWith: + label: action-required + actions: + - addLabel: + label: action-required + - addReply: + reply: Triage required from @Azure/aks-pm ${assignees} + - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Needs Attention :wave:' + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: Needs Author Feedback + actions: + - addReply: + reply: Issue needing attention of @Azure/aks-leads + - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am + frequencies: + - weekday: + day: Wednesday + time: 11:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasNoLabel + actions: + - addReply: + reply: '@Azure/aks-pm issue needs labels' + - description: Mark as 'action required' any open item without specific labels - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: triage + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: action-required + - isNotLabeledWith: + label: announcement + - isNotLabeledWith: + label: awareness + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: wontfix + - isNotLabeledWith: + label: Feedback + - isNotLabeledWith: + label: enhancement + - isNotLabeledWith: + label: resolution/fix-released + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: service-updates + - isNotLabeledWith: + label: resolution/shipped + actions: + - addLabel: + label: action-required + - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/answer-provided + - noActivitySince: + days: 2 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. + - closeIssue + - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/fix-released + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/shipped + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/other + - noActivitySince: + days: 3 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. + - closeIssue + - description: Close issues marked as duplicates after 1 day inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/duplicate + - noActivitySince: + days: 1 + actions: + - addReply: + reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. + - closeIssue + - description: Close stale issues after 7 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: stale + - noActivitySince: + days: 7 + actions: + - addReply: + reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. + - closeIssue +onFailure: +onSuccess: diff --git a/.github/policies/manageAssignees.yml b/.github/policies/manageAssignees.yml new file mode 100644 index 00000000..42b5f6ea --- /dev/null +++ b/.github/policies/manageAssignees.yml @@ -0,0 +1,520 @@ +id: manageAssignees +name: GitOps.PullRequestIssueManagement +description: Manage assignees for certain areas of the AKS ecosystem +owner: +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + eventResponderTasks: + - if: + - or: + - payloadType: Issues + - isAction: + action: Labeled + then: + # Container Insights + - if: + - hasLabel: + label: addon/container-insights + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - ganga1980 + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Monitor + - if: + - hasLabel: + label: addon/ama-metrics + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Policy + - if: + - hasLabel: + label: addon/policy + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - az-policy-kube + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + - if: + - hasLabel: + label: azure/policy + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - az-policy-kube + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Virtual Nodes + - if: + - hasLabel: + label: addon/virtual-nodes + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - justindavies + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Kubernetes Dashboard + - if: + - hasLabel: + label: addon/k8s-dashboard + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - qpetraroia + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Routing + - if: + - hasLabel: + label: addon/app-routing + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Gateway + - if: + - hasLabel: + label: azure/application-gateway + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Security Center + - if: + - hasLabel: + label: azure/security-center + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - mayaherskovic + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Security + - if: + - hasLabel: + label: Security + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithrow + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Confidential Computing + - if: + - hasLabel: + label: azure/confidentialCompute + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - agowdamsft + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Portal + - if: + - hasLabel: + label: azure/portal + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - Azure/aks-portal + - smsft + - aritraghosh + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + - if: + - hasLabel: + label: client/portal + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - Azure/aks-portal + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Government + - if: + - hasLabel: + label: AzGov + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Networking + - if: + - hasLabel: + label: networking + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - chasewilson + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Cilium + - if: + - hasLabel: + label: Cilium + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - chasewilson + - paulgmiller + - wedaly + - quantumn-a5 + - tamilmani1989 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Pod Identity + - if: + - hasLabel: + label: pod-identity + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Windows Containers + - if: + - hasLabel: + label: windows + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + - thecloudtaylor + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Storage + - if: + - hasLabel: + label: storage + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - azure/azure-container-storage-team + - VyabaRamadoss + - AllenWen-at-Azure + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # OMS + - if: + - hasLabel: + label: azure/oms + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Log Analytics + - if: + - hasLabel: + label: azure/log-analytics + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure China + - if: + - hasLabel: + label: AzChina + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Gateway Ingress Controller (AGIC) + - if: + - hasLabel: + label: addon/agic + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + - JackStromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # AGC + - if: + - hasLabel: + label: AGC + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - JackStromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Gateway + - if: + - hasLabel: + label: azure/application-gateway + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + - jackstromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Upstream - Helm + - if: + - hasLabel: + label: upstream/helm + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - squillace + - bridgetkromhout + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Upstream - Gatekeeper + - if: + - hasLabel: + label: upstream/gatekeeper + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sozercan + - ritazh + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Service Mesh + - if: + - hasLabel: + label: service-mesh + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - azure/aks-traffic + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Mesh networking + - if: + - hasLabel: + label: mesh + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - shashankbarsin + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Copilot + - if: + - hasLabel: + label: ai/copilot + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - wangyira + - pavneeta + - chandraneel + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Container Registry (ACR) + - if: + - hasLabel: + label: azure/acr + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - mangalorereshmi + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Control plane + - if: + - hasLabel: + label: control-plane + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - pavneeta + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Documentation + - if: + - hasLabel: + label: docs + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Kubernetes Fleet Manager + - if: + - hasLabel: + label: fleet + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sjwaight + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # KEDA + - if: + - hasLabel: + label: keda + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - qpetraroia + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Node pools + - if: + - hasLabel: + label: nodepools + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + - justindavies + - stl327 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Service resiliency + - if: + - hasLabel: + label: resiliency + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - abubinski + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Service scale and performance + - if: + - hasLabel: + label: Scale and Performance + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - AllenWen-at-Azure + - pavneeta + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Upgrades + - if: + - hasLabel: + label: upgrade + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - kaarthis + - sdesai345 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Miscellaneous issues + - if: + - hasLabel: + label: miscellaneous + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - seguler + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + description: When certain labels are added to an issue, mention the appropriate team members to assist. +onFailure: +onSuccess: diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml deleted file mode 100644 index 9245c0f3..00000000 --- a/.github/policies/resourceManagement.yml +++ /dev/null @@ -1,915 +0,0 @@ -id: -name: GitOps.PullRequestIssueManagement -description: GitOps.PullRequestIssueManagement primitive -owner: -resource: repository -disabled: false -where: -configuration: - resourceManagementConfiguration: - scheduledSearches: - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: stale - - noActivitySince: - days: 7 - actions: - - closeIssue - - addReply: - reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - noActivitySince: - days: 21 - - isNotLabeledWith: - label: stale - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: bug - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **21 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/duplicate - - noActivitySince: - days: 1 - actions: - - addReply: - reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. - - closeIssue - - description: - frequencies: - - daily: - time: 9:0 - - daily: - time: 12:0 - - daily: - time: 15:0 - - daily: - time: 18:0 - filters: - - isOpen - - hasLabel: - label: action-required - - noActivitySince: - days: 5 - - isNotLabeledWith: - label: Needs Author Feedback - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: 'Needs Attention :wave:' - - isNotAssigned - actions: - - addReply: - reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure - - addLabel: - label: 'Needs Attention :wave:' - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - hasLabel: - label: triage - - noActivitySince: - days: 2 - - isNotLabeledWith: - label: action-required - actions: - - addLabel: - label: action-required - - addReply: - reply: Triage required from @Azure/aks-pm ${assignees} - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - hasLabel: - label: 'Needs Attention :wave:' - - noActivitySince: - days: 15 - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: Needs Author Feedback - actions: - - addReply: - reply: Issue needing attention of @Azure/aks-leads - - description: - frequencies: - - weekday: - day: Wednesday - time: 11:0 - filters: - - isOpen - - isNotAssigned - - hasNoLabel - actions: - - addReply: - reply: '@Azure/aks-pm issue needs labels' - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - isNotLabeledWith: - label: triage - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: action-required - - isNotLabeledWith: - label: announcement - - isNotLabeledWith: - label: awareness - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: wontfix - - isNotLabeledWith: - label: Feedback - - isNotLabeledWith: - label: enhancement - - isNotLabeledWith: - label: resolution/fix-released - - noActivitySince: - days: 25 - - isNotLabeledWith: - label: service-updates - - isNotLabeledWith: - label: resolution/shipped - actions: - - addLabel: - label: action-required - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - hasLabel: - label: feature-request - - noActivitySince: - days: 180 - actions: - - addLabel: - label: action-required - - description: - frequencies: - - daily: - time: 1:0 - filters: - - isOpen - - hasLabel: - label: Needs Information - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - description: - frequencies: - - daily: - time: 1:0 - filters: - - isOpen - - hasLabel: - label: Needs Author Feedback - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - hasLabel: - label: resolution/answer-provided - - noActivitySince: - days: 2 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. - - closeIssue - - description: - frequencies: - - hourly: - hour: 12 - filters: - - isOpen - - hasLabel: - label: resolution/fix-released - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. - - closeIssue - - description: - frequencies: - - hourly: - hour: 6 - filters: - - isOpen - - hasLabel: - label: SR-Support Request - - isNotLabeledWith: - label: bug - - noActivitySince: - days: 7 - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: stale - actions: - - addLabel: - label: stale - - addReply: - reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. - - description: - frequencies: - - hourly: - hour: 12 - filters: - - isOpen - - hasLabel: - label: resolution/shipped - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. - - closeIssue - - description: - frequencies: - - hourly: - hour: 12 - filters: - - isOpen - - hasLabel: - label: resolution/other - - noActivitySince: - days: 3 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. - - closeIssue - eventResponderTasks: - - if: - - payloadType: Issue_Comment - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - - isOpen - - or: - - hasLabel: - label: Needs Information - - hasLabel: - label: Needs Author Feedback - then: - - addLabel: - label: action-required - - removeLabel: - label: Needs Author Feedback - - removeLabel: - label: Needs Information - description: - - if: - - payloadType: Issues - - not: - isAction: - action: Closed - - hasLabel: - label: stale - - not: - labelAdded: - label: stale - then: - - removeLabel: - label: stale - description: - - if: - - payloadType: Issue_Comment - - hasLabel: - label: stale - then: - - removeLabel: - label: stale - description: - - if: - - payloadType: Issues - - labelAdded: - label: SR-Support Request - - isOpen - then: - - addReply: - reply: >- - Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. - - - Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. - - - Please do mention this issue in the case description so our teams can coordinate to help you. - - - Thank you! - description: - - if: - - or: - - payloadType: Issues - - isAction: - action: Labeled - then: - - if: - - hasLabel: - label: addon/container-insights - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - ganga1980 - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: addon/ama-metrics - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: addon/policy - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - az-policy-kube - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: addon/virtual-nodes - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - justindavies - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: addon/k8s-dashboard - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - qpetraroia - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: addon/app-routing - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: azure/application-gateway - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/security-center - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - mayaherskovic - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/confidentialCompute - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - agowdamsft - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/portal - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - Azure/aks-portal - - smsft - - aritraghosh - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: AzGov - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: networking - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - chasewilson - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: pod-identity - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: windows - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - - thecloudtaylor - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: storage - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - azure/azure-container-storage-team - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/oms - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/log-analytics - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: AzChina - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: addon/agic - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - - JackStromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: AGC - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - JackStromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: azure/policy - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - az-policy-kube - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: upstream/helm - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - squillace - - bridgetkromhout - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: upstream/gatekeeper - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sozercan - - ritazh - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: client/portal - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - Azure/aks-portal - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: service-mesh - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - azure/aks-traffic - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: ai/copilot - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - wangyira - - pavneeta - - chandraneel - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: azure/acr - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - mangalorereshmi - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: azure/application-gateway - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - - jackstromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: control-plane - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - pavneeta - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: docs - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: fleet - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sjwaight - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: keda - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - qpetraroia - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: nodepools - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - - justindavies - - stl327 - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: mesh - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - shashankbarsin - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: resiliency - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - abubinski - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: Scale and Performance - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - AllenWen-at-Azure - - pavneeta - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: Security - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithrow - - CocoWang-wql - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: storage - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - VyabaRamadoss - - AllenWen-at-Azure - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: upgrade - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - kaarthis - - sdesai345 - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: miscellaneous - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - seguler - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - description: - - if: - - payloadType: Issues - - isAssignedToSomeone - - labelAdded: - label: action-required - - not: - hasLabel: - label: Needs Information - - not: - hasLabel: - label: Needs Author Feedback - then: - - addReply: - reply: Action required from ${assignees}. - description: - - if: - - payloadType: Issues - - isOpen - - or: - - hasLabel: - label: 'Needs Attention :wave:' - - hasLabel: - label: action-required - - or: - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasPermission: - permission: Admin - - activitySenderHasAssociation: - association: Member - - isAction: - action: Labeled - - isAction: - action: Unlabeled - - isAction: - action: Null - then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' - description: - - if: - - payloadType: Issue_Comment - - isOpen - - or: - - activitySenderHasPermission: - permission: Admin - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Member - - or: - - hasLabel: - label: 'Needs Attention :wave:' - - hasLabel: - label: action-required - then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' - description: - - if: - - payloadType: Issue_Comment - - isOpen - - not: - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/shipped - description: - - if: - - payloadType: Issue_Comment - - isOpen - - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/fix-released - description: -onFailure: -onSuccess: diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100755 index b15ff898..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,66 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 90 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: 30 - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - pinned - - security - - feature - - roadmap - - enhancement - - feature-request - - bug - - triage - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: true - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - -# Label to use when marking as stale -staleLabel: stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - activity in 90 days. It will be closed if no further activity occurs. Thank - you! - -# Comment to post when removing the stale label. -unmarkComment: > - Issue still active. - -# Comment to post when closing a stale Issue or Pull Request. -closeComment: > - This issue has been stale for 30 days without any activity. It will now be closed. If you have any issues or suggestions please feel free to open a new issue. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` or `pulls` -only: issues - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -# pulls: -# daysUntilStale: 30 -# markComment: > -# This pull request has been automatically marked as stale because it has not had -# recent activity. It will be closed if no further activity occurs. Thank you -# for your contributions. - -# issues: -# exemptLabels: -# - confirmed From 91dc401f1d3bd6b98409487952d66963e34436c4 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 14:46:58 +1100 Subject: [PATCH 02/12] Fix YAML parse issue --- ...ventDriven.yml => issueLifecycleManagementEventDriven.yml} | 0 .github/policies/manageAssignees.yml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename .github/policies/{IssueLifecycleManagementEventDriven.yml => issueLifecycleManagementEventDriven.yml} (100%) diff --git a/.github/policies/IssueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml similarity index 100% rename from .github/policies/IssueLifecycleManagementEventDriven.yml rename to .github/policies/issueLifecycleManagementEventDriven.yml diff --git a/.github/policies/manageAssignees.yml b/.github/policies/manageAssignees.yml index 42b5f6ea..88d05999 100644 --- a/.github/policies/manageAssignees.yml +++ b/.github/policies/manageAssignees.yml @@ -8,7 +8,8 @@ where: configuration: resourceManagementConfiguration: eventResponderTasks: - - if: + - description: When certain labels are added to an issue, mention the appropriate team members to assist. + if: - or: - payloadType: Issues - isAction: @@ -515,6 +516,5 @@ configuration: - seguler replyTemplate: ${mentionees} would you be able to assist? assignMentionees: True - description: When certain labels are added to an issue, mention the appropriate team members to assist. onFailure: onSuccess: From 0fac7e68f77ec8ce4eecd63c1b9f0782f55a0bfb Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 14:53:50 +1100 Subject: [PATCH 03/12] Fix YAML indents --- .../issueLifecycleManagementEventDriven.yml | 290 ++--- .../issueLifecycleManagementPeriodic.yml | 642 +++++------ .github/policies/manageAssignees.yml | 1016 ++++++++--------- 3 files changed, 974 insertions(+), 974 deletions(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index 5f105cbf..236e6c0b 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -8,165 +8,165 @@ where: configuration: resourceManagementConfiguration: eventResponderTasks: - - description: When a new announcement is created and not assigned to someone, assign it to the Author - if: - - payloadType: Issues - - isAction: - action: Opened - - isActivitySender: - issueAuthor: True - - hasLabel: - label: announcement - - not: - - isAssignedToSomeone - then: - - assignTo: - author: true - - description: When a comment is added to an open issue by the issue author, add the 'action-required' label and remove the 'Needs Information' and 'Needs Author Feedback' labels. - if: - - payloadType: Issue_Comment - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - - isOpen - - or: + - description: When a new announcement is created and not assigned to someone, assign it to the Author + if: + - payloadType: Issues + - isAction: + action: Opened + - isActivitySender: + issueAuthor: True - hasLabel: + label: announcement + - not: + - isAssignedToSomeone + then: + - assignTo: + author: true + - description: When a comment is added to an open issue by the issue author, add the 'action-required' label and remove the 'Needs Information' and 'Needs Author Feedback' labels. + if: + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - isOpen + - or: + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback + then: + - addLabel: + label: action-required + - removeLabel: + label: Needs Author Feedback + - removeLabel: label: Needs Information + - description: When a stale issue has any activity (other than closing) remove the stale label. + if: + - payloadType: Issues + - not: + isAction: + action: Closed - hasLabel: - label: Needs Author Feedback - then: - - addLabel: - label: action-required - - removeLabel: - label: Needs Author Feedback - - removeLabel: - label: Needs Information - - description: When a stale issue has any activity (other than closing) remove the stale label. - if: - - payloadType: Issues - - not: - isAction: - action: Closed - - hasLabel: - label: stale - - not: - labelAdded: label: stale - then: - - removeLabel: - label: stale - - description: When a stale issue has a comment, remove the stale label. - if: - - payloadType: Issue_Comment - - hasLabel: - label: stale - then: - - removeLabel: - label: stale - - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. - if: - - payloadType: Issues - - labelAdded: - label: SR-Support Request - - isOpen - then: - - addReply: - reply: >- - Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. + - not: + labelAdded: + label: stale + then: + - removeLabel: + label: stale + - description: When a stale issue has a comment, remove the stale label. + if: + - payloadType: Issue_Comment + - hasLabel: + label: stale + then: + - removeLabel: + label: stale + - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. + if: + - payloadType: Issues + - labelAdded: + label: SR-Support Request + - isOpen + then: + - addReply: + reply: >- + Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. - Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. + Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. - Please do mention this issue in the case description so our teams can coordinate to help you. + Please do mention this issue in the case description so our teams can coordinate to help you. - Thank you! - - description: When any activity is performed by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. - if: - - payloadType: Issues - - isOpen - - or: - - hasLabel: + Thank you! + - description: When any activity is performed by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. + if: + - payloadType: Issues + - isOpen + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required + - or: + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasPermission: + permission: Admin + - activitySenderHasAssociation: + association: Member + - isAction: + action: Labeled + - isAction: + action: Unlabeled + - isAction: + action: Null + then: + - removeLabel: + label: action-required + - removeLabel: label: 'Needs Attention :wave:' - - hasLabel: + - description: When a comment is made by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. + if: + - payloadType: Issue_Comment + - isOpen + - or: + - activitySenderHasPermission: + permission: Admin + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Member + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required + then: + - removeLabel: label: action-required - - or: - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasPermission: - permission: Admin - - activitySenderHasAssociation: - association: Member - - isAction: - action: Labeled - - isAction: - action: Unlabeled - - isAction: - action: Null - then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' - - description: When a comment is made by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. - if: - - payloadType: Issue_Comment - - isOpen - - or: - - activitySenderHasPermission: - permission: Admin - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Member - - or: - - hasLabel: + - removeLabel: label: 'Needs Attention :wave:' + - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/shipped label. + if: + - payloadType: Issue_Comment + - isOpen + - not: + hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False + then: + - addLabel: + label: resolution/shipped + - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/fix-released label. + if: + - payloadType: Issue_Comment + - isOpen - hasLabel: - label: action-required - then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' - - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/shipped label. - if: - - payloadType: Issue_Comment - - isOpen - - not: - hasLabel: label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/shipped - - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/fix-released label. - if: - - payloadType: Issue_Comment - - isOpen - - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/fix-released + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False + then: + - addLabel: + label: resolution/fix-released onFailure: onSuccess: diff --git a/.github/policies/issueLifecycleManagementPeriodic.yml b/.github/policies/issueLifecycleManagementPeriodic.yml index e973046b..b0b5cc8e 100644 --- a/.github/policies/issueLifecycleManagementPeriodic.yml +++ b/.github/policies/issueLifecycleManagementPeriodic.yml @@ -8,326 +8,326 @@ where: configuration: resourceManagementConfiguration: scheduledSearches: - - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 14 - - isNotLabeledWith: - label: stale - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: bug - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any open unassigned issue that is a bug that has 30 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 30 - - isNotLabeledWith: - label: stale - - hasLabel: - label: bug - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any open unassigned issue that is a feature request without activity for 180 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 180 - - isNotLabeledWith: - label: stale - - hasLabel: - label: feature-request - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any issue awaiting further information or author feedback that has had no activity for 7 days - runs daily at 1am - frequencies: - - daily: - time: 1:0 - filters: - - isIssue - - isOpen - - isNotLabeledWith: - label: stale - - hasLabel: - label: Needs Information - - hasLabel: - label: Needs Author Feedback - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - description: Stale any non-bug or feature request issue that is tagged as requiring Microsoft support that has had no activity for 7 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: SR-Support Request - - isNotLabeledWith: - label: bug - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: stale - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - addReply: - reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. - - description: Stale any open announcements that have 180 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: announcement - - noActivitySince: - days: 180 - - isNotLabeledWith: - label: stale - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Mark as needing attention and tag members of AKS team - 5 days inactivity - runs several times a day - frequencies: - - daily: - time: 9:0 - - daily: - time: 12:0 - - daily: - time: 15:0 - - daily: - time: 18:0 - filters: - - isIssue - - isOpen - - isNotAssigned - - hasLabel: - label: action-required - - noActivitySince: - days: 5 - - isNotLabeledWith: - label: Needs Author Feedback - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: 'Needs Attention :wave:' - actions: - - addReply: - reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure - - addLabel: - label: 'Needs Attention :wave:' - - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: triage - - noActivitySince: - days: 2 - - isNotLabeledWith: - label: action-required - actions: - - addLabel: - label: action-required - - addReply: - reply: Triage required from @Azure/aks-pm ${assignees} - - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: 'Needs Attention :wave:' - - noActivitySince: - days: 14 - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: Needs Author Feedback - actions: - - addReply: - reply: Issue needing attention of @Azure/aks-leads - - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am - frequencies: - - weekday: - day: Wednesday - time: 11:0 - filters: - - isIssue - - isOpen - - isNotAssigned - - hasNoLabel - actions: - - addReply: - reply: '@Azure/aks-pm issue needs labels' - - description: Mark as 'action required' any open item without specific labels - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotLabeledWith: - label: triage - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: action-required - - isNotLabeledWith: - label: announcement - - isNotLabeledWith: - label: awareness - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: wontfix - - isNotLabeledWith: - label: Feedback - - isNotLabeledWith: - label: enhancement - - isNotLabeledWith: - label: resolution/fix-released - - noActivitySince: - days: 30 - - isNotLabeledWith: - label: service-updates - - isNotLabeledWith: - label: resolution/shipped - actions: - - addLabel: - label: action-required - - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/answer-provided - - noActivitySince: - days: 2 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. - - closeIssue - - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/fix-released - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. - - closeIssue - - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/shipped - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. - - closeIssue - - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/other - - noActivitySince: - days: 3 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. - - closeIssue - - description: Close issues marked as duplicates after 1 day inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/duplicate - - noActivitySince: - days: 1 - actions: - - addReply: - reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. - - closeIssue - - description: Close stale issues after 7 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: stale - - noActivitySince: - days: 7 - actions: - - addReply: - reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. - - closeIssue + - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: stale + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any open unassigned issue that is a bug that has 30 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: stale + - hasLabel: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any open unassigned issue that is a feature request without activity for 180 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 180 + - isNotLabeledWith: + label: stale + - hasLabel: + label: feature-request + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any issue awaiting further information or author feedback that has had no activity for 7 days - runs daily at 1am + frequencies: + - daily: + time: 1:0 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: stale + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - description: Stale any non-bug or feature request issue that is tagged as requiring Microsoft support that has had no activity for 7 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: SR-Support Request + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: stale + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - addReply: + reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. + - description: Stale any open announcements that have 180 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: announcement + - noActivitySince: + days: 180 + - isNotLabeledWith: + label: stale + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Mark as needing attention and tag members of AKS team - 5 days inactivity - runs several times a day + frequencies: + - daily: + time: 9:0 + - daily: + time: 12:0 + - daily: + time: 15:0 + - daily: + time: 18:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasLabel: + label: action-required + - noActivitySince: + days: 5 + - isNotLabeledWith: + label: Needs Author Feedback + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: 'Needs Attention :wave:' + actions: + - addReply: + reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure + - addLabel: + label: 'Needs Attention :wave:' + - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: triage + - noActivitySince: + days: 2 + - isNotLabeledWith: + label: action-required + actions: + - addLabel: + label: action-required + - addReply: + reply: Triage required from @Azure/aks-pm ${assignees} + - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Needs Attention :wave:' + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: Needs Author Feedback + actions: + - addReply: + reply: Issue needing attention of @Azure/aks-leads + - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am + frequencies: + - weekday: + day: Wednesday + time: 11:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasNoLabel + actions: + - addReply: + reply: '@Azure/aks-pm issue needs labels' + - description: Mark as 'action required' any open item without specific labels - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: triage + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: action-required + - isNotLabeledWith: + label: announcement + - isNotLabeledWith: + label: awareness + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: wontfix + - isNotLabeledWith: + label: Feedback + - isNotLabeledWith: + label: enhancement + - isNotLabeledWith: + label: resolution/fix-released + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: service-updates + - isNotLabeledWith: + label: resolution/shipped + actions: + - addLabel: + label: action-required + - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/answer-provided + - noActivitySince: + days: 2 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. + - closeIssue + - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/fix-released + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/shipped + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/other + - noActivitySince: + days: 3 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. + - closeIssue + - description: Close issues marked as duplicates after 1 day inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/duplicate + - noActivitySince: + days: 1 + actions: + - addReply: + reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. + - closeIssue + - description: Close stale issues after 7 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: stale + - noActivitySince: + days: 7 + actions: + - addReply: + reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. + - closeIssue onFailure: onSuccess: diff --git a/.github/policies/manageAssignees.yml b/.github/policies/manageAssignees.yml index 88d05999..d51415f2 100644 --- a/.github/policies/manageAssignees.yml +++ b/.github/policies/manageAssignees.yml @@ -8,513 +8,513 @@ where: configuration: resourceManagementConfiguration: eventResponderTasks: - - description: When certain labels are added to an issue, mention the appropriate team members to assist. - if: - - or: - - payloadType: Issues - - isAction: - action: Labeled - then: - # Container Insights - - if: - - hasLabel: - label: addon/container-insights - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - ganga1980 - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Azure Monitor - - if: - - hasLabel: - label: addon/ama-metrics - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Policy - - if: - - hasLabel: - label: addon/policy - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - az-policy-kube - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - - if: - - hasLabel: - label: azure/policy - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - az-policy-kube - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Virtual Nodes - - if: - - hasLabel: - label: addon/virtual-nodes - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - justindavies - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Kubernetes Dashboard - - if: - - hasLabel: - label: addon/k8s-dashboard - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - qpetraroia - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # App Routing - - if: - - hasLabel: - label: addon/app-routing - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # App Gateway - - if: - - hasLabel: - label: azure/application-gateway - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Security Center - - if: - - hasLabel: - label: azure/security-center - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - mayaherskovic - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Security - - if: - - hasLabel: - label: Security - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithrow - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Confidential Computing - - if: - - hasLabel: - label: azure/confidentialCompute - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - agowdamsft - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Azure Portal - - if: - - hasLabel: - label: azure/portal - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - Azure/aks-portal - - smsft - - aritraghosh - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - - if: - - hasLabel: - label: client/portal - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - Azure/aks-portal - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Azure Government - - if: - - hasLabel: - label: AzGov - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Networking - - if: - - hasLabel: - label: networking - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - chasewilson - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Cilium - - if: - - hasLabel: - label: Cilium - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - chasewilson - - paulgmiller - - wedaly - - quantumn-a5 - - tamilmani1989 - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Pod Identity - - if: - - hasLabel: - label: pod-identity - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Windows Containers - - if: - - hasLabel: - label: windows - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - - thecloudtaylor - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Storage - - if: - - hasLabel: - label: storage - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - azure/azure-container-storage-team - - VyabaRamadoss - - AllenWen-at-Azure - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # OMS - - if: - - hasLabel: - label: azure/oms - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Log Analytics - - if: - - hasLabel: - label: azure/log-analytics - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - vishiy - - saaror - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Azure China - - if: - - hasLabel: - label: AzChina - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - miwithro - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Azure Gateway Ingress Controller (AGIC) - - if: - - hasLabel: - label: addon/agic - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - - JackStromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # AGC - - if: - - hasLabel: - label: AGC - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - JackStromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # App Gateway - - if: - - hasLabel: - label: azure/application-gateway - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sabbour - - jackstromberg - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Upstream - Helm - - if: - - hasLabel: - label: upstream/helm - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - squillace - - bridgetkromhout - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Upstream - Gatekeeper - - if: - - hasLabel: - label: upstream/gatekeeper - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sozercan - - ritazh - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: False - # Service Mesh - - if: - - hasLabel: - label: service-mesh - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - azure/aks-traffic - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Mesh networking - - if: - - hasLabel: - label: mesh - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - shashankbarsin - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Copilot - - if: - - hasLabel: - label: ai/copilot - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - wangyira - - pavneeta - - chandraneel - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Azure Container Registry (ACR) - - if: - - hasLabel: - label: azure/acr - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - mangalorereshmi - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Control plane - - if: - - hasLabel: - label: control-plane - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - pavneeta - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Documentation - - if: - - hasLabel: - label: docs - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Azure Kubernetes Fleet Manager - - if: - - hasLabel: - label: fleet - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - sjwaight - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # KEDA - - if: - - hasLabel: - label: keda - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - qpetraroia - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Node pools - - if: - - hasLabel: - label: nodepools - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - allyford - - justindavies - - stl327 - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Service resiliency - - if: - - hasLabel: - label: resiliency - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - abubinski - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Service scale and performance - - if: - - hasLabel: - label: Scale and Performance - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - AllenWen-at-Azure - - pavneeta - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Upgrades - - if: - - hasLabel: - label: upgrade - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - kaarthis - - sdesai345 - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True - # Miscellaneous issues - - if: - - hasLabel: - label: miscellaneous - - not: - isAssignedToSomeone - then: - - mentionUsers: - mentionees: - - seguler - replyTemplate: ${mentionees} would you be able to assist? - assignMentionees: True + - description: When certain labels are added to an issue, mention the appropriate team members to assist. + if: + - or: + - payloadType: Issues + - isAction: + action: Labeled + then: + # Container Insights + - if: + - hasLabel: + label: addon/container-insights + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - ganga1980 + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Monitor + - if: + - hasLabel: + label: addon/ama-metrics + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Policy + - if: + - hasLabel: + label: addon/policy + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - az-policy-kube + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + - if: + - hasLabel: + label: azure/policy + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - az-policy-kube + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Virtual Nodes + - if: + - hasLabel: + label: addon/virtual-nodes + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - justindavies + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Kubernetes Dashboard + - if: + - hasLabel: + label: addon/k8s-dashboard + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - qpetraroia + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Routing + - if: + - hasLabel: + label: addon/app-routing + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Gateway + - if: + - hasLabel: + label: azure/application-gateway + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Security Center + - if: + - hasLabel: + label: azure/security-center + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - mayaherskovic + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Security + - if: + - hasLabel: + label: Security + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithrow + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Confidential Computing + - if: + - hasLabel: + label: azure/confidentialCompute + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - agowdamsft + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Portal + - if: + - hasLabel: + label: azure/portal + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - Azure/aks-portal + - smsft + - aritraghosh + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + - if: + - hasLabel: + label: client/portal + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - Azure/aks-portal + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Government + - if: + - hasLabel: + label: AzGov + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Networking + - if: + - hasLabel: + label: networking + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - chasewilson + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Cilium + - if: + - hasLabel: + label: Cilium + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - chasewilson + - paulgmiller + - wedaly + - quantumn-a5 + - tamilmani1989 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Pod Identity + - if: + - hasLabel: + label: pod-identity + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Windows Containers + - if: + - hasLabel: + label: windows + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + - thecloudtaylor + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Storage + - if: + - hasLabel: + label: storage + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - azure/azure-container-storage-team + - VyabaRamadoss + - AllenWen-at-Azure + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # OMS + - if: + - hasLabel: + label: azure/oms + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Log Analytics + - if: + - hasLabel: + label: azure/log-analytics + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - vishiy + - saaror + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure China + - if: + - hasLabel: + label: AzChina + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - miwithro + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Azure Gateway Ingress Controller (AGIC) + - if: + - hasLabel: + label: addon/agic + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + - JackStromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # AGC + - if: + - hasLabel: + label: AGC + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - JackStromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # App Gateway + - if: + - hasLabel: + label: azure/application-gateway + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sabbour + - jackstromberg + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Upstream - Helm + - if: + - hasLabel: + label: upstream/helm + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - squillace + - bridgetkromhout + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Upstream - Gatekeeper + - if: + - hasLabel: + label: upstream/gatekeeper + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sozercan + - ritazh + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: False + # Service Mesh + - if: + - hasLabel: + label: service-mesh + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - azure/aks-traffic + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Mesh networking + - if: + - hasLabel: + label: mesh + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - shashankbarsin + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Copilot + - if: + - hasLabel: + label: ai/copilot + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - wangyira + - pavneeta + - chandraneel + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Container Registry (ACR) + - if: + - hasLabel: + label: azure/acr + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - mangalorereshmi + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Control plane + - if: + - hasLabel: + label: control-plane + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - pavneeta + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Documentation + - if: + - hasLabel: + label: docs + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Azure Kubernetes Fleet Manager + - if: + - hasLabel: + label: fleet + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - sjwaight + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # KEDA + - if: + - hasLabel: + label: keda + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - qpetraroia + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Node pools + - if: + - hasLabel: + label: nodepools + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - allyford + - justindavies + - stl327 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Service resiliency + - if: + - hasLabel: + label: resiliency + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - abubinski + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Service scale and performance + - if: + - hasLabel: + label: Scale and Performance + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - AllenWen-at-Azure + - pavneeta + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Upgrades + - if: + - hasLabel: + label: upgrade + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - kaarthis + - sdesai345 + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True + # Miscellaneous issues + - if: + - hasLabel: + label: miscellaneous + - not: + isAssignedToSomeone + then: + - mentionUsers: + mentionees: + - seguler + replyTemplate: ${mentionees} would you be able to assist? + assignMentionees: True onFailure: onSuccess: From 468b1d6e649493744a5f3ddeea7a891b5aef44c2 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 15:05:56 +1100 Subject: [PATCH 04/12] Fix YAML issue. --- .../issueLifecycleManagementEventDriven.yml | 254 +++++++++--------- 1 file changed, 127 insertions(+), 127 deletions(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index 236e6c0b..e03f43ef 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -10,163 +10,163 @@ configuration: eventResponderTasks: - description: When a new announcement is created and not assigned to someone, assign it to the Author if: - - payloadType: Issues - - isAction: - action: Opened - - isActivitySender: - issueAuthor: True - - hasLabel: - label: announcement - - not: - - isAssignedToSomeone + - payloadType: Issues + - isActivitySender: + issueAuthor: True + - and: + - isOpen + - hasLabel: + label: announcement + - not: + - isAssignedToSomeone then: - - assignTo: - author: true + - assignTo: + author: true - description: When a comment is added to an open issue by the issue author, add the 'action-required' label and remove the 'Needs Information' and 'Needs Author Feedback' labels. if: - - payloadType: Issue_Comment - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - - isOpen - - or: - - hasLabel: - label: Needs Information - - hasLabel: - label: Needs Author Feedback + - payloadType: Issue_Comment + - isAction: + action: Created + - isActivitySender: + issueAuthor: True + - isOpen + - or: + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback then: - - addLabel: - label: action-required - - removeLabel: - label: Needs Author Feedback - - removeLabel: - label: Needs Information + - addLabel: + label: action-required + - removeLabel: + label: Needs Author Feedback + - removeLabel: + label: Needs Information - description: When a stale issue has any activity (other than closing) remove the stale label. if: - - payloadType: Issues - - not: - isAction: - action: Closed - - hasLabel: - label: stale - - not: - labelAdded: + - payloadType: Issues + - not: + isAction: + action: Closed + - hasLabel: label: stale + - not: + labelAdded: + label: stale then: - - removeLabel: - label: stale + - removeLabel: + label: stale - description: When a stale issue has a comment, remove the stale label. if: - - payloadType: Issue_Comment - - hasLabel: - label: stale + - payloadType: Issue_Comment + - hasLabel: + label: stale then: - - removeLabel: - label: stale + - removeLabel: + label: stale - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. if: - - payloadType: Issues - - labelAdded: - label: SR-Support Request - - isOpen + - payloadType: Issues + - labelAdded: + label: SR-Support Request + - isOpen then: - - addReply: - reply: >- - Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. + - addReply: + reply: >- + Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. - Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. + Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. - Please do mention this issue in the case description so our teams can coordinate to help you. + Please do mention this issue in the case description so our teams can coordinate to help you. - Thank you! + Thank you! - description: When any activity is performed by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. if: - - payloadType: Issues - - isOpen - - or: - - hasLabel: - label: 'Needs Attention :wave:' - - hasLabel: - label: action-required - - or: - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasPermission: - permission: Admin - - activitySenderHasAssociation: - association: Member - - isAction: - action: Labeled - - isAction: - action: Unlabeled - - isAction: - action: Null + - payloadType: Issues + - isOpen + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required + - or: + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasPermission: + permission: Admin + - activitySenderHasAssociation: + association: Member + - isAction: + action: Labeled + - isAction: + action: Unlabeled + - isAction: + action: Null then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' + - removeLabel: + label: action-required + - removeLabel: + label: 'Needs Attention :wave:' - description: When a comment is made by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. if: - - payloadType: Issue_Comment - - isOpen - - or: - - activitySenderHasPermission: - permission: Admin - - activitySenderHasPermission: - permission: Write - - activitySenderHasAssociation: - association: Collaborator - - activitySenderHasAssociation: - association: Owner - - activitySenderHasAssociation: - association: Contributor - - activitySenderHasAssociation: - association: Member - - or: - - hasLabel: - label: 'Needs Attention :wave:' - - hasLabel: - label: action-required + - payloadType: Issue_Comment + - isOpen + - or: + - activitySenderHasPermission: + permission: Admin + - activitySenderHasPermission: + permission: Write + - activitySenderHasAssociation: + association: Collaborator + - activitySenderHasAssociation: + association: Owner + - activitySenderHasAssociation: + association: Contributor + - activitySenderHasAssociation: + association: Member + - or: + - hasLabel: + label: 'Needs Attention :wave:' + - hasLabel: + label: action-required then: - - removeLabel: - label: action-required - - removeLabel: - label: 'Needs Attention :wave:' + - removeLabel: + label: action-required + - removeLabel: + label: 'Needs Attention :wave:' - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/shipped label. if: - - payloadType: Issue_Comment - - isOpen - - not: - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False + - payloadType: Issue_Comment + - isOpen + - not: + hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False then: - - addLabel: - label: resolution/shipped + - addLabel: + label: resolution/shipped - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/fix-released label. if: - - payloadType: Issue_Comment - - isOpen - - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False + - payloadType: Issue_Comment + - isOpen + - hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False then: - - addLabel: - label: resolution/fix-released + - addLabel: + label: resolution/fix-released onFailure: -onSuccess: +onSuccess: \ No newline at end of file From 29121614249a37b02866a9f7237f7a1579c31b19 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 15:10:13 +1100 Subject: [PATCH 05/12] YAML fix. --- .github/policies/issueLifecycleManagementEventDriven.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index e03f43ef..ed2b6680 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -11,10 +11,11 @@ configuration: - description: When a new announcement is created and not assigned to someone, assign it to the Author if: - payloadType: Issues + - isAction: + action: Created - isActivitySender: issueAuthor: True - and: - - isOpen - hasLabel: label: announcement - not: From 56e2bcf6cf1d99a958b0a022d69baf2d11252af2 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 15:14:18 +1100 Subject: [PATCH 06/12] YAML fix --- .../issueLifecycleManagementEventDriven.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index ed2b6680..2fe41bc3 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -11,15 +11,13 @@ configuration: - description: When a new announcement is created and not assigned to someone, assign it to the Author if: - payloadType: Issues - - isAction: - action: Created - - isActivitySender: - issueAuthor: True - and: - - hasLabel: - label: announcement - - not: - - isAssignedToSomeone + - isOpen + - hasLabel: + label: announcement + - not: + and: + - isAssignedToSomeone then: - assignTo: author: true From 7e5bff8aba054a1191787309946c39eee55da7cc Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 15:16:05 +1100 Subject: [PATCH 07/12] YAML fix --- .github/policies/issueLifecycleManagementEventDriven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index 2fe41bc3..48c6c9b0 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -14,7 +14,7 @@ configuration: - and: - isOpen - hasLabel: - label: announcement + label: announcement - not: and: - isAssignedToSomeone From 6b0d6a91b6710c5121850edc271a5828f0a3d448 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Thu, 2 Jan 2025 15:16:54 +1100 Subject: [PATCH 08/12] YAML fix --- .github/policies/issueLifecycleManagementEventDriven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index 48c6c9b0..61be6f9f 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -20,7 +20,7 @@ configuration: - isAssignedToSomeone then: - assignTo: - author: true + author: true - description: When a comment is added to an open issue by the issue author, add the 'action-required' label and remove the 'Needs Information' and 'Needs Author Feedback' labels. if: - payloadType: Issue_Comment From 35f75b5680d3566efcfae89f959dda0dedbb7e5c Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Fri, 10 Jan 2025 15:23:46 +1100 Subject: [PATCH 09/12] Updates to initial triage; stale bugs and feature requests regardless of whether they are assigned or not; mention assignees (if any). --- .../issueLifecycleManagementPeriodic.yml | 640 +++++++++--------- 1 file changed, 318 insertions(+), 322 deletions(-) diff --git a/.github/policies/issueLifecycleManagementPeriodic.yml b/.github/policies/issueLifecycleManagementPeriodic.yml index b0b5cc8e..e018b7b2 100644 --- a/.github/policies/issueLifecycleManagementPeriodic.yml +++ b/.github/policies/issueLifecycleManagementPeriodic.yml @@ -8,326 +8,322 @@ where: configuration: resourceManagementConfiguration: scheduledSearches: - - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 14 - - isNotLabeledWith: - label: stale - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: bug - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any open unassigned issue that is a bug that has 30 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 30 - - isNotLabeledWith: - label: stale - - hasLabel: - label: bug - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any open unassigned issue that is a feature request without activity for 180 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotAssigned - - noActivitySince: - days: 180 - - isNotLabeledWith: - label: stale - - hasLabel: - label: feature-request - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any issue awaiting further information or author feedback that has had no activity for 7 days - runs daily at 1am - frequencies: - - daily: - time: 1:0 - filters: - - isIssue - - isOpen - - isNotLabeledWith: - label: stale - - hasLabel: - label: Needs Information - - hasLabel: - label: Needs Author Feedback - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - description: Stale any non-bug or feature request issue that is tagged as requiring Microsoft support that has had no activity for 7 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: SR-Support Request - - isNotLabeledWith: - label: bug - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: stale - - noActivitySince: - days: 7 - actions: - - addLabel: - label: stale - - addReply: - reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. - - description: Stale any open announcements that have 180 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: announcement - - noActivitySince: - days: 180 - - isNotLabeledWith: - label: stale - actions: - - addLabel: - label: stale - - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Mark as needing attention and tag members of AKS team - 5 days inactivity - runs several times a day - frequencies: - - daily: - time: 9:0 - - daily: - time: 12:0 - - daily: - time: 15:0 - - daily: - time: 18:0 - filters: - - isIssue - - isOpen - - isNotAssigned - - hasLabel: - label: action-required - - noActivitySince: - days: 5 - - isNotLabeledWith: - label: Needs Author Feedback - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: 'Needs Attention :wave:' - actions: - - addReply: - reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure - - addLabel: - label: 'Needs Attention :wave:' - - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: triage - - noActivitySince: - days: 2 - - isNotLabeledWith: - label: action-required - actions: - - addLabel: - label: action-required - - addReply: - reply: Triage required from @Azure/aks-pm ${assignees} - - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: 'Needs Attention :wave:' - - noActivitySince: - days: 14 - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: Needs Author Feedback - actions: - - addReply: - reply: Issue needing attention of @Azure/aks-leads - - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am - frequencies: - - weekday: - day: Wednesday - time: 11:0 - filters: - - isIssue - - isOpen - - isNotAssigned - - hasNoLabel - actions: - - addReply: - reply: '@Azure/aks-pm issue needs labels' - - description: Mark as 'action required' any open item without specific labels - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotLabeledWith: - label: triage - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: action-required - - isNotLabeledWith: - label: announcement - - isNotLabeledWith: - label: awareness - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: wontfix - - isNotLabeledWith: - label: Feedback - - isNotLabeledWith: - label: enhancement - - isNotLabeledWith: - label: resolution/fix-released - - noActivitySince: - days: 30 - - isNotLabeledWith: - label: service-updates - - isNotLabeledWith: - label: resolution/shipped - actions: - - addLabel: - label: action-required - - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/answer-provided - - noActivitySince: - days: 2 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. - - closeIssue - - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/fix-released - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. - - closeIssue - - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/shipped - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. - - closeIssue - - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/other - - noActivitySince: - days: 3 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. - - closeIssue - - description: Close issues marked as duplicates after 1 day inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: resolution/duplicate - - noActivitySince: - days: 1 - actions: - - addReply: - reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. - - closeIssue - - description: Close stale issues after 7 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: stale - - noActivitySince: - days: 7 - actions: - - addReply: - reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. - - closeIssue + - description: Mark as needing attention and tag AKS triage team members - 5 days inactivity - runs several times a day + frequencies: + - daily: + time: 9:0 + - daily: + time: 12:0 + - daily: + time: 15:0 + - daily: + time: 18:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 5 + - isNotLabeledWith: + label: Needs Author Feedback + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: 'Needs Attention :wave:' + actions: + - addReply: + reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure + - addLabel: + label: 'Needs Attention :wave:' + - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: stale + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Stale any open issue that is a bug that has 30 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: stale + - hasLabel: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. ${assignees} + - description: Stale any open issue that is a feature request without activity for 180 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - noActivitySince: + days: 180 + - isNotLabeledWith: + label: stale + - hasLabel: + label: feature-request + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. ${assignees} + - description: Stale any issue awaiting further information or author feedback that has had no activity for 7 days - runs daily at 1am + frequencies: + - daily: + time: 1:0 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: stale + - hasLabel: + label: Needs Information + - hasLabel: + label: Needs Author Feedback + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - description: Stale any non-bug or feature request issue that is tagged as requiring Microsoft support that has had no activity for 7 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: SR-Support Request + - isNotLabeledWith: + label: bug + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: stale + - noActivitySince: + days: 7 + actions: + - addLabel: + label: stale + - addReply: + reply: Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added. + - description: Stale any open announcements that have 90 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: announcement + - noActivitySince: + days: 90 + - isNotLabeledWith: + label: stale + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. + - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: triage + - noActivitySince: + days: 2 + - isNotLabeledWith: + label: action-required + actions: + - addLabel: + label: action-required + - addReply: + reply: Triage required from @Azure/aks-pm ${assignees} + - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: 'Needs Attention :wave:' + - noActivitySince: + days: 14 + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: Needs Author Feedback + actions: + - addReply: + reply: Issue needing attention of @Azure/aks-leads + - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am + frequencies: + - weekday: + day: Wednesday + time: 11:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasNoLabel + actions: + - addReply: + reply: '@Azure/aks-pm issue needs labels' + - description: Mark as 'action required' any open item without specific labels - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotLabeledWith: + label: triage + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: action-required + - isNotLabeledWith: + label: announcement + - isNotLabeledWith: + label: awareness + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: + label: wontfix + - isNotLabeledWith: + label: Feedback + - isNotLabeledWith: + label: enhancement + - isNotLabeledWith: + label: resolution/fix-released + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: service-updates + - isNotLabeledWith: + label: resolution/shipped + actions: + - addLabel: + label: action-required + - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/answer-provided + - noActivitySince: + days: 2 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. + - closeIssue + - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/fix-released + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/shipped + - noActivitySince: + days: 7 + actions: + - addReply: + reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. + - closeIssue + - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours + frequencies: + - hourly: + hour: 12 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/other + - noActivitySince: + days: 3 + actions: + - addReply: + reply: Thanks for reaching out. I'm closing this issue as it was marked resolved and it hasn't had activity for 3 days. If it continues please reply or open a support ticket. + - closeIssue + - description: Close issues marked as duplicates after 1 day inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: resolution/duplicate + - noActivitySince: + days: 1 + actions: + - addReply: + reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. + - closeIssue + - description: Close stale issues after 7 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: stale + - noActivitySince: + days: 7 + actions: + - addReply: + reply: This issue will now be closed because it hasn't had any activity for 7 days after stale. ${issueAuthor} feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion. + - closeIssue onFailure: -onSuccess: +onSuccess: \ No newline at end of file From bc872356db5f18471ce1154f95d1e35d0a0bfbc7 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Fri, 31 Jan 2025 16:22:15 +1100 Subject: [PATCH 10/12] Standalone bug management (events, timed); Add label hints to templates. --- .github/ISSUE_TEMPLATE/bug_report.md | 13 +- .github/ISSUE_TEMPLATE/feature_request.md | 2 + .github/ISSUE_TEMPLATE/feedback.md | 2 + .github/ISSUE_TEMPLATE/question.md | 2 + .../policies/bugIssueLifecycleManagement.yml | 66 ++++++ .../issueLifecycleManagementEventDriven.yml | 46 +--- .../issueLifecycleManagementPeriodic.yml | 197 ++++++++---------- 7 files changed, 164 insertions(+), 164 deletions(-) create mode 100644 .github/policies/bugIssueLifecycleManagement.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 79614750..b9a0f0d6 100755 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -10,8 +10,11 @@ assignees: '' **Describe the bug** A clear and concise description of what the bug is. +Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area you believe your bug relates to. + **To Reproduce** Steps to reproduce the behavior: + 1. Run command '...' 2. See error @@ -19,14 +22,14 @@ Steps to reproduce the behavior: A clear and concise description of what you expected to happen. **Screenshots** -If applicable, add screenshots to help explain your problem. +If applicable, add screenshots to help explain your problem. Make sure not to include sensitive or personal information. **Environment (please complete the following information):** - - CLI Version [e.g. 3.22] - - Kubernetes version [e.g. 1.24.3] - - CLI Extension version [e.g. 1.7.5] if applicable - - Browser [e.g. chrome, safari] is applicable +- CLI Version [e.g. 3.22] +- Kubernetes version [e.g. 1.24.3] +- CLI Extension version [e.g. 1.7.5] if applicable +- Browser [e.g. chrome, safari] is applicable **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index f7cd76dc..b7c2b85a 100755 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -10,6 +10,8 @@ assignees: '' **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] +Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area your feature request relates to. + **Describe the solution you'd like** A clear and concise description of what you want to happen. diff --git a/.github/ISSUE_TEMPLATE/feedback.md b/.github/ISSUE_TEMPLATE/feedback.md index 7db2dc97..17dce48a 100755 --- a/.github/ISSUE_TEMPLATE/feedback.md +++ b/.github/ISSUE_TEMPLATE/feedback.md @@ -10,5 +10,7 @@ assignees: '' **Describe your scenario** A clear and concise description of what your scenario is. +Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area your feedback relates to. + **Feedback** Your feedback/comment diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index d4375f2d..40355468 100755 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -10,5 +10,7 @@ assignees: '' **Describe scenario** A clear and concise description of what your scenario is. +Optional: Set the appropriate GitHub label(s) to indicate the AKS feature or area your question relates to. + **Question** Your question diff --git a/.github/policies/bugIssueLifecycleManagement.yml b/.github/policies/bugIssueLifecycleManagement.yml new file mode 100644 index 00000000..ebe93ef4 --- /dev/null +++ b/.github/policies/bugIssueLifecycleManagement.yml @@ -0,0 +1,66 @@ +id: bugIssueLifecycleManagement +name: GitOps.PullRequestIssueManagement +description: Manage lifecycle of issues labeled as bugs +owner: Azure/aks-pm +resource: repository +disabled: false +where: +configuration: + resourceManagementConfiguration: + scheduledSearches: + - description: Stale any open bugs that have 30 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: stale + - hasLabel: + label: bug + actions: + - addLabel: + label: stale + - addReply: + reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. ${assignees} + eventResponderTasks: + - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. + if: + - payloadType: Issues + - labelAdded: + label: SR-Support Request + - isOpen + then: + - addLabel: + label: Needs Author Feedback + - addReply: + reply: >- + Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. + + + Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. + + + Please do mention this issue in the case description so our teams can coordinate to help you. When you have created the support ticket, please add the case number as a comment to this issue to help us with tracking. + + + Thank you! + - description: If a new comment containing 'Released/Shipped/Fixed on release' is added to a bug', add the resolution labels. + if: + - payloadType: Issue_Comment + - isOpen + - hasLabel: + label: bug + - commentContains: + pattern: Released/Shipped/Fixed on release + isRegex: False + then: + - addLabel: + label: resolution/fix-released + - addLabel: + label: resolution/shipped +onFailure: +onSuccess: \ No newline at end of file diff --git a/.github/policies/issueLifecycleManagementEventDriven.yml b/.github/policies/issueLifecycleManagementEventDriven.yml index 61be6f9f..9d25b30b 100644 --- a/.github/policies/issueLifecycleManagementEventDriven.yml +++ b/.github/policies/issueLifecycleManagementEventDriven.yml @@ -1,7 +1,7 @@ id: issueLifecycleManagementEventDriven name: GitOps.PullRequestIssueManagement description: Manage issue lifecycle via event-driven triggers -owner: +owner: Azure/aks-pm resource: repository disabled: false where: @@ -63,25 +63,6 @@ configuration: then: - removeLabel: label: stale - - description: When an issue is labeled with 'SR-Support Request', add a reply with instructions on how to create a support ticket. - if: - - payloadType: Issues - - labelAdded: - label: SR-Support Request - - isOpen - then: - - addReply: - reply: >- - Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue. - - - Follow the steps [here](https://azure.microsoft.com/support/create-ticket/) to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue. - - - Please do mention this issue in the case description so our teams can coordinate to help you. - - - Thank you! - description: When any activity is performed by authorized user on an issue labeled as 'action required' or 'needs attention' then remove these labels. if: - payloadType: Issues @@ -142,30 +123,5 @@ configuration: label: action-required - removeLabel: label: 'Needs Attention :wave:' - - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/shipped label. - if: - - payloadType: Issue_Comment - - isOpen - - not: - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/shipped - - description: If a new comment containing key words is added to an Issue with the 'bug' label, add the resolution/fix-released label. - if: - - payloadType: Issue_Comment - - isOpen - - hasLabel: - label: bug - - commentContains: - pattern: Released/Shipped/Fixed on release - isRegex: False - then: - - addLabel: - label: resolution/fix-released onFailure: onSuccess: \ No newline at end of file diff --git a/.github/policies/issueLifecycleManagementPeriodic.yml b/.github/policies/issueLifecycleManagementPeriodic.yml index e018b7b2..09551580 100644 --- a/.github/policies/issueLifecycleManagementPeriodic.yml +++ b/.github/policies/issueLifecycleManagementPeriodic.yml @@ -1,14 +1,14 @@ id: issueLifecycleManagementPeriodic name: GitOps.PullRequestIssueManagement description: Manage issue lifecycle via periodic parsing of issues -owner: +owner: Azure/aks-pm resource: repository disabled: false where: configuration: resourceManagementConfiguration: scheduledSearches: - - description: Mark as needing attention and tag AKS triage team members - 5 days inactivity - runs several times a day + - description: Mark as 'needs attention' and tag AKS triage team members - 5 days inactivity - runs several times a day frequencies: - daily: time: 9:0 @@ -35,45 +35,112 @@ configuration: reply: Action required from @aritraghosh, @julia-yin, @AllenWen-at-Azure - addLabel: label: 'Needs Attention :wave:' - - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours + - description: Mark as 'action required' any open item without certain labels - 30 days inactivity - runs every 6 hours frequencies: - hourly: hour: 6 filters: - isIssue - isOpen - - isNotAssigned - - noActivitySince: - days: 14 - isNotLabeledWith: - label: stale + label: triage + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: action-required + - isNotLabeledWith: + label: announcement + - isNotLabeledWith: + label: awareness - isNotLabeledWith: label: feature-request - isNotLabeledWith: - label: bug + label: wontfix + - isNotLabeledWith: + label: Feedback + - isNotLabeledWith: + label: enhancement + - isNotLabeledWith: + label: resolution/fix-released + - noActivitySince: + days: 30 + - isNotLabeledWith: + label: service-updates + - isNotLabeledWith: + label: resolution/shipped actions: - addLabel: - label: stale + label: action-required + - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - hasLabel: + label: triage + - noActivitySince: + days: 2 + - isNotLabeledWith: + label: action-required + actions: + - addLabel: + label: action-required - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Stale any open issue that is a bug that has 30 days inactivity - runs every 6 hours + reply: Triage required from @Azure/aks-pm ${assignees} + - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am + frequencies: + - weekday: + day: Wednesday + time: 11:0 + filters: + - isIssue + - isOpen + - isNotAssigned + - hasNoLabel + actions: + - addReply: + reply: '@Azure/aks-pm issue needs labels' + - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours frequencies: - hourly: hour: 6 filters: - isIssue - isOpen + - hasLabel: + label: 'Needs Attention :wave:' - noActivitySince: - days: 30 + days: 14 + - isNotLabeledWith: + label: Needs Information + - isNotLabeledWith: + label: Needs Author Feedback + actions: + - addReply: + reply: Issue needing attention of @Azure/aks-leads + - description: Stale any open unassigned issue that is not a bug or feature request that has 14 days inactivity - runs every 6 hours + frequencies: + - hourly: + hour: 6 + filters: + - isIssue + - isOpen + - isNotAssigned + - noActivitySince: + days: 14 - isNotLabeledWith: label: stale - - hasLabel: + - isNotLabeledWith: + label: feature-request + - isNotLabeledWith: label: bug actions: - addLabel: label: stale - addReply: - reply: This issue has been automatically marked as stale because it has not had any activity for **30 days**. It will be closed if no further activity occurs **within 7 days of this comment**. ${assignees} + reply: This issue has been automatically marked as stale because it has not had any activity for **14 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - description: Stale any open issue that is a feature request without activity for 180 days - runs every 6 hours frequencies: - hourly: @@ -150,91 +217,6 @@ configuration: label: stale - addReply: reply: This issue has been automatically marked as stale because it has not had any activity for **180 days**. It will be closed if no further activity occurs **within 7 days of this comment**. - - description: Notify AKS PMs of issues marked as 'triage' with no activity for 2 days - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: triage - - noActivitySince: - days: 2 - - isNotLabeledWith: - label: action-required - actions: - - addLabel: - label: action-required - - addReply: - reply: Triage required from @Azure/aks-pm ${assignees} - - description: Notify AKS Leads of 'needs attention' items not waiting on information or author feedback after 14 days inactivity - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - hasLabel: - label: 'Needs Attention :wave:' - - noActivitySince: - days: 14 - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: Needs Author Feedback - actions: - - addReply: - reply: Issue needing attention of @Azure/aks-leads - - description: Notify AKS PMs for issues that are unassigned and unlabeled - runs weekly on Wednesday at 11am - frequencies: - - weekday: - day: Wednesday - time: 11:0 - filters: - - isIssue - - isOpen - - isNotAssigned - - hasNoLabel - actions: - - addReply: - reply: '@Azure/aks-pm issue needs labels' - - description: Mark as 'action required' any open item without specific labels - runs every 6 hours - frequencies: - - hourly: - hour: 6 - filters: - - isIssue - - isOpen - - isNotLabeledWith: - label: triage - - isNotLabeledWith: - label: Needs Information - - isNotLabeledWith: - label: action-required - - isNotLabeledWith: - label: announcement - - isNotLabeledWith: - label: awareness - - isNotLabeledWith: - label: feature-request - - isNotLabeledWith: - label: wontfix - - isNotLabeledWith: - label: Feedback - - isNotLabeledWith: - label: enhancement - - isNotLabeledWith: - label: resolution/fix-released - - noActivitySince: - days: 30 - - isNotLabeledWith: - label: service-updates - - isNotLabeledWith: - label: resolution/shipped - actions: - - addLabel: - label: action-required - description: Close issue marked as 'answer provided' that has had no activity for 2 days - runs every 6 hours frequencies: - hourly: @@ -250,7 +232,7 @@ configuration: - addReply: reply: Thanks for reaching out. I'm closing this issue as it was marked with "Answer Provided" and it hasn't had activity for 2 days. - closeIssue - - description: Close issue marked as 'fix released' that has had no activity for 7 days - runs every 12 hours + - description: Close issue marked as 'fix released' or 'shipped' that has had no activity for 7 days - runs every 12 hours frequencies: - hourly: hour: 12 @@ -259,26 +241,13 @@ configuration: - isOpen - hasLabel: label: resolution/fix-released - - noActivitySince: - days: 7 - actions: - - addReply: - reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" and it hasn't had activity for 7 days. - - closeIssue - - description: Close issue marked as 'shipped' that has and no activity for 7 days - runs every 12 hours - frequencies: - - hourly: - hour: 12 - filters: - - isIssue - - isOpen - hasLabel: label: resolution/shipped - noActivitySince: days: 7 actions: - addReply: - reply: Thank you for the feature request. I'm closing this issue as this feature has shipped and it hasn't had activity for 7 days. + reply: Thanks for reaching out. I'm closing this issue as it was marked with "Fix released" or "shipped" and it hasn't had activity for 7 days. - closeIssue - description: Close issue marked as 'resolved/other' that has and no activity for 3 days - runs every 12 hours frequencies: From a54cd9ffc4872e556c48ec4a16cf84b75d109f3d Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Fri, 31 Jan 2025 16:52:12 +1100 Subject: [PATCH 11/12] Added Aritra to mentions for metrics/insights --- .github/policies/manageAssignees.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/policies/manageAssignees.yml b/.github/policies/manageAssignees.yml index d51415f2..f5bce8ad 100644 --- a/.github/policies/manageAssignees.yml +++ b/.github/policies/manageAssignees.yml @@ -25,7 +25,7 @@ configuration: - mentionUsers: mentionees: - ganga1980 - - saaror + - aritraghosh replyTemplate: ${mentionees} would you be able to assist? assignMentionees: True # Azure Monitor @@ -38,7 +38,7 @@ configuration: - mentionUsers: mentionees: - vishiy - - saaror + - aritraghosh replyTemplate: ${mentionees} would you be able to assist? assignMentionees: True # Policy From 5ee42a801489442e97e7279a85b38ea25b9eb784 Mon Sep 17 00:00:00 2001 From: Simon Waight Date: Tue, 4 Feb 2025 08:29:33 +1100 Subject: [PATCH 12/12] Fix two codespell issues (unrelated to PR, but flagged for some reason). --- CHANGELOG.md | 2 +- examples/vnet/00-README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f17971..c8664d62 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4248,7 +4248,7 @@ This release is rolling out to all regions - ETA for conclusion 2021-02-17 for p * Preview Features * AKS now supports Private Clusters created with a custom DNS zone (BYO DNS zone). Read more [here](https://docs.microsoft.com/azure/aks/private-clusters#configure-private-dns-zone). * AKS now allows you to reuse your standard LoadBalancer outbound IP (created by AKS) as Inbound IP to your services (and vice-versa) from Kubernetes v1.20+. - * AKS now supports re-using the same Load Balancer IP across multiple services from Kubernetes v1.20+. + * AKS now supports reusing the same Load Balancer IP across multiple services from Kubernetes v1.20+. * Behavioral Change * The AKS default storage class behavior now will be to delay the creation of a Persistent Volume until a pod is created. Allowing the Persistent Volume to be created in the same zone as the pod. Read more [here](https://docs.microsoft.com/azure/aks/azure-disk-csi#create-a-custom-storage-class). * Component Updates diff --git a/examples/vnet/00-README.md b/examples/vnet/00-README.md index 5c23afec..365bb195 100755 --- a/examples/vnet/00-README.md +++ b/examples/vnet/00-README.md @@ -16,7 +16,7 @@ The IP address plan used for this cluster consists of a VNET, a Subnet (VNET-Loc | Address | Description | | ------- | ----------- | | 172.16.0.1/24 | IP address and netmask (CIDR notation) for the Docker bridge address. | -| 172.15.8.2 | IP address reserved from the Kubernets Service range used for DNS. | +| 172.15.8.2 | IP address reserved from the Kubernetes Service range used for DNS. | ## Environment