Unverified Commit daa1af18 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Relax reference validation during changelog rendering (#2942)

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent a08c9bf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ impl HandAuthoredEntry {
        if !self.author.chars().all(|c| c.is_alphanumeric() || c == '-') {
            bail!("Author must be valid GitHub username: [a-zA-Z0-9\\-]")
        }
        if self.references.is_empty() {
        if validation_set == ValidationSet::Development && self.references.is_empty() {
            bail!("Changelog entry must refer to at least one pull request or issue");
        }
        if validation_set == ValidationSet::Development && self.message.len() > 800 {