-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Repo name added to automatically generated commit message when mergin… #9997
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit but otherwise approve.
The current behaviour is actually completely specified as you can't have more than one fork of a repo and can't pr from something that isn't a fork. See the top of this page on GH right now... However I can see that it is confusing. If we're going to go for fully specified repo names then we should have a different separator between branch and repo name. Either colon or space. Whatever we choose it should then propagate through to the compare page. At present I think that uses a colon so colon is recommendeded. |
affc877
to
5eb95f3
Compare
Codecov Report
@@ Coverage Diff @@
## master #9997 +/- ##
==========================================
- Coverage 42.27% 42.26% -0.01%
==========================================
Files 610 611 +1
Lines 80375 80394 +19
==========================================
Hits 33979 33979
- Misses 42218 42237 +19
Partials 4178 4178
Continue to review full report at Codecov.
|
Actually we should use FullName() for this. (That might make backporting a bit of a problem as we've made a small improvement in master/1.12-dev whereby the repo.OwnerName is stored on the repo table. |
5eb95f3
to
81f1092
Compare
@@ -185,7 +185,7 @@ func (pr *PullRequest) GetDefaultMergeMessage() string { | |||
log.Error("Cannot load issue %d for PR id %d: Error: %v", pr.IssueID, pr.ID, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to confirm if the head repository is the same as the base repository. Then return different message. When that is the same repository, we could ignore %s/%s:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lunny take a look I've just pushed some changes up.
Please send backport |
go-gitea#9997) * Repo name added to automatically generated commit message when merging pull request * As per @lunny Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
Fix for issue #9898.