Skip to content

Commit c325281

Browse files
committed
Add comparison link to component updates
1 parent e00e6fa commit c325281

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/pyxis/managed_versioning/component_updater.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,17 @@ def execute
4747
)
4848

4949
new_version_link = "[#{new_version[0...11]}](https://github.com/#{component.github_path}/commits/#{new_version})"
50+
compare_link = "[Compare changes](https://github.com/#{component.github_path}/compare/#{current_version}...#{new_version})"
5051
pr = GithubClient.octokit.create_pull_request(
5152
Project::Reticulum.github_path,
5253
Project::Reticulum.default_branch,
5354
update_branch,
5455
"Update #{component.component_name} version to #{new_version[0...11]}",
55-
"Update #{component.component_name} to #{new_version_link} as part of managed versioning"
56+
<<~DESCRIPTION
57+
Update #{component.component_name} to #{new_version_link} as part of managed versioning
58+
59+
#{compare_link}
60+
DESCRIPTION
5661
)
5762
logger.info('Created pull request', pull_request_url: pr.html_url)
5863

0 commit comments

Comments
 (0)