Skip to content

Commit

Permalink
feat(bot): change for configuring trestle-bot PR body update (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbraswelrh authored Oct 14, 2024
1 parent 5158116 commit 812ae9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all: develop lint test
.PHONY: all

develop: pre-commit
@poetry install
@poetry install --with tests,dev
@poetry shell
.PHONY: develop

Expand Down
4 changes: 2 additions & 2 deletions tests/trestlebot/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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")
2 changes: 1 addition & 1 deletion trestlebot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 812ae9a

Please sign in to comment.