pull file
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
This commit is contained in:
5
.husky/pre-commit
Normal file
5
.husky/pre-commit
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
echo "This is pre commit"
|
||||
dotnet husky run --group pre-commit
|
||||
27
.husky/task-runner.json
Normal file
27
.husky/task-runner.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
|
||||
"tasks": [
|
||||
{
|
||||
"name": "welcome-message-example",
|
||||
"command": "bash",
|
||||
"args": [ "-c", "echo Husky.Net is awesome!" ],
|
||||
"windows": {
|
||||
"command": "cmd",
|
||||
"args": ["/c", "echo Husky.Net is awesome!" ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "csharpier-install",
|
||||
"group": "pre-commit",
|
||||
"command": "dotnet",
|
||||
"args": [ "tool", "install", "csharpier" ]
|
||||
},
|
||||
{
|
||||
"name": "csharpier-fotmat",
|
||||
"group": "pre-commit",
|
||||
"command": "dotnet",
|
||||
"args": [ "csharpier", "format", "${staged}" ],
|
||||
"include": [ "**/*.cs" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user