diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py index 50639af5fbe..73245b09d6d 100644 --- a/readthedocs/projects/forms.py +++ b/readthedocs/projects/forms.py @@ -409,8 +409,7 @@ def setup_external_builds_option(self): url = reverse("projects_integrations", args=[self.instance.slug]) if not has_supported_integration: msg = _( - "To build from pull requests you need a " - f'GitHub or GitLab integration.' + f'To build from pull requests you need a GitHub or GitLab integration.' ) if has_supported_integration and not can_build_external_versions: # If there is only one integration, link directly to it. @@ -420,9 +419,7 @@ def setup_external_builds_option(self): args=[self.instance.slug, integrations[0].pk], ) msg = _( - "To build from pull requests your repository's webhook " - "needs to send pull request events. " - f'Try to resync your integration.' + f'To build from pull requests your repository\'s webhook needs to send pull request events. Try to resync your integration.' ) if msg: