Skip to content

Commit

Permalink
Update .repoman.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adegeo authored Sep 23, 2024
1 parent 298c7fd commit fe8b79d
Showing 1 changed file with 42 additions and 16 deletions.
58 changes: 42 additions & 16 deletions .repoman.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
revision: 4
schema-version: 1
revision: 5
schema-version: 5
owner-ms-alias: adegeo

config:
Expand All @@ -21,42 +21,52 @@ issues:
# Temporary label to mark issues as updated for Quest. The label is instantly removed
- check:
- type: query
value: "length(Issue.labels[?name == ':world_map: mapQUEST']) != `0`"
value: "length(Issue.Labels[?Name == ':world_map: mapQUEST']) != `0`"
pass:
- labels-remove: [":world_map: mapQUEST"]

# Handle issues with /svc /subsvc 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`"
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
pass:
- check:
- type: query
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`"
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`"
pass:
- labels-remove: [":watch: Not Triaged"]
fail:
- labels-add: [":watch: Not Triaged"]

# 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: "length(Issue.labels[?name == ':pushpin: seQUESTered' || name == ':world_map: reQUEST' || name == 'training-module' || name == 'video-content']) != `0`"
value: "Issue.State.StringValue == 'open'"

pass:
- labels-remove: [":watch: Not Triaged"]
fail:
- labels-add: [":watch: Not Triaged"]
- 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"]

# Checks for binary/source incompatible checkboxes and adds a label
- check:
- type: query
value: "contains(Issue.body, '- [x] **Binary incompatible**') == `true` || contains(Issue.body, '- [X] **Binary incompatible**') == `true`"
value: "contains(InstanceData.IssuePrBody, '- [x] **Binary incompatible**') == `true` || contains(InstanceData.IssuePrBody, '- [X] **Binary incompatible**') == `true`"
pass:
- labels-add: ["binary incompatible"]

- check:
- type: query
value: "contains(Issue.body, '- [x] **Source incompatible**') == `true` || contains(Issue.body, '- [X] **Source incompatible**') == `true`"
value: "contains(InstanceData.IssuePrBody, '- [x] **Source incompatible**') == `true` || contains(InstanceData.IssuePrBody, '- [X] **Source incompatible**') == `true`"
pass:
- labels-add: ["source incompatible"]

Expand All @@ -67,7 +77,7 @@ issues:
# Dependabot opened issue, label it
- check:
- type: query
value: "Issue.user.login == 'dependabot'"
value: "Issue.User.Login == 'dependabot'"
pass:
- labels-add: ["dependencies"]

Expand All @@ -77,8 +87,17 @@ issues:
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

reopened:

# Remove won't fix label
Expand All @@ -92,9 +111,16 @@ issues:
# Check if the issue was closed by the user who opened it
- check:
- type: query
value: "Issue.user.id == Issue.closed_by.id"
value: "Issue.User.Id == EventPayload.sender.id"
pass:
- labels-add: ["resolved-by-customer"]
- labels-remove: [":watch: Not Triaged"]

projects_v2_item:

reordered:

- labels-add: [":world_map: mapQUEST"]

pull_request:

Expand All @@ -107,7 +133,7 @@ pull_request:

- check:
- type: query
value: "PullRequest.base.ref != 'live'"
value: "PullRequest.Base.Ref != 'live'"
pass:
- files-changed:
# csharplang
Expand Down Expand Up @@ -384,7 +410,7 @@ issue_comment:
# 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"
value: "Issue.State.StringValue == 'open' && Issue.User.Id == Comment.User.Id"
- type: comment-body
value: ^#please-review$
pass:
Expand Down

0 comments on commit fe8b79d

Please sign in to comment.