67 строки
1.9 KiB
YAML
67 строки
1.9 KiB
YAML
revision: 1
|
|
schema-version: 1
|
|
owner-ms-alias: adegeo
|
|
|
|
config:
|
|
DocMetadata:
|
|
Headers:
|
|
- ["---", "#### "]
|
|
|
|
ParserRegex: "^\\* (.*): (.*)$"
|
|
|
|
issues:
|
|
|
|
unlabeled: "labeled"
|
|
|
|
labeled:
|
|
|
|
# Handle issues with /prod /tech labels from label bot
|
|
# Manages the Not Triaged label for issues missing/having an org category issue
|
|
- check:
|
|
- type: query
|
|
value: "length(Issue.labels[?contains(name, '/svc') || contains(name, '/subsvc')]) != `0`"
|
|
pass:
|
|
- check:
|
|
- type: query
|
|
value: "length(Issue.labels[?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`"
|
|
pass:
|
|
- labels-remove: [":watch: Not Triaged"]
|
|
fail:
|
|
- labels-add: [":watch: Not Triaged"]
|
|
|
|
opened:
|
|
# New issue opened, add Not Triaged
|
|
- labels-add: [":watch: Not Triaged"]
|
|
|
|
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"]
|
|
|
|
pull_request:
|
|
|
|
reopened: opened
|
|
|
|
opened:
|
|
|
|
# Set default sprint for new PRs
|
|
#- milestone-set: "![sprint]"
|
|
|
|
issue_comment:
|
|
|
|
created:
|
|
|
|
# someone creates a comment with #please-review in it, add changes-addressed label
|
|
- check:
|
|
- type: query
|
|
value: "Issue.state == 'open' && Issue.user.id == Comment.user.id"
|
|
- type: comment-body
|
|
value: ^#please-review$
|
|
pass:
|
|
- labels-add: ["changes-addressed"]
|