From 9e6ffdf3f9a86cb1e892499dddcbf6855d498535 Mon Sep 17 00:00:00 2001 From: Mark Brophy Date: Thu, 27 Feb 2025 17:14:28 +0000 Subject: [PATCH 1/3] allowable prefixes comment Signed-off-by: Mark Brophy --- pkg/pr/src/prefix.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/pr/src/prefix.rs b/pkg/pr/src/prefix.rs index bfde9f4..f464916 100644 --- a/pkg/pr/src/prefix.rs +++ b/pkg/pr/src/prefix.rs @@ -6,6 +6,7 @@ use regex::Regex; use crate::error::Result; +//these prefixes in the PR title prevent validation failure const PREFIX_FEATURE: (&str, &str) = (":sparkles:", "✨"); const PREFIX_BUG_FIX: (&str, &str) = (":bug:", "🐛"); const PREFIX_DOCS: (&str, &str) = (":book:", "📖"); From f4065856c5b459e47e7346feb7a6c854f6ef4783 Mon Sep 17 00:00:00 2001 From: Mark Brophy Date: Thu, 27 Feb 2025 17:20:07 +0000 Subject: [PATCH 2/3] comment test title validation Signed-off-by: Mark Brophy --- pkg/pr/src/prefix.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/pr/src/prefix.rs b/pkg/pr/src/prefix.rs index f464916..3cc1df7 100644 --- a/pkg/pr/src/prefix.rs +++ b/pkg/pr/src/prefix.rs @@ -4,7 +4,7 @@ use core::fmt; use regex::Regex; -use crate::error::Result; +use crate::error::Result;//these prefixes in the PR title prevent validation failure //these prefixes in the PR title prevent validation failure const PREFIX_FEATURE: (&str, &str) = (":sparkles:", "✨"); @@ -127,6 +127,7 @@ mod tests { } #[test] + //test title validation fn title_cases() { let test_cases = vec![ TestCase { From 154b6ae15b06a44184cb5a1b7c902baaf943c3e8 Mon Sep 17 00:00:00 2001 From: Mark Brophy Date: Thu, 27 Feb 2025 17:24:24 +0000 Subject: [PATCH 3/3] fix typos Signed-off-by: Mark Brophy --- pkg/pr/src/prefix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pr/src/prefix.rs b/pkg/pr/src/prefix.rs index 3cc1df7..af4a8fb 100644 --- a/pkg/pr/src/prefix.rs +++ b/pkg/pr/src/prefix.rs @@ -4,7 +4,7 @@ use core::fmt; use regex::Regex; -use crate::error::Result;//these prefixes in the PR title prevent validation failure +use crate::error::Result; //these prefixes in the PR title prevent validation failure const PREFIX_FEATURE: (&str, &str) = (":sparkles:", "✨");