Legoktm has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/385510 )
Change subject: Fix autoapprove for phpcs.xml -> .phpcs.xml rename ...................................................................... Fix autoapprove for phpcs.xml -> .phpcs.xml rename Change-Id: If3b69dbb1e983ceb0a9af5252c814cad078c783a --- M container/thing.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/labs/libraryupgrader refs/changes/10/385510/1 diff --git a/container/thing.py b/container/thing.py index 9151962..66509d5 100755 --- a/container/thing.py +++ b/container/thing.py @@ -36,6 +36,7 @@ 'package.json', 'phpcs.xml', '.phpcs.xml', + 'phpcs.xml -> .phpcs.xml', } RULE = '<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">' RULE_NO_EXCLUDE = '<rule ref="(\./)?vendor/mediawiki/mediawiki-codesniffer/MediaWiki"( )?/>' @@ -233,7 +234,7 @@ print(msg) subprocess.call(['git', 'diff']) changed = subprocess.check_output(['git', 'status', '--porcelain']).decode().splitlines() - changed_files = {x.strip().split(' ', 1)[1] for x in changed} + changed_files = {x.strip().split(' ', 1)[1].strip() for x in changed} auto_approve = changed_files.issubset(AUTO_APPROVE_FILES) commit_and_push( files=['.'], -- To view, visit https://gerrit.wikimedia.org/r/385510 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If3b69dbb1e983ceb0a9af5252c814cad078c783a Gerrit-PatchSet: 1 Gerrit-Project: labs/libraryupgrader Gerrit-Branch: master Gerrit-Owner: Legoktm <lego...@member.fsf.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits