summaryrefslogtreecommitdiff
path: root/tests/fakegithub.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-03-22 21:52:14 +0000
committerGerrit Code Review <review@openstack.org>2023-03-22 21:52:14 +0000
commit1ba52ec37259c9f3c09cb2401f191178f136bb50 (patch)
tree7ecf8656af0859d2ce42700029c1f411e7457eda /tests/fakegithub.py
parentc0a935c92bc4a85028484ef9ec117c8251ee247e (diff)
parente3d6cb0724a413a2279cc9e08b31f8adf2acec44 (diff)
downloadzuul-1ba52ec37259c9f3c09cb2401f191178f136bb50.tar.gz
Merge "Don't add PR title in commit message on squash"
Diffstat (limited to 'tests/fakegithub.py')
-rw-r--r--tests/fakegithub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fakegithub.py b/tests/fakegithub.py
index 725c083e2..25dcb15da 100644
--- a/tests/fakegithub.py
+++ b/tests/fakegithub.py
@@ -730,7 +730,7 @@ class FakeGithubSession(object):
'message': 'Merge not allowed because of fake reason',
}
return FakeResponse(data, 405, 'Method not allowed')
- pr.setMerged(json["commit_message"])
+ pr.setMerged(json.get("commit_message", ""))
return FakeResponse({"merged": True}, 200)
return FakeResponse(None, 404)