Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Jeremy Kerr <jk@codeconstruct.com.au>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: "Kernel.org Tools" <tools@kernel.org>
Subject: Re: [PATCH b4] config: add send-me-too configuration
Date: Wed, 10 Jun 2026 10:49:11 +0800	[thread overview]
Message-ID: <f7e99f980881f79702491c1440fd282f17f85b19.camel@codeconstruct.com.au> (raw)
In-Reply-To: <178105896854.172387.14154860070343570175.b4-review@b4>

Hi Konstantin,

Thanks for the review!

> > diff --git a/docs/contributor/send.rst b/docs/contributor/send.rst
> > index ba18ef5..5769cd7 100644
> > --- a/docs/contributor/send.rst
> > +++ b/docs/contributor/send.rst
> > @@ -321,7 +321,9 @@ Command line flags
> >    :ref:`contributor_settings`).
> >  
> >  ``--not-me-too``
> > -  Removes your own email address from the recipients.
> > +  Removes your own email address from the recipients. This can be set in the
> > +  configuration using the :term:`b4.send-me-too`, setting to `no`. (see
> > +  :ref:`contributor_settings`).
> 
> Small nit -- you probably wanted to use ``no`` here, not `no` (trips me 
> up all the time, too).

Ack, fixed, and reflowed to 72.

> > diff --git a/src/b4/ez.py b/src/b4/ez.py
> > index 3e81138..39168e6 100644
> > --- a/src/b4/ez.py
> > +++ b/src/b4/ez.py
> > @@ -2252,7 +2252,8 @@ def cmd_send(cmdargs: argparse.Namespace) -> None:
> >                  ccdests.append(btr.addr)
> >  
> >          excludes = b4.get_excluded_addrs()
> > -        if cmdargs.not_me_too:
> > +        conf_me_too = config.get('send-me-too').lower()
> > +        if cmdargs.not_me_too or conf_me_too in {'no', 'n', 'false'}:
> 
> Safer to do:
> 
>   conf_me_too = str(config.get('send-me-too', 'yes')).lower()
> 
> Also, I believe, mypy won't yell at you then. :)

I'm up for less yelling. My original addition did introduce a warning:

  src/b4/ez.py:2256: error: Item "List[str]" of "Union[str, List[str], None]" has no attribute "lower"  [union-attr]
  src/b4/ez.py:2256: error: Item "None" of "Union[str, List[str], None]" has no attribute "lower"  [union-attr]

Which the str() does address.

v2 coming shortly.

Cheers,


Jeremy

      reply	other threads:[~2026-06-10  2:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29  6:49 [PATCH b4] config: add send-me-too configuration Jeremy Kerr
2026-06-10  2:36 ` Konstantin Ryabitsev
2026-06-10  2:49   ` Jeremy Kerr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7e99f980881f79702491c1440fd282f17f85b19.camel@codeconstruct.com.au \
    --to=jk@codeconstruct.com.au \
    --cc=konstantin@linuxfoundation.org \
    --cc=tools@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox