forked from QuickLendX/quicklendx-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit-protocol-limits-boundary.ps1
More file actions
36 lines (28 loc) · 1.34 KB
/
Copy pathcommit-protocol-limits-boundary.ps1
File metadata and controls
36 lines (28 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env pwsh
# Protocol Limits Boundary Feature - Git Operations Script for PowerShell
Write-Host "Creating feature branch: feature/protocol-limits-boundary-tests" -ForegroundColor Cyan
git checkout -b feature/protocol-limits-boundary-tests 2>$null
if ($LASTEXITCODE -ne 0) {
Write-Host "Branch already exists, switching to it..." -ForegroundColor Yellow
git checkout feature/protocol-limits-boundary-tests
}
Write-Host ""
Write-Host "Staging all changes..." -ForegroundColor Cyan
git add -A
Write-Host ""
Write-Host "Committing changes..." -ForegroundColor Cyan
$commitMessage = @"
test(limits): add exact-boundary coverage for protocol limits and per-business cap
- Added exact-boundary test coverage in test_protocol_limits_boundary.rs and test_max_invoices_per_business.rs
- Handled off-by-one errors and edge cases (amount==min, due_date==max, business at cap)
- Updated docs/contracts/protocol-limits.md with clear inclusivity guidelines
- Added /// inclusivity comments to ProtocolConfig in storage_types.rs
- Validated atomic application of set_protocol_config
Closes issue
"@
git commit -m $commitMessage
Write-Host ""
Write-Host "Pushing to remote..." -ForegroundColor Cyan
git push -u origin feature/protocol-limits-boundary-tests
Write-Host ""
Write-Host "✅ Done! Review the changes and create a pull request." -ForegroundColor Green