merge main branch

This commit is contained in:
CXWTool Service Account
2021-06-11 05:01:06 +00:00
2 changed files with 87 additions and 81 deletions
-81
View File
@@ -1,81 +0,0 @@
{
"version": 3,
"configRevision": 3,
"issue": {
"labeled": {
"processor-conditional": {
"type": "query",
"value": "length(Issue.labels[?contains(name, '/prod') || contains(name, '/tech')]) != `0`",
"processors": {
"processor-conditional": {
"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`",
"actions": {
"labels-remove": ":watch: Not Triaged"
},
"actions-failed": {
"labels-add": ":watch: Not Triaged"
}
}
}
}
},
"opened": {
"processor-default": {
"labels-add": [ ":watch: Not Triaged" ]
}
},
"closed": {
"processor-default": {
"labels-remove": "in-progress"
}
}
},
"pullrequest": {
"opened": {
"processor-default": {
"milestone-set": "![sprint]"
},
"processor-conditional": {
"type": "query",
"value": "PullRequest.base.ref != 'live'",
"processors": {
"processor-files": {
"changedfile": {
"(?i).*dotnet-desktop-guide\/framework\/wpf.*": {
"labels-add": "dotnet-framework/prod,dotnet-wpf/tech"
},
"(?i).*dotnet-desktop-guide\/framework\/winforms.*": {
"labels-add": "dotnet-framework/prod,dotnet-winforms/tech"
},
"(?i).*dotnet-desktop-guide\/net\/wpf.*": {
"labels-add": "dotnet-desktop/prod,dotnet-wpf/tech"
},
"(?i).*dotnet-desktop-guide\/net\/winforms.*": {
"labels-add": "dotnet-desktop/prod,dotnet-winforms/tech"
}
}
}
}
}
}
},
"comment": {
"created": {
"processor-comment": {
"body": {
"^#please-review$": {
"condition-1": {
"type": "query",
"value": "Issue.state == 'open' && Issue.user.id == Comment.user.id",
"actions": {
"labels-add": "changes-addressed"
}
}
}
}
}
}
}
}
+87
View File
@@ -0,0 +1,87 @@
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"]