📖 Fix typo in branch protections details (#4270)

Fix typo in branch protections details message.

Signed-off-by: Martin Costello <martin@martincostello.com>
This commit is contained in:
Martin Costello 2024-08-01 19:34:27 +01:00 committed by GitHub
parent 99bc1aa2ec
commit 8f9d27b8f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ func GetTextOutcomeFromBool(b *bool, rule, branchName string) (string, finding.O
msg := fmt.Sprintf("'%s' is required to merge on branch '%s'", rule, branchName)
return msg, finding.OutcomeTrue, nil
case !*b:
msg := fmt.Sprintf("'%s' is disable on branch '%s'", rule, branchName)
msg := fmt.Sprintf("'%s' is disabled on branch '%s'", rule, branchName)
return msg, finding.OutcomeFalse, nil
}
return "", finding.OutcomeError, errWrongValue