DPDK CI discussions
 help / color / mirror / Atom feed
* [PATCH] tools: accept patch with subject starting with RFC
@ 2022-04-12  8:54 David Marchand
  2022-04-12  9:12 ` [PATCH v2] " David Marchand
  0 siblings, 1 reply; 4+ messages in thread
From: David Marchand @ 2022-04-12  8:54 UTC (permalink / raw)
  To: thomas, alialnu; +Cc: ci

If a mail does not contain a X-Mailer: header, only a subject matching
[PATCH qualifies this mail as being a patch.
Extend this filter and accept [RFC PATCH too.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 tools/filter-patch-email.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/filter-patch-email.sh b/tools/filter-patch-email.sh
index 9ac8221..5217df3 100755
--- a/tools/filter-patch-email.sh
+++ b/tools/filter-patch-email.sh
@@ -43,10 +43,14 @@ parse ()
 		set -- $line
 		if ! $content ; then
 			[ "$1" != 'X-Mailer:' -o "$2" != 'git-send-email' ] || gitsend=true
-			if echo "$line" | grep -qa '^Subject:.*\[PATCH' ; then
+			if echo "$line" | grep -qa '^Subject:.*PATCH' ; then
 				subject=$(echo "$line" | sed 's,^Subject:[[:space:]]*,,')
 				while [ -n "$subject" ] ; do
 					echo "$subject" | grep -q '^\[' || break
+					if echo "$subject" | grep -q '^\[RFC PATCH' ; then
+						patchsubject=true
+						break
+					fi
 					if echo "$subject" | grep -q '^\[PATCH' ; then
 						patchsubject=true
 						break
-- 
2.23.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] tools: accept patch with subject starting with RFC
  2022-04-12  8:54 [PATCH] tools: accept patch with subject starting with RFC David Marchand
@ 2022-04-12  9:12 ` David Marchand
  2022-04-12  9:21   ` Ali Alnubani
  0 siblings, 1 reply; 4+ messages in thread
From: David Marchand @ 2022-04-12  9:12 UTC (permalink / raw)
  To: thomas, alialnu; +Cc: ci

If a mail does not contain a X-Mailer: header, only a subject matching
[PATCH qualifies this mail as being a patch.
Extend this filter and accept [RFC PATCH too.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
Changes since v1:
- factorize matching with a regexp,

---
 tools/filter-patch-email.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/filter-patch-email.sh b/tools/filter-patch-email.sh
index 9ac8221..6593403 100755
--- a/tools/filter-patch-email.sh
+++ b/tools/filter-patch-email.sh
@@ -43,11 +43,11 @@ parse ()
 		set -- $line
 		if ! $content ; then
 			[ "$1" != 'X-Mailer:' -o "$2" != 'git-send-email' ] || gitsend=true
-			if echo "$line" | grep -qa '^Subject:.*\[PATCH' ; then
+			if echo "$line" | grep -qa '^Subject:.*PATCH' ; then
 				subject=$(echo "$line" | sed 's,^Subject:[[:space:]]*,,')
 				while [ -n "$subject" ] ; do
 					echo "$subject" | grep -q '^\[' || break
-					if echo "$subject" | grep -q '^\[PATCH' ; then
+					if echo "$subject" | grep -qE '^\[(RFC |)PATCH' ; then
 						patchsubject=true
 						break
 					fi
-- 
2.23.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v2] tools: accept patch with subject starting with RFC
  2022-04-12  9:12 ` [PATCH v2] " David Marchand
@ 2022-04-12  9:21   ` Ali Alnubani
  2022-04-12 13:53     ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Ali Alnubani @ 2022-04-12  9:21 UTC (permalink / raw)
  To: David Marchand, NBU-Contact-Thomas Monjalon (EXTERNAL); +Cc: ci

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Tuesday, April 12, 2022 12:12 PM
> To: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>;
> Ali Alnubani <alialnu@nvidia.com>
> Cc: ci@dpdk.org
> Subject: [PATCH v2] tools: accept patch with subject starting with RFC
> 
> If a mail does not contain a X-Mailer: header, only a subject matching
> [PATCH qualifies this mail as being a patch.
> Extend this filter and accept [RFC PATCH too.
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---

Tested-by: Ali Alnubani <alialnu@nvidia.com>

Thanks,
Ali

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] tools: accept patch with subject starting with RFC
  2022-04-12  9:21   ` Ali Alnubani
@ 2022-04-12 13:53     ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2022-04-12 13:53 UTC (permalink / raw)
  To: David Marchand; +Cc: Ali Alnubani, ci

12/04/2022 11:21, Ali Alnubani:
> From: David Marchand <david.marchand@redhat.com>
> > 
> > If a mail does not contain a X-Mailer: header, only a subject matching
> > [PATCH qualifies this mail as being a patch.
> > Extend this filter and accept [RFC PATCH too.
> > 
> > Signed-off-by: David Marchand <david.marchand@redhat.com>
> 
> Tested-by: Ali Alnubani <alialnu@nvidia.com>

Applied, thanks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-12 13:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12  8:54 [PATCH] tools: accept patch with subject starting with RFC David Marchand
2022-04-12  9:12 ` [PATCH v2] " David Marchand
2022-04-12  9:21   ` Ali Alnubani
2022-04-12 13:53     ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).