mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-24 18:36:36 +08:00
Compare commits
4 Commits
copilot/bu
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f10fd680f | ||
|
|
480316e2f9 | ||
|
|
a024d2ca0e | ||
|
|
18dec50bb5 |
@@ -198,7 +198,7 @@ dotnet_diagnostic.AVA2001.severity = warning
|
|||||||
|
|
||||||
# Xaml files
|
# Xaml files
|
||||||
[*.{xaml,axaml}]
|
[*.{xaml,axaml}]
|
||||||
indent_size = 2
|
indent_size = 4
|
||||||
# DuplicateSetterError
|
# DuplicateSetterError
|
||||||
avalonia_xaml_diagnostic.AVLN2203.severity = warning
|
avalonia_xaml_diagnostic.AVLN2203.severity = warning
|
||||||
# StyleInMergedDictionaries
|
# StyleInMergedDictionaries
|
||||||
|
|||||||
92
.github/COMMIT_CONVENTION.md
vendored
Normal file
92
.github/COMMIT_CONVENTION.md
vendored
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
# Git Commit Message Convention
|
||||||
|
|
||||||
|
This project follows the [Conventional Commits](https://www.conventionalcommits.org/) specification for commit messages.
|
||||||
|
|
||||||
|
## Format
|
||||||
|
|
||||||
|
```
|
||||||
|
<type>[optional scope]: <description>
|
||||||
|
|
||||||
|
[optional body]
|
||||||
|
|
||||||
|
[optional footer(s)]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
| Type | Description |
|
||||||
|
|------|-------------|
|
||||||
|
| `feat` | A new feature |
|
||||||
|
| `fix` | A bug fix |
|
||||||
|
| `docs` | Documentation only changes |
|
||||||
|
| `style` | Changes that do not affect the meaning of the code (formatting, missing semicolons, etc.) |
|
||||||
|
| `refactor` | A code change that neither fixes a bug nor adds a feature |
|
||||||
|
| `perf` | A code change that improves performance |
|
||||||
|
| `test` | Adding missing tests or correcting existing tests |
|
||||||
|
| `build` | Changes that affect the build system or external dependencies |
|
||||||
|
| `ci` | Changes to CI configuration files and scripts |
|
||||||
|
| `chore` | Other changes that don't modify source or test files |
|
||||||
|
| `revert` | Reverts a previous commit |
|
||||||
|
|
||||||
|
## Rules
|
||||||
|
|
||||||
|
1. **Limit the subject line to 50 characters** (72 character hard limit)
|
||||||
|
2. **Use the imperative mood** in the subject line (e.g., "add feature" not "added feature")
|
||||||
|
3. **Do not end the subject line with a period**
|
||||||
|
4. **Use lowercase** for the description (e.g., "add feature" not "Add feature")
|
||||||
|
5. **Separate subject from body with a blank line**
|
||||||
|
6. **Wrap the body at 72 characters**
|
||||||
|
7. **Use the body to explain what and why**, not how
|
||||||
|
8. **Reference issues and pull requests** in the footer
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
The scope should be the name of the package or area affected (e.g., `button`, `datepicker`, `theme`, `demo`).
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
### Simple commit
|
||||||
|
|
||||||
|
```
|
||||||
|
feat(button): add loading state support
|
||||||
|
```
|
||||||
|
|
||||||
|
### Commit with body
|
||||||
|
|
||||||
|
```
|
||||||
|
fix(datepicker): correct month navigation overflow
|
||||||
|
|
||||||
|
When navigating past December, the month index wrapped to a
|
||||||
|
negative value instead of rolling over to January of the next year.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Commit with breaking change
|
||||||
|
|
||||||
|
```
|
||||||
|
feat(theme)!: rename SemiColorPrimary to SemiColorBrand
|
||||||
|
|
||||||
|
BREAKING CHANGE: The token SemiColorPrimary has been renamed to
|
||||||
|
SemiColorBrand. Update all references in your custom theme files.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Commit referencing an issue
|
||||||
|
|
||||||
|
```
|
||||||
|
fix(textbox): placeholder not visible in dark mode
|
||||||
|
|
||||||
|
Closes #123
|
||||||
|
```
|
||||||
|
|
||||||
|
## Breaking Changes
|
||||||
|
|
||||||
|
Breaking changes must be indicated by appending a `!` after the type/scope, or by including a `BREAKING CHANGE:` footer. Both methods may be used together.
|
||||||
|
|
||||||
|
## Revert Commits
|
||||||
|
|
||||||
|
When reverting a previous commit, use the `revert` type and reference the reverted commit SHA in the footer:
|
||||||
|
|
||||||
|
```
|
||||||
|
revert: feat(button): add loading state support
|
||||||
|
|
||||||
|
Revert commit a1b2c3d.
|
||||||
|
```
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<AvaloniaVersion>12.0.0</AvaloniaVersion>
|
<AvaloniaVersion>12.0.1</AvaloniaVersion>
|
||||||
<DataGridVersion>12.0.0</DataGridVersion>
|
<DataGridVersion>12.0.0</DataGridVersion>
|
||||||
<SkiaSharpVersion>3.119.3-preview.1.1</SkiaSharpVersion>
|
<SkiaSharpVersion>3.119.3-preview.1.1</SkiaSharpVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -23,4 +23,4 @@
|
|||||||
|
|
||||||
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.2"/>
|
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.2"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<AvaloniaVersion>12.0.0</AvaloniaVersion>
|
<AvaloniaVersion>12.0.1</AvaloniaVersion>
|
||||||
<DataGridVersion>12.0.0</DataGridVersion>
|
<DataGridVersion>12.0.0</DataGridVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -11,4 +11,4 @@
|
|||||||
<PackageVersion Include="Avalonia.Controls.TreeDataGrid" Version="11.1.1"/>
|
<PackageVersion Include="Avalonia.Controls.TreeDataGrid" Version="11.1.1"/>
|
||||||
<PackageVersion Include="Irihi.Avalonia.Shared" Version="0.4.0"/>
|
<PackageVersion Include="Irihi.Avalonia.Shared" Version="0.4.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
||||||
<Version>12.0.0</Version>
|
<Version>12.0.1</Version>
|
||||||
<PackageReleaseNotes>Update to Semi.Avalonia.ColorPicker 12.0.0</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Semi.Avalonia.ColorPicker 12.0.1</PackageReleaseNotes>
|
||||||
<Title>Semi.Avalonia.ColorPicker</Title>
|
<Title>Semi.Avalonia.ColorPicker</Title>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
|
||||||
<Version>12.0.0</Version>
|
<Version>12.0.1</Version>
|
||||||
<PackageReleaseNotes>Update to Semi.Avalonia 12.0.0</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Semi.Avalonia 12.0.1</PackageReleaseNotes>
|
||||||
<Title>Semi.Avalonia</Title>
|
<Title>Semi.Avalonia</Title>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user