diff --git a/Makefile b/Makefile index 264007a..aff6cb4 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ all: develop lint test .PHONY: all develop: pre-commit - @poetry install + @poetry install --with tests,dev @poetry shell .PHONY: develop diff --git a/tests/trestlebot/test_bot.py b/tests/trestlebot/test_bot.py index 7a2c678..29250b3 100644 --- a/tests/trestlebot/test_bot.py +++ b/tests/trestlebot/test_bot.py @@ -347,7 +347,7 @@ def test_run_with_provider(tmp_repo: Tuple[str, Repo]) -> None: head_branch="test", base_branch="main", title="Automatic updates from bot", - body="", + body="Authored by trestle-bot.", ) mock_push.assert_called_once_with(refspec="HEAD:test") @@ -396,6 +396,6 @@ def test_run_with_provider_with_custom_pr_title(tmp_repo: Tuple[str, Repo]) -> N head_branch="test", base_branch="main", title="Test", - body="", + body="Authored by trestle-bot.", ) mock_push.assert_called_once_with(refspec="HEAD:test") diff --git a/trestlebot/bot.py b/trestlebot/bot.py index 23aeadd..955ded3 100644 --- a/trestlebot/bot.py +++ b/trestlebot/bot.py @@ -120,7 +120,7 @@ def _create_pull_request( head_branch=self.branch, base_branch=self.target_branch, title=pull_request_title, - body="", + body="Authored by trestle-bot.", ) return pr_number