Skip to content

Commit

Permalink
Include repo name in Auto merge message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jan 4, 2024
1 parent 27c1a37 commit 4d41ff5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions homu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,14 @@ def create_merge(state, repo_cfg, branch, logger, git_cfg,

state.refresh()

repo = state.get_repo()
lazy_debug(logger,
lambda: "create_merge: attempting merge {} into {} on {!r}"
.format(state.head_sha, branch, state.get_repo()))
.format(state.head_sha, branch, repo))

merge_msg = 'Auto merge of #{} - {}, r={}\n\n{}\n\n{}'.format(
merge_msg = 'Auto merge of {}/{}#{} - {}, r={}\n\n{}\n\n{}'.format(
repo.owner.login,
repo.name,
state.num,
state.head_ref,
'<try>' if state.try_ else state.approved_by,
Expand Down

0 comments on commit 4d41ff5

Please sign in to comment.