fix: verification of answers for history
This commit is contained in:
@@ -42,7 +42,7 @@ if (-not (Test-Path "answers.md")) {
|
|||||||
$answersLower = $answers.ToLower()
|
$answersLower = $answers.ToLower()
|
||||||
|
|
||||||
# Check 1: Contains "5" or "five" for commit count
|
# Check 1: Contains "5" or "five" for commit count
|
||||||
if ($answersLower -match "5|five") {
|
if ($answersLower -match "5|five|fem") {
|
||||||
Write-Host "[PASS] Correct commit count found" -ForegroundColor Green
|
Write-Host "[PASS] Correct commit count found" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host "[FAIL] Commit count not found or incorrect" -ForegroundColor Red
|
Write-Host "[FAIL] Commit count not found or incorrect" -ForegroundColor Red
|
||||||
@@ -76,7 +76,7 @@ if (-not (Test-Path "answers.md")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check 4: Contains "config" keyword for staged file
|
# Check 4: Contains "config" keyword for staged file
|
||||||
if ($answersLower -match "config") {
|
if ($answersLower -match "config.py") {
|
||||||
Write-Host "[PASS] Staged file identified" -ForegroundColor Green
|
Write-Host "[PASS] Staged file identified" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host "[FAIL] Staged file not identified" -ForegroundColor Red
|
Write-Host "[FAIL] Staged file not identified" -ForegroundColor Red
|
||||||
|
|||||||
Reference in New Issue
Block a user