Add resubmission using the bot commands
Adds ability to resubmit using bot commands on Gitlab.
Whenever someone types in /bot-help
, a list of possible commands are outputted.
This new one introduces /submit-failed
, which when passing --do-for-real
will actually clean up the repository, and --allow-submit
will allow the bot to resubmit the jobs
Inspired by https://gitlab.cern.ch/lhcb-core/LbNightlyTools/-/blob/master/python/LbNightlyTools/Scripts/GitlabMR.py
TODO:
-
Get comment command parsing working -
Understand difference between allow submit and do for real -
Move code in the right places -
Figure out what to return when you run the command -
Find a way to parse the command with the argument
Follow up:
- fix formatting!!
tackles #14