Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Enable git hooks #679

wants to merge 6 commits into from

Conversation

necusjz
Copy link
Member

@necusjz necusjz commented Jan 29, 2025

No description provided.

@necusjz necusjz self-assigned this Jan 29, 2025
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
Copy link
Collaborator

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

Copy link
Member Author

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.

Comment on lines +7 to +11
$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
Copy link
Collaborator

@kairu-ms kairu-ms Feb 6, 2025

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

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants