-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use the headline comment of pull-request as the squash commit's message #13071
Conversation
65cdf2a
to
20f0be8
Compare
Fixed now. It's manually tested. |
Codecov Report
@@ Coverage Diff @@
## master #13071 +/- ##
=======================================
Coverage 42.32% 42.33%
=======================================
Files 726 726
Lines 77689 77682 -7
=======================================
Hits 32885 32885
+ Misses 39406 39404 -2
+ Partials 5398 5393 -5
Continue to review full report at Codecov.
|
d54c86e
to
b0a229e
Compare
b0a229e
to
850cc89
Compare
850cc89
to
79ac694
Compare
I'm ok of having first commit skipped but imho other commits could still be relevant... |
@lafriks What the pr does is not about skipping the first commit, but rather using the PR's title and text as the squashed commit's message as #12365 (comment) describes. |
@typeless yes I know that... but this way it loses information from other commits that could contain needed information... |
@lafriks After some contemplation, I think the circumstances that a user would want to keep the titles of the individual commits, while choosing to do squash merges at the same time, should be relatively rare than otherwise. Of course, I can be wrong. |
I think @typeless is correct here - realistically if you're performing a squash commit the issue description is far more likely to be a better description of the PR commit message than the commit messages of all the squashed commits. I guess what we need is some sort of template reading thing. |
@typeless |
@ZhouJiaZhi |
@typeless |
@ZhouJiaZhi
No, it is copied from the PR description.
All commit messages will be discarded. |
@6543 I accidentally pressed the "request review" button. :/ No worries. |
@typeless |
Originally, it was filled by the commit messages of the involved commits. In this change, we use the headline comment of the pull request as the commit message when it is a squash merge. Thanks to @zeripath for suggesting the idea. Fixes go-gitea#12365
79ac694
to
abdf8b9
Compare
Can anyone help approve this PR |
Tests fail |
merge conflict relicts? |
Hmmm, that's confusing. |
It's a drone configuration problem. I have update the PR. |
🚀 |
Great, I wait it for a long time, When will this commit be published to docker? |
it is already on :latest i think @ZhouJiaZhi |
Originally, it was filled by the commit messages of the involved
commits. In this change, we use the headline comment of the pull
request as the commit message when it is a squash merge.
Thanks to @zeripath for suggesting the idea.
Fixes #12365