github: fix config mistake preventing repo lockdown commenting
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 23 Mar 2022 11:42:46 +0000 (11:42 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Apr 2022 15:12:26 +0000 (16:12 +0100)
commit5cf434b5af386fadc3418df71d3738676cbb0549
tree3263330f18f2db65791125c01edfe88c0bb3eee4
parent9aaf11e7f2b5487b684e900cf164f0aef25f72ab
github: fix config mistake preventing repo lockdown commenting

The previous commit updated the repo lockdown config to the new
format:

  commit 9b89cdb2a5064a87b8a7172fa1748d46aa37a9df
  Author: Alex Bennée <alex.bennee@linaro.org>
  Date:   Mon Oct 4 16:43:08 2021 +0100

    .github: move repo lockdown to the v2 configuration

Unfortunately the config key names used were wrong, resulting in
the repo lockdown throwing warnings:

  Unexpected input(s) 'pull-comment', 'lock-pull', 'close-pull',
  valid inputs are ['github-token', 'exclude-issue-created-before',
  'exclude-issue-labels', 'issue-labels', 'issue-comment',
  'skip-closed-issue-comment', 'close-issue', 'lock-issue',
  'issue-lock-reason', 'exclude-pr-created-before', 'exclude-pr-labels',
  'pr-labels', 'pr-comment', 'skip-closed-pr-comment', 'close-pr',
  'lock-pr', 'pr-lock-reason', 'process-only', 'log-output']

It still locked down the pull requests, due to its default config,
but didn't leave the friendly message explaining why.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
.github/workflows/lockdown.yml