forked from dotnet/docs-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.repoman.yml
87 lines (65 loc) · 2.61 KB
/
.repoman.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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"]