-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable git hooks #679
base: main
Are you sure you want to change the base?
Enable git hooks #679
Conversation
Write-Host "Running: aaz-dev command-model verify -a $GitRoot -t $_" -ForegroundColor Yellow # For logging | ||
aaz-dev command-model verify -a $GitRoot -t $_ | ||
if ($LASTEXITCODE -ne 0) { | ||
exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide feature instructions if it failed in verification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaz-dev command-model verify
itself contains information about why the verification failed.
$Modules = $ChangedFiles | | ||
Where-Object { $_ -like "Commands/*" } | # Filter files under commands folder | ||
ForEach-Object { ($_ -replace "^Commands/", "") } | # Remove the prefix | ||
ForEach-Object { ($_ -split "/")[0] } | # Extract the moudule | ||
Sort-Object -Unique # Ensure uniqueness |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually I think we can verify the whole aaz repo if it doesn't take long time. BTW, please add git rebase operation to sync with the upstream repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will take over 5 minutes, affect the user experience.
No description provided.