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

Add PR number to commit message upon merge #399

Open
marcosfelt opened this issue Mar 23, 2024 · 1 comment
Open

Add PR number to commit message upon merge #399

marcosfelt opened this issue Mar 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@marcosfelt
Copy link

First, thanks for this amazing tool!

Currently, it is difficult to see which PR generated a commit on main. To find the PR associated with a commit, you have to look through all closed PRs and try to find the correct one.

I wonder if SPR could dynamically add the PR # to commits when syncing to GitHub. This would be similar to how GitHub adds the PR# to a squash merge or merge commit.

@chriscz chriscz added the enhancement New feature or request label Sep 3, 2024
@hariom-qure
Copy link

For rebase and merge: Would it make sense to interactive rebase and add the merging PR number to the summary of all commits? (like reword approximately, although we would need to add a flag to reword? or create a new editor cli?)

I'm assuming that for squash and merge, it suffices to simply add the number to summary in MergePullRequest, but the above approach has the same effect anyways

Would love to get some feedback for working on this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants