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

[python] add chronus version managing #4676

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
11 changes: 11 additions & 0 deletions packages/http-client-python/eng/scripts/Check-GitChanges.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ Invoke-LoggedCommand "git -c core.safecrlf=false diff --ignore-space-at-eol --ex
if($LastExitCode -ne 0) {
throw "Changes detected"
}

# Get the current branch name
$currentBranch = git rev-parse --abbrev-ref HEAD

# Check if the branch name starts with publish/, dependabot/, or backmerge/
if ($currentBranch -notmatch '^(publish/|dependabot/|backmerge/)') {
Invoke-LoggedCommand "pnpm change verify"
if ($LastExitCode -ne 0) {
throw "Changelog verification failed"
}
}
iscai-msft marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion packages/http-client-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"ci": "npm run test:emitter && npm run ci:generator --",
"ci:generator": "tsx ./eng/scripts/ci/run-ci.ts",
"test:generator": "tsx ./eng/scripts/ci/run-ci.ts --command=test",
"test:emitter": "vitest run -c ./emitter/vitest.config.ts"
"test:emitter": "vitest run -c ./emitter/vitest.config.ts",
"change": "chronus"
iscai-msft marked this conversation as resolved.
Show resolved Hide resolved
},
"files": [
"dist/**",
Expand Down
Loading