Skip to content

Commit 8a15b87

Browse files
committed
feat: add tests
1 parent 7d880b4 commit 8a15b87

39 files changed

Lines changed: 3869 additions & 294 deletions

.editorConfig

Lines changed: 2478 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: 🐞 Bug Report
2+
description: Create a report about something that is not working
3+
labels: [ 'bug' ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
More information on our issue management policies can be found here: https://github.com/MHKarami97/Pool/blob/main/IssueManagementPolicies.md
9+
10+
Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting **non-security** bugs and feature requests.
11+
12+
If you believe you have an issue that affects the SECURITY of the platform, please do NOT create an issue and instead email your issue details to mhkarami97@gmail.com.
13+
For other types of questions, consider using [Discussions](https://github.com/MHKarami97/Pool/discussions).
14+
- type: checkboxes
15+
attributes:
16+
label: Is there an existing issue for this?
17+
description: Please search to see if an issue already exists for the bug you encountered ([aspire/issues](https://github.com/MHKarami97/Pool/issues)). More information on our issue management policies is available [here](https://github.com/MHKarami97/Pool/blob/main/IssueManagementPolicies.md).
18+
options:
19+
- label: I have searched the existing issues
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: Describe the bug
24+
description: A clear and concise description of what the bug is.
25+
validations:
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: Expected Behavior
30+
description: A clear and concise description of what you expected to happen.
31+
validations:
32+
required: false
33+
- type: textarea
34+
attributes:
35+
label: Steps To Reproduce
36+
description: |
37+
We ❤ code! Point us to a [minimalistic project which reproduces this issue (repro)](https://github.com/MHKarami97/Pool/blob/main/docs/repro.md) hosted in a public GitHub repo.
38+
39+
We will close this issue if:
40+
- The repro project you share with us is complex. We can't investigate custom projects, so don't point us to such, please.
41+
- If we will not be able to repro the behavior you're reporting.
42+
- If the repro project is attached as a `.zip` file.
43+
- If the GitHub repro project is set to `Private`.
44+
validations:
45+
required: false
46+
- type: textarea
47+
attributes:
48+
label: Exceptions (if any)
49+
description: Include the exception you get when facing this issue.
50+
placeholder:
51+
validations:
52+
required: false
53+
- type: textarea
54+
attributes:
55+
label: .NET Version info
56+
description: |
57+
Run `dotnet --info`
58+
validations:
59+
required: false
60+
- type: textarea
61+
attributes:
62+
label: Anything else?
63+
description: |
64+
- ASP.NET Core version:
65+
- .NET Aspire version (e.g. package versions):
66+
- The IDE (VS / VS Code / Rider / Other) you're running on, and its version (and any extension versions):
67+
68+
Links? References? Anything that will give us more context about the issue you are encountering!
69+
70+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
71+
validations:
72+
required: false
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 💡 Feature request
2+
description: Suggest an idea for this project
3+
labels: [ 'enhancement' ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
More information on our issue management policies can be found here: https://github.com/MHKarami97/Pool/issue-policies
9+
- type: checkboxes
10+
attributes:
11+
label: Is there an existing issue for this?
12+
description: Please search to see if an issue already exists for the feature you are requesting. (https://github.com/MHKarami97/Pool/issues).
13+
options:
14+
- label: I have searched the existing issues
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Is your feature request related to a problem? Please describe the problem.
19+
description: A clear and concise description of what the problem is.
20+
placeholder: I am trying to do [...] but [...]
21+
validations:
22+
required: false
23+
- type: textarea
24+
attributes:
25+
label: Describe the solution you'd like
26+
description: |
27+
A clear and concise description of what you want to happen. Include any alternative solutions you've considered.
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Additional context
33+
description: |
34+
Add any other context or screenshots about the feature request here.
35+
validations:
36+
required: false
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: 📄 API proposal
3+
about: Propose a change to the public API surface
4+
title: ''
5+
labels: api-suggestion
6+
assignees: ''
7+
8+
---
9+
10+
## Background and Motivation
11+
12+
<!--
13+
We welcome API proposals! We have a process to evaluate the value and shape of new API. There is an overview of our process [here](https://github.com/dotnet/aspnetcore/blob/main/docs/APIReviewProcess.md). This template will help us gather the information we need to start the review process.
14+
First, please describe the purpose and value of the new API here.
15+
-->
16+
17+
## Proposed API
18+
19+
<!--
20+
Please provide the specific public API signature diff that you are proposing. For example:
21+
```diff
22+
namespace Aspire.Hosting;
23+
24+
public static class ContainerResourceBuilderExtensions
25+
{
26+
+ public static IResourceBuilder<T> WithDockerfile<T>(this IResourceBuilder<T> builder, string contextPath, string? dockerfilePath = null) where T: ContainerResource
27+
}
28+
```
29+
You may find the [Framework Design Guidelines](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/framework-design-guidelines-digest.md) helpful.
30+
-->
31+
32+
## Usage Examples
33+
34+
<!--
35+
Please provide code examples that highlight how the proposed API additions are meant to be consumed.
36+
This will help suggest whether the API has the right shape to be functional, performant and useable.
37+
You can use code blocks like this:
38+
```csharp
39+
// some lines of code here
40+
```
41+
-->
42+
43+
## Alternative Designs
44+
45+
<!--
46+
Were there other options you considered, such as alternative API shapes?
47+
How does this compare to analogous APIs in other ecosystems and libraries?
48+
-->
49+
50+
## Risks
51+
52+
<!--
53+
Please mention any risks that to your knowledge the API proposal might entail, such as breaking changes, performance regressions, etc.
54+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Pool Discussions
4+
url: https://github.com/MHKarami97/Pool/discussions
5+
about: For other types of questions, consider using Discussions.
6+
- name: Issue Management Policies
7+
url: https://github.com/MHKarami97/Pool/blob/main/IssueManagementPolicies.md
8+
about: More information on our issue management policies is available here.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
id: labelManagement.issueOpened
2+
name: New Issues
3+
description: Adds information when PRs are opened
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- description: Add CodeFlow link to new PRs
12+
if:
13+
- payloadType: Pull_Request
14+
- isAction:
15+
action: Opened
16+
then:
17+
- addCodeFlowLink
18+
- description: Add Servicing-consider label to PRs against release branches
19+
if:
20+
- payloadType: Pull_Request
21+
- isAction:
22+
action: Opened
23+
- not:
24+
hasLabel:
25+
label: Servicing-consider
26+
- targetsBranch:
27+
branch: main
28+
then:
29+
- addLabel:
30+
label: Servicing-consider
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
id: labelManagement.issueUpdated
2+
name: Issue Activity Responder
3+
description: Adds/Removes labels from issues based on activity
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- description: Remove no-recent-activity label from issues after an update
12+
if:
13+
- or:
14+
- payloadType: Issue_Comment
15+
- payloadType: Issues
16+
- not:
17+
isAction:
18+
action: Closed
19+
- hasLabel:
20+
label: no-recent-activity
21+
then:
22+
- removeLabel:
23+
label: no-recent-activity
24+
- description: Remove needs-author-action label from issues when an author replies
25+
if:
26+
- payloadType: Issue_Comment
27+
- isActivitySender:
28+
issueAuthor: true
29+
- hasLabel:
30+
label: needs-author-action
31+
then:
32+
- removeLabel:
33+
label: needs-author-action
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
id: labelManagement.prOpened
2+
name: New PRs
3+
description: Adds community-contribution label to new PRs that are coming from the community
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- description: Label community PRs
12+
if:
13+
- payloadType: Pull_Request
14+
- isAction:
15+
action: Opened
16+
- and:
17+
- not:
18+
activitySenderHasPermission:
19+
permission: Admin
20+
- not:
21+
activitySenderHasPermission:
22+
permission: Write
23+
- not:
24+
isActivitySender:
25+
user: github-actions[bot]
26+
- not:
27+
isActivitySender:
28+
user: dotnet-maestro[bot]
29+
- not:
30+
isActivitySender:
31+
user: dotnet-maestro-bot[bot]
32+
- not:
33+
isActivitySender:
34+
user: dotnet-maestro-bot
35+
- not:
36+
isActivitySender:
37+
user: dotnet-maestro
38+
- not:
39+
isActivitySender:
40+
user: github-actions
41+
- not:
42+
isActivitySender:
43+
user: dependabot
44+
then:
45+
- addLabel:
46+
label: community-contribution
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
id: labelManagement.prUpdated
2+
name: PR Activity Responder
3+
description: Adds/Removes labels from PRs based on activity
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
eventResponderTasks:
11+
- description: Add needs-author-action label when changes are requested
12+
if:
13+
- payloadType: Pull_Request_Review
14+
- isAction:
15+
action: Submitted
16+
- isReviewState:
17+
reviewState: Changes_requested
18+
then:
19+
- addLabel:
20+
label: needs-author-action
21+
- description: Remove needs-author-action label from PRs when an author updates the PR
22+
if:
23+
- or:
24+
- payloadType: Pull_Request_Review
25+
- payloadType: Pull_Request_Review_Comment
26+
- not:
27+
isAction:
28+
action: Closed
29+
- isActivitySender:
30+
issueAuthor: true
31+
- hasLabel:
32+
label: needs-author-action
33+
then:
34+
- removeLabel:
35+
label: needs-author-action
36+
- description: Remove no-recent-activity label from PRs after an update
37+
if:
38+
- or:
39+
- payloadType: Pull_Request_Review
40+
- payloadType: Pull_Request_Review_Comment
41+
- not:
42+
isAction:
43+
action: Closed
44+
- hasLabel:
45+
label: no-recent-activity
46+
then:
47+
- removeLabel:
48+
label: no-recent-activity
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
id: scheduledSearch.closeStaleIssuesAndPrs
2+
name: Close Stale Issues and PRs
3+
description: Closes issues and PRs that have not been updated in a while
4+
owner:
5+
resource: repository
6+
disabled: false
7+
where:
8+
configuration:
9+
resourceManagementConfiguration:
10+
scheduledSearches:
11+
- description: Close issues and PRs that have not been updated in a while
12+
frequencies:
13+
- hourly:
14+
hour: 12
15+
filters:
16+
- isOpen
17+
- hasLabel:
18+
label: needs-author-action
19+
- hasLabel:
20+
label: no-recent-activity
21+
- noActivitySince:
22+
days: 7
23+
actions:
24+
- closeIssue

0 commit comments

Comments
 (0)