-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
hub pull-request does not populate list of changes #730
Comments
Hi thanks for the detailed report 🙇 I think this line is indicative of the problem:
It reports the base as It definitely seems like it's trying to fetch the log for the wrong |
This is on GitHub Enterprise, right? Also, what is your |
Sorry, yes, I overdid it when redacting stuff. The line says: And yes, that's correct - it's GitHub Enterprise. My Not sure if it helps, but later today I will try downgrading to hub 1.x and see if that happens again. Will keep you posted. |
OK, I've just downgraded |
Just confirmed my worst suspicions... Historically, I have been forking the organization repo through WebUI, then cloning my fork locally. Once the clone was successful, I was adding another
While trying to open the pull requests (as per above), the
Surprisingly, it worked and I could see the changes list immediately after running Could it be that base is hard-coded somewhere? |
Your original naming scheme should have been supported as well. Because of this line:
it's evident that base and head for the PR were picked correctly. It's just, for some reason, that fetching the log of commits failed. I have to investigate this. |
It may be a regression. But if you don't provide the message, it doesn't matter if the file is there or not? What matters though is if you provide the message and abort the pull request, the file shouldn't be removed since the next pull request command will pick it up. |
@jingweno absolutely. It does not matter for me, just noticed the difference between two versions that may be somehow related. The file does not get removed when message is non-empty, which is expected behavior. |
Came in to work this morning and noticed one more detail. My original assumptions were bit off - years ago, the repo in question was forked from my individual account to organisation account, not the other way around as I indicated in my original comment. So I tried to reproduce the problem on a repo that has been forked from org repo into my own account and commit messages are populated properly. |
@skrobul Did you managed to pre-populate message? May I request you to provide gist of it? |
@hisavali yes, after I swapped I don't have any specific example on hand, but the message was essentially the commented output of |
My workflow is relatively common - one 'main' repo on the organization account, several contributors with their public forks of the repo. I am usually working on the features in separate branches that I push into my public fork, then using
hub
I open pull requests.Unfortunately for some time now,
hub
does not pre-populate pull request message with list of commits. This was very useful functionality, without it I have to open separate terminal window withgit log
just to see what has been changed in this particular feature branch. It could be something with my configuration, but I am having difficulties trying to find what's wrong. Is this common issue?My setup:
upstream
remote represents main organization repositoryorigin
remote represents my individual repositoryAfter I push all my commits to
origin/feature-branch
and issuehub pull-request
, my editor opens and displays following pre-populated message:Please note that it kind of works, I can write my own message and submit pull request without problem, it's just the list of commits that is missing from the message. Correct me if I'm wrong, but it looks like
hub
should insert commented list of commits.Any ideas how to fix/troubleshoot this?
The text was updated successfully, but these errors were encountered: