From ede538460796c6fc54cb3f5a3c7c97681883655c Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 25 Nov 2021 14:01:24 +0100 Subject: [PATCH] [IMP] forwardport: add missing space Instead of "[FW]Create README.md", the forwardport PR is now named "[FW] Create README.md" --- forwardport/models/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forwardport/models/project.py b/forwardport/models/project.py index b92e1140..a1d939a5 100644 --- a/forwardport/models/project.py +++ b/forwardport/models/project.py @@ -646,7 +646,7 @@ class PullRequests(models.Model): r = gh.post(f'https://api.github.com/repos/{pr.repository.name}/pulls', json={ 'base': target.name, 'head': f'{owner}:{new_branch}', - 'title': '[FW]' + title, + 'title': '[FW]' + (' ' if title[0] != '[' else '') + title, 'body': body }) if not r.ok: