generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit efbefd9
Showing
26 changed files
with
898 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# DO NOT CHANGE SETTINGS IN THIS FILE. PLEASE CREATE PULL REQUEST IN REPOSITORY `dotnet-engineering`. | ||
|
||
# Don't use tabs for indentation. | ||
[*] | ||
insert_final_newline = true | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
|
||
# Code files | ||
[*.{cs,csx,vb,vbx}] | ||
indent_size = 4 | ||
insert_final_newline = true | ||
charset = utf-8-bom | ||
|
||
# Razor and cshtml files | ||
# UTF-8-BOM is set as default, as all official template files use UTF-8-BOM | ||
# See https://github.com/dotnet/aspnetcore/pull/23502 and https://github.com/dotnet/aspnetcore/issues/22753 | ||
[*.{razor,cshtml}] | ||
charset = utf-8-bom | ||
|
||
# Generated code | ||
[*{_AssemblyInfo.cs,.notsupported.cs,.generated.cs}] | ||
generated_code = true | ||
|
||
# XML project files | ||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,nativeproj,locproj}] | ||
indent_size = 2 | ||
|
||
# Xml build files | ||
[*.builds] | ||
indent_size = 2 | ||
|
||
# Xml files | ||
[*.{xml,stylecop,resx,ruleset}] | ||
indent_size = 2 | ||
|
||
# XML config files | ||
[*.{props,targets,ruleset,config,nuspec,vsixmanifest,vsct}] | ||
indent_size = 2 | ||
|
||
# JSON files | ||
[*.json] | ||
indent_size = 2 | ||
|
||
# YAML files | ||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
# Powershell files | ||
[*.ps1] | ||
indent_size = 2 | ||
|
||
# Shell scripts | ||
[*.sh] | ||
indent_size = 2 | ||
|
||
# Commandline scripts | ||
[*.{cmd,bat}] | ||
end_of_line = crlf | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
|
||
# Visual Studio Solution Files | ||
[*.sln] | ||
indent_style = tab | ||
|
||
[*.{received,verified}.txt] | ||
insert_final_newline = false | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"help":"https://go.microsoft.com/fwlink/?linkid=866610" | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Default owners for all projects | ||
* @dailydevops/maintainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 🐞 Bug | ||
description: Submit a bug report | ||
title: "bug: <replace with a short description>" | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! Before submitting a `bug`, please make sure there is no existing issue for the one you encountered. | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists for the bug you encountered. | ||
options: | ||
- label: I have searched the existing issues | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Package & package version | ||
description: Which package and version does this bug affect? | ||
placeholder: e.g. NetEvolve.Example 1.2.3 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
placeholder: The more details we have, the better we can reproduce the problem and fix it. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
placeholder: The more details we have, the better we can reproduce the problem and fix it. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- Type of change | ||
Please label this PR with one of the existing labels, depending on the scope of your change. | ||
--> | ||
|
||
## What does this PR do? | ||
|
||
<!-- Mandatory | ||
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc. | ||
--> | ||
|
||
## Why is it important? | ||
|
||
<!-- Mandatory | ||
Explain here the WHY, or the rationale / motivation for the changes. | ||
--> | ||
|
||
## Related issues | ||
|
||
<!-- Recommended | ||
Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it. | ||
|
||
- Closes #123 | ||
- Relates #123 | ||
- Requires #123 | ||
- Supersedes #123 | ||
--> | ||
- | ||
|
||
<!-- Recommended | ||
## How to test this PR | ||
|
||
Explain here how this PR will be tested by the reviewer: commands, dependencies, steps, etc. | ||
--> | ||
|
||
<!-- Optional | ||
## Follow-ups | ||
|
||
Add here any thought that you consider could be identified as an actionable step once this PR is merged. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build(ci)" | ||
labels: | ||
- "dependency-actions" | ||
open-pull-requests-limit: 50 | ||
|
||
- package-ecosystem: "nuget" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build(deps)" | ||
labels: | ||
- "dependency-nuget" | ||
open-pull-requests-limit: 50 | ||
# groups: | ||
# coverlet: | ||
# patterns: | ||
# - "coverlet*" | ||
# testcontainers: | ||
# patterns: | ||
# - "testcontainers*" | ||
# verify: | ||
# patterns: | ||
# - "verify*" | ||
# xunit: | ||
# patterns: | ||
# - "xunit" | ||
# - "xunit*" | ||
|
||
- package-ecosystem: "gitsubmodule" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "build(mods)" | ||
labels: | ||
- "dependency-gitmodule" | ||
open-pull-requests-limit: 50 | ||
groups: | ||
submodules: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name-template: $RESOLVED_VERSION | ||
tag-template: $RESOLVED_VERSION | ||
|
||
template: | | ||
# What's Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
additional: | ||
- "arguments" | ||
- "analyzer" | ||
- "article.benchmarks" | ||
- "describe" | ||
- "develop" | ||
- "extensions.strings" | ||
- "extensions.tasks" | ||
- "extensions.test" | ||
- "guard" | ||
- "healthchecks" | ||
- "http.correlation" | ||
- "trydispose" | ||
|
||
files: | ||
- "!**/*" | ||
- ".editorconfig" | ||
- ".gitignore" | ||
- ".github/CODEOWNERS" | ||
- ".github/dependabot.yml" | ||
- ".github/release-drafter.yml" | ||
- ".github/ISSUE_TEMPLATE/**/*" | ||
- ".github/PULL_REQUEST_TEMPLATE/**/*" | ||
- ".github/workflows/update-license.yml" | ||
|
||
# you probably want to exclude these files: | ||
- "!.github/workflows/dependabot-merge.yml" | ||
- "!.github/workflows/template-sync.yml" | ||
- "!.github/template-sync.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
inputs: | ||
dotnet-logging: | ||
required: true | ||
type: choice | ||
default: minimal | ||
options: | ||
- quiet | ||
- minimal | ||
- normal | ||
- detailed | ||
- diagnostic | ||
|
||
jobs: | ||
all: | ||
name: Build & Tests | ||
uses: dailydevops/pipelines/.github/workflows/cicd-dotnet.yml@main | ||
with: | ||
dotnet-logging: ${{ inputs.dotnet-logging }} | ||
dotnet-version: | | ||
7.x | ||
solution: ###SOLUTION### | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Update template files | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
template-sync: | ||
if: github.actor != 'dependabot[bot]' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ahmadnassri/[email protected] | ||
with: | ||
github-token: ${{ secrets.TEMPLATE_SYNC }} | ||
dry-run: false | ||
skip-ci: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Update copyright year in license file | ||
|
||
on: | ||
schedule: | ||
- cron: '0 6 1 1 *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: FantasticFiasco/action-update-license-year@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
prTitle: 'chore: Updated LICENSE' | ||
commitTitle: 'chore: Updated LICENSE [skip ci]' | ||
id: license | ||
|
||
- name: Merge PR | ||
if: steps.license.outputs.pullRequestNumber != '' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr merge --squash --admin --delete-branch ${{ steps.license.outputs.pullRequestNumber }} |
Oops, something went wrong.