mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
fix: typo in conventional commit type (#1239)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
2107676058
commit
1386ca30e3
1 changed files with 17 additions and 18 deletions
|
@ -4,25 +4,24 @@ namespace SourceGit.Models
|
|||
{
|
||||
public class ConventionalCommitType
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Type { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Name { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public static readonly List<ConventionalCommitType> Supported = new List<ConventionalCommitType>()
|
||||
{
|
||||
new ConventionalCommitType("Features", "feat", "Adding a new feature"),
|
||||
new ConventionalCommitType("Bug Fixes", "fix", "Fixing a bug"),
|
||||
new ConventionalCommitType("Work In Progress", "wip", "Still being developed and not yet complete"),
|
||||
new ConventionalCommitType("Reverts", "revert", "Undoing a previous commit"),
|
||||
new ConventionalCommitType("Code Refactoring", "refactor", "Restructuring code without changing its external behavior"),
|
||||
new ConventionalCommitType("Performance Improvements", "pref", "Improves performance"),
|
||||
new ConventionalCommitType("Builds", "build", "Changes that affect the build system or external dependencies"),
|
||||
new ConventionalCommitType("Continuous Integrations", "ci", "Changes to CI configuration files and scripts"),
|
||||
new ConventionalCommitType("Documentations", "docs", "Updating documentation"),
|
||||
new ConventionalCommitType("Styles", "style", "Elements or code styles without changing the code logic"),
|
||||
new ConventionalCommitType("Tests", "test", "Adding or updating tests"),
|
||||
new ConventionalCommitType("Chores", "chore", "Other changes that don't modify src or test files"),
|
||||
};
|
||||
public static readonly List<ConventionalCommitType> Supported = [
|
||||
new("Features", "feat", "Adding a new feature"),
|
||||
new("Bug Fixes", "fix", "Fixing a bug"),
|
||||
new("Work In Progress", "wip", "Still being developed and not yet complete"),
|
||||
new("Reverts", "revert", "Undoing a previous commit"),
|
||||
new("Code Refactoring", "refactor", "Restructuring code without changing its external behavior"),
|
||||
new("Performance Improvements", "perf", "Improves performance"),
|
||||
new("Builds", "build", "Changes that affect the build system or external dependencies"),
|
||||
new("Continuous Integrations", "ci", "Changes to CI configuration files and scripts"),
|
||||
new("Documentations", "docs", "Updating documentation"),
|
||||
new("Styles", "style", "Elements or code styles without changing the code logic"),
|
||||
new("Tests", "test", "Adding or updating tests"),
|
||||
new("Chores", "chore", "Other changes that don't modify src or test files"),
|
||||
];
|
||||
|
||||
public ConventionalCommitType(string name, string type, string description)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue