| Zelalem | 917b43e | 2020-08-04 11:39:55 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # | ||||
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. | ||||
| 4 | # | ||||
| 5 | # SPDX-License-Identifier: BSD-3-Clause | ||||
| 6 | # | ||||
| 7 | |||||
| 8 | # Install pygerrit2 if needed | ||||
| 9 | python3 -c "from pygerrit2 import GerritRestAPI, HTTPBasicAuth" | ||||
| 10 | if [ $? != 0 ] | ||||
| 11 | then | ||||
| 12 | yes | pip3 install pygerrit2 | ||||
| 13 | fi | ||||
| 14 | |||||
| 15 | # Run bot | ||||
| 16 | cd $(dirname "$0") | ||||
| 17 | python3 gerrit_bot.py --user $1 --password $2 --maintainers $3 | ||||