Пример
Код: Выделить всё
response = requests.post("https://gitlab.com/api/v4/projects/{project_id}/trigger/pipeline",
data={'token': 'token', 'ref': 'branch', 'variables': [{'key': 'MR_ID', 'value': 'VALUE'}])
response = requests.post("https://gitlab.com/api/v4/projects/{project_id}/trigger/pipeline",
data={'token': 'token', 'ref': 'branch', {variables': [{'key': 'MR_ID', 'value': 'VALUE'}]})
Документация
- Создать новый конвейер
- Триггеры конвейера
Подробнее здесь: https://stackoverflow.com/questions/559 ... n-requests