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, '/prod') || contains(name, '/tech')]) != `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]" - check: - type: query value: "PullRequest.base.ref != 'live'" pass: - files-changed: - path: "(?i).*dotnet-desktop-guide\/framework\/wpf.*" run: - labels-add: ["dotnet-framework/prod", "dotnet-wpf/tech"] - path: "(?i).*dotnet-desktop-guide\/framework\/winforms.*" run: - labels-add: ["dotnet-framework/prod", "dotnet-winforms/tech"] - path: "(?i).*dotnet-desktop-guide\/net\/wpf.*" run: - labels-add: ["dotnet-desktop/prod", "dotnet-wpf/tech"] - path: "(?i).*dotnet-desktop-guide\/net\/winforms.*" run: - labels-add: ["dotnet-desktop/prod", "dotnet-winforms/tech"] 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"]