From 61dd53177029fd399960d6b89788226a6b73364e Mon Sep 17 00:00:00 2001 From: Junya Sasaki Date: Wed, 9 Oct 2024 11:51:02 +0900 Subject: [PATCH] feat: attach `git diff` in the PR description (#323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: attach `git diff` in the PR description Signed-off-by: Junya Sasaki * fix: simplify link symbol Signed-off-by: Junya Sasaki * Update create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py Signed-off-by: Junya Sasaki Co-authored-by: Yutaka Kondo * Update create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py Signed-off-by: Junya Sasaki Co-authored-by: M. Fatih Cırıt --------- Signed-off-by: Junya Sasaki Co-authored-by: Yutaka Kondo Co-authored-by: M. Fatih Cırıt --- .../create_prs_to_update_vcs_repositories.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py b/create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py index 87f5138a..c74d21d7 100644 --- a/create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py +++ b/create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py @@ -353,11 +353,20 @@ def main(args: argparse.Namespace) -> None: # Switch back to base branch repo.heads[args.base_branch].checkout() + # Compose a PR body + pr_body = f'''## Description +This PR updates the version of the repository {repo_name} in autoware.repos. + +## What's changed + +You can see the changes in https://github.com/{repo_name}/compare/{current_version}...{latest_tag}. +''' + # Create a PR github_interface.create_pull_request( repo_name = args.repo_name, title = title, - body = f"This PR updates the version of the repository {repo_name} in autoware.repos", + body = pr_body, head = branch_name, base = args.base_branch )