Skip to content

Commit 74a7cf0

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Add techdebt label to excludes from release config devlooped/oss@1afd173 - Ignore docs merges too devlooped/oss@055a8b7 - Add fallback GITHUB_TOKEN to bot defaults devlooped/oss@5406d90 - Add attribution to upstream and note on regex devlooped/oss@c161088 - Resolve includes after file sync devlooped/oss@8f45cf2 - Don't fail sponsors tagging, since it's optional devlooped/oss@8990ebb - By default don't validate includes devlooped/oss@aed791a - Ignore errors creating the PR devlooped/oss@b97b8f1 - Don't fail on background workflows devlooped/oss@f08c3f2 - Add specific skip rules for tests devlooped/oss@448cf45 - Update .editorconfig devlooped/oss@2981836 - Ignore test analyzer rules recursively. devlooped/oss@fd5b554 - Drop net6 setup on publish too devlooped/oss@d302256 - Update .gitignore with JetBrains private folder devlooped/oss@9dff0bd - Ignore app root folder too devlooped/oss@b87a8a7 - Switch to old nuget.config for package sources devlooped/oss@c6f74ce - Enable C# compiler strict mode by default devlooped/oss@ef8e7fa - Only override VersionPrefix if it has no value devlooped/oss@28a27ba - Allow extending build with local-only files devlooped/oss@6ae80a1 - Since dependabot doesn't consume API requests, do it more frequently devlooped/oss@4f070a4 - Fix incremental build issue with package files and doc file devlooped/oss@96b6773 - Move format check for last devlooped/oss@7db501b - Make build matrix configurable per-repo devlooped/oss@391da5e - Rename matrix lookup job and steps devlooped/oss@cf8e339 - Switch to newer syntax for output variables devlooped/oss@9dc1ae2 - Automatically build from dev/* branches too devlooped/oss@6d3dd85 - Drop net6 forced install, it's built-in all agents now devlooped/oss@34c1bf6 - Drop net6 setup on prior to dotnet format devlooped/oss@4b31891 - Remove limitation on matrix os for sleet publishing devlooped/oss@7e3288c - Invert order of sources in mapping devlooped/oss@8b4ce81 - Use a better CI version number devlooped/oss@1ec6385 - Fix mapping sources devlooped/oss@b2fa09b - Don't run analyzers/codefixers in format devlooped/oss@543f7da - Parallelize format to speed up build devlooped/oss@13d67e2 - Don't resolve includes for changelog changes devlooped/oss@7985d4e - Fix syntax for excluding one file devlooped/oss@5d05e54 - Remove duplicate community files and unused stuff devlooped/oss@a4b66eb - Fix action repo name devlooped/oss@ac753b7 # devlooped/.github - Keep only officially supported community files devlooped/.github@c97cdeb - Add contributing guidelines devlooped/.github@1dc5908 # devlooped/sponsors - Refresh sponsors devlooped/sponsors@671b000 - Include readme in sponsors change devlooped/sponsors@0b4c29f - Refresh sponsors devlooped/sponsors@4722856 - Refresh sponsors devlooped/sponsors@5870fc9 - Refresh sponsors devlooped/sponsors@04f5dfb - Refresh sponsors devlooped/sponsors@61c6354 - Refresh sponsors devlooped/sponsors@da089ca
1 parent efe0c4c commit 74a7cf0

28 files changed

Lines changed: 423 additions & 418 deletions

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ dotnet_style_require_accessibility_modifiers = omit_if_default:error
5858
dotnet_diagnostic.IDE0040.severity = error
5959

6060
[*.cs]
61+
# Top-level files are definitely OK
62+
csharp_using_directive_placement = outside_namespace:silent
63+
csharp_style_namespace_declarations = block_scoped:silent
64+
csharp_prefer_simple_using_statement = true:suggestion
65+
csharp_prefer_braces = true:silent
66+
6167
# Prefer "var" everywhere
6268
csharp_style_var_for_built_in_types = true:suggestion
6369
csharp_style_var_when_type_is_apparent = true:suggestion
@@ -88,5 +94,13 @@ csharp_new_line_before_finally = true
8894
csharp_new_line_before_members_in_object_initializers = true
8995
csharp_new_line_before_members_in_anonymous_types = true
9096

97+
# Test settings
98+
[**/*Tests*/**{.cs,.vb}]
9199
# xUnit1013: Public method should be marked as test. Allows using records as test classes
92100
dotnet_diagnostic.xUnit1013.severity = none
101+
102+
# Default severity for analyzer diagnostics with category 'Style'
103+
dotnet_analyzer_diagnostic.category-Style.severity = none
104+
105+
# VSTHRD200: Use "Async" suffix for async methods
106+
dotnet_diagnostic.VSTHRD200.severity = none
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contributing
2+
3+
You can contribute to the project with issues and PRs.
4+
Simply filing issues for problems you encounter is a great way to contribute. Contributing implementations is greatly appreciated.
5+
6+
## Before you file a bug...
7+
* Is this a question, or are you looking for help? Ask it in the project's **Discussions** tab instead, if available.
8+
9+
* Did you search the issues list to see if someone already reported it? _When looking for duplicates, make sure to look through open **and** closed issues._
10+
* Did you create a simple repro for the problem? _We won't look at your bug until you provide a repro project or complete repro steps._
11+
12+
## Before you submit a PR...
13+
14+
* Did you ensure there is a corresponding issue labelled as 🟢 help wanted?
15+
If not, please open one to start the discussion.
16+
* Does the code follow existing coding styles? (spaces, comments, no regions, etc.)?
17+
We enforce the basic styles by running `dotnet format` on the repository root.
18+
You can do the same before submitting a PR to speed up the process.
19+
* Did you write unit tests?
20+
Typically required if there are other unit tests for existing or related code.
21+
22+
## Looking for something to work on?
23+
24+
Look at the repo issues labelled as 🟢 help wanted and 🟣 good first issue to find
25+
something to contribute!
26+
27+
# Contributor License Agreement
28+
29+
You must sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/devlooped/) before your PR will be merged.
30+
This is a one-time requirement for projects in the Devlooped organization.
31+
You can read more about [Contribution License Agreements (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) on Wikipedia.
32+
33+
You don't have to do this up-front. You can simply clone, fork, and submit your pull-request as usual.
34+
When your pull-request is created, it is classified by a CLA bot, which will let
35+
you know if signing is pending.

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 0 additions & 50 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ updates:
66
- package-ecosystem: nuget
77
directory: /
88
schedule:
9-
interval: weekly
9+
interval: daily

.github/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- bydesign
5+
- dependencies
6+
- duplicate
7+
- question
8+
- invalid
9+
- wontfix
10+
- need info
11+
- docs
12+
- techdebt
13+
authors:
14+
- devlooped-bot
15+
- dependabot
16+
- github-actions
17+
categories:
18+
- title: ✨ Implemented enhancements
19+
labels:
20+
- enhancement
21+
- title: 🐛 Fixed bugs
22+
labels:
23+
- bug
24+
- title: 📝 Documentation updates
25+
labels:
26+
- docs
27+
- title: 🔨 Other
28+
labels:
29+
- '*'
30+
exclude:
31+
labels:
32+
- dependencies

.github/workflows/build.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: build
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [ main, dev, 'feature/*', 'rel/*' ]
8+
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
99
paths-ignore:
1010
- changelog.md
1111
- code-of-conduct.md
@@ -17,51 +17,46 @@ on:
1717

1818
env:
1919
DOTNET_NOLOGO: true
20+
VersionPrefix: 42.42.${{ github.run_number }}
21+
VersionLabel: ${{ github.ref }}
2022

2123
defaults:
2224
run:
2325
shell: bash
2426

2527
jobs:
26-
dotnet-format:
28+
os-matrix:
2729
runs-on: ubuntu-latest
30+
outputs:
31+
matrix: ${{ steps.lookup.outputs.matrix }}
2832
steps:
2933
- name: 🤘 checkout
3034
uses: actions/checkout@v2
31-
with:
32-
submodules: recursive
33-
fetch-depth: 0
34-
35-
- name: ⚙ dotnet
36-
uses: actions/setup-dotnet@v1
37-
with:
38-
dotnet-version: '6.0.x'
39-
40-
- name: ✓ ensure format
41-
run: dotnet format --verify-no-changes -v:diag --exclude ~/.nuget
35+
36+
- name: 🔎 lookup
37+
id: lookup
38+
shell: pwsh
39+
run: |
40+
$path = './.github/workflows/os-matrix.json'
41+
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
42+
echo "matrix=$os" >> $env:GITHUB_OUTPUT
4243
4344
build:
45+
needs: os-matrix
4446
name: build-${{ matrix.os }}
45-
needs: dotnet-format
4647
runs-on: ${{ matrix.os }}
4748
strategy:
4849
matrix:
49-
os: [windows-latest, ubuntu-latest, macOS-latest]
50+
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5051
steps:
5152
- name: 🤘 checkout
5253
uses: actions/checkout@v2
5354
with:
5455
submodules: recursive
5556
fetch-depth: 0
5657

57-
- name: ⚙ dotnet
58-
uses: actions/setup-dotnet@v1
59-
if: matrix.os != 'windows-latest'
60-
with:
61-
dotnet-version: '6.0.x'
62-
6358
- name: 🙏 build
64-
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
59+
run: dotnet build -m:1
6560

6661
- name: ⚙ GNU grep
6762
if: matrix.os == 'macOS-latest'
@@ -71,17 +66,29 @@ jobs:
7166
7267
- name: 🧪 test
7368
uses: ./.github/workflows/test
74-
env:
75-
AZURE_WEBPUBSUB: ${{ secrets.AZURE_WEBPUBSUB }}
76-
69+
7770
- name: 📦 pack
78-
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
71+
run: dotnet pack -m:1
7972

8073
# Only push CI package to sleet feed if building on ubuntu (fastest)
8174
- name: 🚀 sleet
8275
env:
8376
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
84-
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
77+
if: env.SLEET_CONNECTION != ''
8578
run: |
8679
dotnet tool install -g --version 4.0.18 sleet
8780
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
81+
82+
dotnet-format:
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: 🤘 checkout
86+
uses: actions/checkout@v2
87+
with:
88+
submodules: recursive
89+
fetch-depth: 0
90+
91+
- name: ✓ ensure format
92+
run: |
93+
dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget
94+
dotnet format style --verify-no-changes -v:diag --exclude ~/.nuget
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
usernames-as-github-logins=true
22
issues_wo_labels=true
33
pr_wo_labels=true
4-
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info
4+
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
55
enhancement-label=:sparkles: Implemented enhancements:
66
bugs-label=:bug: Fixed bugs:
77
issues-label=:hammer: Other:

0 commit comments

Comments
 (0)