In the lock.yml you can specify to not leave a comment upon locking. See https://github.com/microsoft/vscode-python/blob/master/.github/lock.yml as an example.

On Sun, Jun 2, 2019 at 5:20 AM Ian Stapleton Cordasco <graffatcolmingov@gmail.com> wrote:
So the API endpoint to lock an issue absolutely does not require
comments on each thing. I think the idea is probably that it's easier
to understand that this was an automated process doing this rather
than being used in the vein of GitHub's moderation (which doesn't
account for anything other than abuse).

For those who are interested, the lock API is
https://developer.github.com/v3/issues/#lock-an-issue

On Sun, Jun 2, 2019 at 6:40 AM Paul Moore <p.f.moore@gmail.com> wrote:
>
> One thought - is it possible in github to subscribe to "everything
> that isn't closed"? I couldn't see such an issue but that would (a)
> let me ignore the lockbot messages, and (b) let me ignore close
> threads so I wouldn't even need lockbot.
>
> Paul
>
> On Sun, 2 Jun 2019 at 12:26, Paul Moore <p.f.moore@gmail.com> wrote:
> >
> > The bot has just been enabled, and it's catching up on historical bugs
> > (which can't be done all in one go, as rate limits would hit us).
> > Hopefully it should die down in a few days.
> >
> > Whether there's a way to tell github not to send such notifications,
> > or whether it's possible for us to configure the bot to lock the
> > thread but not add a comment, I don't know.
> > Paul
> >
> > On Sun, 2 Jun 2019 at 09:12, Robert Collins <robertc@robertcollins.net> wrote:
> > >
> > > Seems like most of the pip bugmail I get now is lockbot messages
> > > telling me that a bug that hasn't received any discussion for a long
> > > time now can't have any more discussion. Is that really needed? The
> > > github UI shows the lock status of bugs itself...
> > >
> > > -Rob
> > > --
> > > Distutils-SIG mailing list -- distutils-sig@python.org
> > > To unsubscribe send an email to distutils-sig-leave@python.org
> > > https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> > > Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/2Z4THA3D3JQSUYVK7YNKVYAKHVCZJZ7Y/
> --
> Distutils-SIG mailing list -- distutils-sig@python.org
> To unsubscribe send an email to distutils-sig-leave@python.org
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/ROZ4Z2TYDE62XZEOHGJV635ZB6CCMZAW/
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-leave@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/distutils-sig@python.org/message/KXWKPVGM64LNUHUGGRHVTSKDXY6HCO4O/