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.