-
Notifications
You must be signed in to change notification settings - Fork 316
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
sjwaight
wants to merge
12
commits into
Azure:master
Choose a base branch
from
sjwaight:issue-lifecycle-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0377b4d
Remove probot configs;update issue management config
sjwaight 91dc401
Fix YAML parse issue
sjwaight 0fac7e6
Fix YAML indents
sjwaight 468b1d6
Fix YAML issue.
sjwaight 2912161
YAML fix.
sjwaight 56e2bcf
YAML fix
sjwaight 7e5bff8
YAML fix
sjwaight 6b0d6a9
YAML fix
sjwaight 35f75b5
Updates to initial triage; stale bugs and feature requests regardless…
sjwaight bc87235
Standalone bug management (events, timed); Add label hints to templates.
sjwaight a54cd9f
Added Aritra to mentions for metrics/insights
sjwaight 5ee42a8
Fix two codespell issues (unrelated to PR, but flagged for some reason).
sjwaight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Old config file no longer used. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
127
.github/policies/issueLifecycleManagementEventDriven.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.