Skip to content

Commit

Permalink
feat: attach git diff in the PR description (#323)
Browse files Browse the repository at this point in the history
* feat: attach `git diff` in the PR description

Signed-off-by: Junya Sasaki <[email protected]>

* fix: simplify link symbol

Signed-off-by: Junya Sasaki <[email protected]>

* Update create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py

Signed-off-by: Junya Sasaki <[email protected]>

Co-authored-by: Yutaka Kondo <[email protected]>

* Update create-prs-to-update-vcs-repositories/create_prs_to_update_vcs_repositories.py

Signed-off-by: Junya Sasaki <[email protected]>

Co-authored-by: M. Fatih Cırıt <[email protected]>

---------

Signed-off-by: Junya Sasaki <[email protected]>
Co-authored-by: Yutaka Kondo <[email protected]>
Co-authored-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent e1102ae commit 61dd531
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 61dd531

Please sign in to comment.