Extend cherry-pick bot to support using submit in select repos
Some repos are in submit-only mode and do not use the CI.
This patch adds support for using the submit command instead,
based on configuration in the config.json or environment variables.
This config is only made available per-repo, and cannot be used
to make a specific branch submit-only.
Using configuration over deductive or fallback logic is intended to
be more explicit to reduce security concerns of unreviewed code
being hard-submitted in unapproved repos.
Task-number: QTQAINFRA-6157
Change-Id: If2d0e538369c470e0753d311e183ea736981b63c
Reviewed-by: Daniel Smith <daniel.smith@qt.io>
| commit | 2b7563fc37446adddb61f3be66d504f1dc057243 |
| parent | f3ae55255751a841c15ad77615e66c53cfd28f0e |
| author | Daniel Smith <daniel.smith@qt.io> |
| committer | Daniel Smith <daniel.smith@qt.io> |
| commit time | Wed, 20 Mar 2024 13:37:21 +0100 |
- M scripts/gerrit/cherry-pick_automation/README.md
- M scripts/gerrit/cherry-pick_automation/config.json
- M scripts/gerrit/cherry-pick_automation/gerritRESTTools.js
- M scripts/gerrit/cherry-pick_automation/notifier.js
- M scripts/gerrit/cherry-pick_automation/relationChainManager.js
- M scripts/gerrit/cherry-pick_automation/requestProcessor.js
- M scripts/gerrit/cherry-pick_automation/singleRequestManager.js
- M scripts/gerrit/cherry-pick_automation/toolbox.js