Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/ISSUE_TEMPLATE/customer-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ body:
required: true
attributes:
label: Article author

- type: textarea
id: metadata
validations:
required: false
attributes:
label: Metadata
description: >-
Documentation metadata will be applied here
44 changes: 44 additions & 0 deletions .github/policies/close-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Close issues
description: Close issues based on label
resource: repository
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- frequencies:
- daily:
time: 12:00
filters:
- isIssue
- isOpen
- hasLabel:
label: needs-more-info
- noActivitySince:
days: 14
actions:
- addReply:
reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further.
- closeIssue

eventResponderTasks:
- description: Remove needs-more-info label when author comments on issue
if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
- hasLabel:
label: needs-more-info
- isOpen
then:
- removeLabel:
label: needs-more-info

- description: Close issues labeled 'code-of-conduct'
if:
- payloadType: Issues
- hasLabel:
label: code-of-conduct
then:
- closeIssue
25 changes: 25 additions & 0 deletions .github/policies/issueManagement-emptyIssue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id: issueManagement.emptyIssue
name: GitOps.EmptyIssue
description: Checks for an issue created via learn that has an empty description from the template.
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Close an issue created with the learn template that has an empty body.
if:
- payloadType: Issues
- bodyContains:
pattern: '### Description[\n\r]+\[Enter feedback here\][\n\r]+###'
isRegex: true
then:
- addLabel: 'needs-more-info'
- removeLabel: ':watch: Not Triaged'
- closeIssue

triggerOnOwnActions: false

onFailure:
onSuccess:
54 changes: 54 additions & 0 deletions .github/policies/issueManagement-notTriaged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
id: issueManagement.notTriaged
name: GitOps.NotTriagedHandler
description: Ensures the Not Triaged label is added or removed when appropriate
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
Add "not triaged" label when:
* Issue is opened
* Issue is reopened
* 'needs-more-info' label removed
if:
- payloadType: Issues
- or:

- or:
- isAction:
action: Opened
- isAction:
action: Reopened

- labelRemoved:
label: 'needs-more-info'
then:
- addLabel: ':watch: Not Triaged'
triggerOnOwnActions: false

- description: >-
Remove "not triaged" label when:
* Issue author closes the issue
* reQUEST label is added
if:
- payloadType: Issues
- hasLabel:
label: ':watch: Not Triaged'
- or:
- and:
- isAction:
action: Closed
- isActivitySender:
issueAuthor: true

- labelAdded:
label: 'reQUEST'
then:
- removeLabel: ':watch: Not Triaged'
triggerOnOwnActions: false

onFailure:
onSuccess:
32 changes: 32 additions & 0 deletions .github/policies/labelAdded-areaLabels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
id: labelAdded.areaLabels
name: GitOps.AreaLabelHandler
description: Handles when specific area labels are added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "grpc/subsvc" is added to an issue
* Add label "gRPC"
if:
- payloadType: Issues
- labelAdded:
label: 'grpc/subsv'
then:
- addLabel: 'gRPC'

- description: >-
When the label "aspnetcore-signalr/subsvc" is added to an issue
* Add label "SignalR"
if:
- payloadType: Issues
- labelAdded:
label: 'aspnetcore-signalr/subsvc'
then:
- addLabel: 'SignalR'

onFailure:
onSuccess:
25 changes: 25 additions & 0 deletions .github/policies/labelAdded-mapQuest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
id: labelAdded.mapQuest
name: GitOps.MapQuestHandler
description: Handles when "mapQUEST" label is added
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
When the label "mapQUEST" is added to an issue
* Remove label "mapQUEST"
if:
- or:
- payloadType: Issues
- payloadType: Pull_Request

- labelAdded:
label: 'mapQUEST'
then:
- removeLabel: 'mapQUEST'
triggerOnOwnActions: true
onFailure:
onSuccess:
56 changes: 56 additions & 0 deletions .github/policies/pullRequestManagement-labelFiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
id: pullRequestManagement.labelFiles
name: GitOps.PullRequestLabelFiles
description: Checks the files touched by a pull request and assigns a reviewer
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Modify PRs that touch certain files
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- or:
- isAction:
action: Opened
- isAction:
action: Synchronize
- not:
targetsBranch:
branch: live
then:
- if:
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/blazor/hybrid/.*'
then:
- requestReview:
reviewer: guardrex
- addLabel:
label: 'blazor-hybrid/subsvc'
- if:
- or:
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/blazor/.*'
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/client-side/dotnet-interop/index.md'
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/client-side/dotnet-interop/wasm-browser-app.md'
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/mvc/views/tag-helpers/built-in/component-tag-helper.md'
- filesMatchPattern:
matchAny: true
pattern: '(?i).*/mvc/views/tag-helpers/built-in/persist-component-state.md'
then:
- requestReview:
reviewer: guardrex
- addLabel:
label: 'blazor/subsvc'
onFailure:
onSuccess:
37 changes: 0 additions & 37 deletions .github/workflows/issue-processing.yml

This file was deleted.

32 changes: 6 additions & 26 deletions .repoman.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
revision: 5
revision: 6
schema-version: 5
owner-ms-alias: adegeo

Expand All @@ -10,29 +10,11 @@ config:
ParserRegex: "^\\* (.*): (.*)$"

ContentUrlRegex:
- "### Page URL\n\n(.*)"
- "### Page URL\n\n(.*)"

issues:

opened:
# New issue opened, add Not Triaged
- labels-add: [":watch: Not Triaged"]

# Try to detect an empty issue
- check:
- type: comment-body
value: "### Description[\\n\\r]+\\[Enter feedback here\\][\\n\\r]+###"
pass:
- labels-add: ["needs-more-info"]
- labels-remove: [":watch: Not Triaged"]
- close

# default for doc comment
- check:
- type: metadata-exists
pass:
- labels-add: ["Source - Docs.ms"]
- svc_subsvc_labels: true

# Add links to related issues if it's a doc issue
- check:
Expand All @@ -42,14 +24,12 @@ issues:
pass:
- link-related-issues

labeled:

# Temporary label to mark issues as updated for Quest. The label is instantly removed
# If it's an issue from docs feedback, add svc/subsvc and source labels.
- check:
- type: query
value: "length(Issue.Labels[?Name == 'mapQuest']) != `0`"
- type: metadata-exists
pass:
- labels-remove: ["mapQuest"]
- labels-add: ["Source - Docs.ms"]
- svc_subsvc_labels: true

projects_v2_item:

Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

This repository contains the [ASP.NET Core documentation](https://learn.microsoft.com/aspnet/core/introduction-to-aspnet-core). See the [Contributing Guide](CONTRIBUTING.md) and the [issues list](https://github.com/dotnet/AspNetCore.Docs/issues) if you would like to help.

To provide comments and suggestions on [learn.microsoft.com](https://learn.microsoft.com) site functionality, open an issue in the [`MicrosoftDocs/feedback` GitHub repository](https://github.com/MicrosoftDocs/feedback).

ASP.NET 4.x documentation changes are made in the [`dotnet/AspNetDocs` GitHub repository](https://github.com/dotnet/AspNetDocs).

## How to open an issue
Expand Down
Loading
Loading