roll_util: Add link to repository being rolled
Add links to the repositories being rolled in the commit message. This
makes it easier to track down the commits themselves.
Change-Id: I848a411cc911e8c539d75e767061707ed79c0097
Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/56321
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/recipe_modules/roll_util/api.py b/recipe_modules/roll_util/api.py
index 6df915c..d2d3ee6 100644
--- a/recipe_modules/roll_util/api.py
+++ b/recipe_modules/roll_util/api.py
@@ -314,6 +314,7 @@
template = """
[roll {project_name}] {sanitized_message}
+{remote}
{project_name} Rolled-Commits: {old_revision:.15}..{new_revision:.15}
""".strip()
@@ -321,6 +322,7 @@
kwargs = {
'project_name': roll.project_name,
+ 'remote': roll.remote,
'original_message': commit.message,
'sanitized_message': _sanitize_message(commit.message),
'old_revision': roll.old_revision,
@@ -350,6 +352,7 @@
{one_liners}
+{remote}
{project_name} Rolled-Commits: {old_revision:.15}..{new_revision:.15}
""".strip()
@@ -365,6 +368,7 @@
kwargs = {
'project_name': roll.project_name,
+ 'remote': roll.remote,
'num_commits': num_commits,
'one_liners': '\n'.join(one_liners),
'old_revision': roll.old_revision,