2024-09-24 21:51:06 +03:00
revision : 2
schema-version : 5
2021-08-19 00:18:41 +03:00
owner-ms-alias : adegeo
config :
DocMetadata :
Headers :
- [ "---" , "#### " ]
ParserRegex : "^\\* (.*): (.*)$"
2024-09-24 21:51:06 +03:00
ContentUrlRegex :
- "### Page URL\n\n(.*)"
2021-08-19 00:18:41 +03:00
issues :
unlabeled : "labeled"
labeled :
2024-09-24 21:51:06 +03:00
# Temporary label to mark issues as updated for Quest. The label is instantly removed
2021-08-19 00:18:41 +03:00
- check :
- type : query
2024-09-24 21:51:06 +03:00
value : "length(Issue.Labels[?Name == ':world_map: mapQUEST']) != `0`"
pass :
- labels-remove : [ ":world_map: mapQUEST" ]
# Handle issues with /svc /subsvc labels from label bot
- check :
- type : query
value : "length(Issue.Labels[?contains(Name, '/svc') || contains(Name, '/subsvc')]) != `0`"
# If the issue has a /svc or /subsvc label, it must be categorized otherwise it's considered untriaged
2021-08-19 00:18:41 +03:00
pass :
- check :
- type : query
2024-09-24 21:51:06 +03:00
value : "length(Issue.Labels[?Name == ':pushpin: seQUESTered' || Name == ':world_map: reQUEST' || Name == 'training-module' || Name == 'doc-enhancement' || Name == 'product-question' || Name == 'in-progress' || Name == 'test-issue' || Name == 'kudos' || Name == 'loc' || Name == 'doc-bug' || Name == 'product-feedback' || Name == 'code-of-conduct' || Name == 'support-request' || Name == 'duplicate' || Name == 'resolved-by-customer' || Name == 'docs-experience' || Name == 'doc-provided' || Name == 'doc-idea' || Name == 'needs-more-info']) != `0`"
2021-08-19 00:18:41 +03:00
pass :
- labels-remove : [ ":watch: Not Triaged" ]
fail :
- labels-add : [ ":watch: Not Triaged" ]
2024-09-24 21:51:06 +03:00
# Not an doc issue specifically
fail :
# If the issue is open, then we'll allow some further processing on it. If it's closed, ignore it and let the user do what they want.
- check :
- type : query
value : "Issue.State.StringValue == 'open'"
pass :
- check :
- type : query
value : "length(Issue.Labels[?Name == ':pushpin: seQUESTered' || Name == ':world_map: reQUEST' || Name == 'training-module' || Name == 'video-content'] || Name == 'test-issue') != `0`"
pass :
- labels-remove : [ ":watch: Not Triaged" ]
fail :
- labels-add : [ ":watch: Not Triaged" ]
2021-08-19 00:18:41 +03:00
opened :
# New issue opened, add Not Triaged
- labels-add : [ ":watch: Not Triaged" ]
2024-09-24 21:51:06 +03:00
# Dependabot opened issue, label it
- check :
- type : query
value : "Issue.User.Login == 'dependabot'"
pass :
- labels-add : [ "dependencies" ]
# Try to detect an empty issue
- check :
- type : comment-body
value : "### Description[\\n\\r]+\\[Enter feedback here\\][\\n\\r]+###"
pass :
- labels-add : [ "needs-more-info" ]
- labels-remove : [ ":watch: Not Triaged" ]
- close
# Add links to related issues if it's a doc issue
- check :
- type : metadata-exists
- type : variable-exists
name : "document_version_independent_id"
pass :
- link-related-issues
2021-08-19 00:18:41 +03:00
reopened :
# Remove won't fix label
- labels-remove : [ "won't fix" ]
closed :
# Issue closed, remove in-progress and not triaged labels
- labels-remove : [ "in-progress" , ":watch: Not Triaged" ]
2024-09-24 21:51:06 +03:00
# Check if the issue was closed by the user who opened it
- check :
- type : query
value : "Issue.User.Id == EventPayload.sender.id"
pass :
- labels-add : [ "resolved-by-customer" ]
- labels-remove : [ ":watch: Not Triaged" ]
2021-08-19 00:18:41 +03:00
2024-09-24 21:51:06 +03:00
projects_v2_item :
2021-08-19 00:18:41 +03:00
2024-09-24 21:51:06 +03:00
reordered :
2021-08-19 00:18:41 +03:00
2024-09-24 21:51:06 +03:00
- labels-add : [ ":world_map: mapQUEST" ]
2021-08-19 00:18:41 +03:00
2024-09-25 02:28:46 +03:00
edited :
- check :
- type : query
value : "EventPayload.changes.field_value.field_name == 'Priority' || EventPayload.changes.field_value.field_name == 'Size'"
pass :
- labels-add : [ ":world_map: mapQUEST" ]
2021-08-19 00:18:41 +03:00
issue_comment :
created :
# someone creates a comment with #please-review in it, add changes-addressed label
- check :
- type : query
2024-09-24 21:51:06 +03:00
value : "Issue.State.StringValue == 'open' && Issue.User.Id == Comment.User.Id"
2021-08-19 00:18:41 +03:00
- type : comment-body
value : ^#please-review$
pass :
- labels-add : [ "changes-addressed" ]