Skip to content

Commit cde293e

Browse files
committed
chore: add logging around MR creation/merging
Signed-off-by: Tim Knight <tim.knight1@engineering.digital.dwp.gov.uk>
1 parent 037b5fc commit cde293e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/functional/cli/test_cli_repository.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def test_commit_merge_requests(gitlab_cli, project, merge_request, wait_for_side
7878
that we can print the result using the `json` formatter"""
7979
# Merge the MR first
8080
logging.info(f"MR status: {merge_request.state}")
81+
logging.info(f"MR merge status: {merge_request.detailed_merge_status}")
8182
merge_result = merge_request.merge(should_remove_source_branch=True)
8283
wait_for_sidekiq(timeout=60)
8384

tests/functional/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ def _make_merge_request(*, source_branch: str, create_pipeline: bool = False):
429429
approval_rules = project.approvalrules.list()
430430
logging.info(f"MR Approval Rules {approval_rules}")
431431

432+
# allow_merge_on_skipped_pipeline = true,
433+
432434
if create_pipeline:
433435
project.files.create(
434436
{

0 commit comments

Comments
 (0)