Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to issue management configuration. #4728

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
13 changes: 8 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ 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

**Expected 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.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/feedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 0 additions & 21 deletions .github/lock.yaml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old config file no longer used.

This file was deleted.

33 changes: 0 additions & 33 deletions .github/move.yml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old config file no longer used.

This file was deleted.

66 changes: 66 additions & 0 deletions .github/policies/bugIssueLifecycleManagement.yml
Original file line number Diff line number Diff line change
@@ -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:
127 changes: 127 additions & 0 deletions .github/policies/issueLifecycleManagementEventDriven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
id: issueLifecycleManagementEventDriven
name: GitOps.PullRequestIssueManagement
description: Manage issue lifecycle via event-driven triggers
owner: Azure/aks-pm
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
- and:
- isOpen
- hasLabel:
label: announcement
- not:
and:
- 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 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:'
onFailure:
onSuccess:
Loading