Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: attach git diff in the PR description #323

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}.
sasakisasaki marked this conversation as resolved.
Show resolved Hide resolved
'''

# 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
Loading