TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is it a di*k move to reject pull requests with non-eng commit msgs?

22 pointsby wolandark11 months ago
Tl;Dr is it a di*k move to ignore or reject pull requests that use non-English languages in commit msgs even though the project is all documented in English and is not a local project?<p>I just noticed a pull request with 5 commits on one of my repos with Chinese commit msgs. Even though the author has added a commit msg in English, explaining what he has done, it still pisses me off that I can&#x27;t navigate the pull requests in a sane way because I can&#x27;t tell what they contain until I open them one by one.<p>What do you think, and what is the professional approach to sth like this?

25 comments

andrei_says_11 months ago
I would try to drop the “d*ck move” narrative from my thinking if I was you.<p>There’s a clear precedent, and a clear reason, to request the rewrite.<p>This has nothing to do with personalities and everything to do with the quality and navigability of the code - just make sure to communicate the whys with your request and word it politely.
评论 #40793098 未加载
评论 #40796649 未加载
viraptor11 months ago
I think you&#x27;re overthinking this. &quot;Thanks for the PR. Could you update the commits to English, please?&quot; Is all that&#x27;s needed.<p>If the situation is pissing you off, that&#x27;s a separate thing. Maybe you should slow down and consider why. Someone just gave you some of their free time, just not in a perfect way you expected.
评论 #40793556 未加载
评论 #40798722 未加载
purpleflashing11 months ago
&gt;What do you think, and what is the professional approach to sth like this?<p>I&#x27;d say this would be a perfect time to introduce or update your project&#x27;s contribution guide.<p>You can develop your own rules or use some existing spec to standardize commit messages such as Conventional Commits: <a href="https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;en&#x2F;v1.0.0&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.conventionalcommits.org&#x2F;en&#x2F;v1.0.0&#x2F;</a>
评论 #40796654 未加载
practicalrs11 months ago
You can ask the contributor to rebase the branch and rewrite commit messages.<p>I also would not want localized commit messages in my repos.
gary_011 months ago
Let&#x27;s flip it around. Personally, I wouldn&#x27;t submit changes with a bunch of English in it to a project that was primarily Chinese. I would feel like a jerk doing that. Instead I would make a best effort to translate everything into the project&#x27;s language.<p>Maybe I would forget to translate some things, in which case a friendly request to fix the oversight would be appreciated.
morkalork11 months ago
It&#x27;s absolutely valid to reject for non-English if you want. I&#x27;ve seen companies have to enforce that policy internally too before.
throwaway21111 months ago
No. Your repo&#x27;s in English. It&#x27;s lazy of the contributor. I&#x27;m a Chinese speaker if that makes any difference which it shouldnt.
评论 #40797300 未加载
palata11 months ago
Read the code:<p>- If you can understand it and it makes sense, feel free to rewrite the git history and accept the patch.<p>- If you cannot understand it, ask questions based on your understanding. Feel free to refuse the PR if it does not end up making sense for you.<p>The fact that the commit messages are not English don&#x27;t matter at all IMHO: you are entitled to refuse a PR even if the commit messages are in English. What matters is whether or not you want to maintain the offered changes. And in order to do that, you need to understand the code.
评论 #40793689 未加载
muzani11 months ago
The professional approach is to add the English requirement to the style sheet and ask them to resubmit it accordingly to the submission guidelines.<p>To be more polite, run it through Google Translate yourself and propose text that isn&#x27;t broken English. Sometimes they&#x27;re just terrible at English and are reluctant to translate it.<p>I wouldn&#x27;t be surprised if the commits are just &quot;aaaaaaaaaaaaa&quot; or swearing in another language.
asyx11 months ago
Rule of thumb in Germany is that everything code related must be in English for the simple reason that should you hire people that are not speaking German, they will have a much harder type getting into the codebase.<p>And that&#x27;s for projects started in German companies for German users written by German.<p>The idea of contributing to an open source project that hasn&#x27;t a single German sentence anywhere to be found and then adding German commit messages seems insane to me. I&#x27;d never even thought about this.<p>So yeah. Just tell him &#x2F; her to rewrite the commit messages in English.
bravetraveler11 months ago
Distilled completely, they end up processed one by one, right? Triage is always a slog.<p>Putting up contributor guidelines would help <i>[assuming they&#x27;re missing]</i>. Otherwise, I&#x27;d just get to sorting out the code&#x2F;branches when <i>&#x27;most convenient&#x27;</i> and carry on.<p>Most of my stuff gets zero attention. I can&#x27;t be so picky
ilaksh11 months ago
I can understand why someone who speaks little English would be tempted to try to avoid translating the commit messages in case you didn&#x27;t care. Maybe they were just busy.<p>But it also does seem reasonable to be annoyed and want it changed. Also reasonable to be less than 100% sure about making them do that if you want to encourage contributors. But you should ask them to fix things you don&#x27;t like.<p>I think the nice thing to do would be to just use &quot;please&quot; when requesting to translate the messages. And if they won&#x27;t bother for some reason then of course you don&#x27;t need to accept it.
znpy11 months ago
&gt; Tl;Dr is it a di*k move to ignore or reject pull requests that use non-English languages in commit msgs even though the project is all documented in English and is not a local project?<p>No.<p>&gt; What do you think, and what is the professional approach to sth like this?<p>1. Be thankful to the person that made these commmits<p>2. Explain that comments in a language other than english are difficult for you to understand and will be difficult for other people to understand as well, in the future<p>3. Ask the person to re-submit the pull request with commit messages in english, warning that you&#x27;ll have to reject the pull-request otherwise
ivanvanderbyl11 months ago
I would politely ask the author to resubmit the PR in English to ensure a speedy review.
shrimp_emoji11 months ago
Everyone should use English. All technology should be in English, as it was in the beginning. Locales were a mistake and are a headache. Internationalization is a misguided boondoggle that enables a quagmire of fractured communication.
评论 #40802934 未加载
评论 #40795063 未加载
评论 #40793914 未加载
givemeethekeys11 months ago
You could reject it with a nicely worded rejection message, thanking them for their work and explaining why it causes difficulty and how they can resubmit it with a fix and how the fix would make future contributors lives much easier.
devoutsalsa11 months ago
Be kind and you just might find they’ll rewind what they had in mind.
JoeyBananas11 months ago
Commit messages don&#x27;t matter. They&#x27;re inherently redundant.
nine_zeros11 months ago
I would think it is a d*ck move to base a PRs value on commit history instead of the final PR message that could be squashed and merged as one commit.
powerapple11 months ago
Personally I think we should have already live in an age of no barrier of communication. Machine translation is working well. I often click on &quot;translate&quot; button on Facebook, TikTok for comments in languages I don&#x27;t understand. I think it is a problem for GitHub to solve, not you. So I would say, you can reject based on the fact that as a maintainer you don&#x27;t understand the commit message, it is fair.
aio211 months ago
Dude, it&#x27;s okay to say &#x27;dick&#x27;
评论 #40794789 未加载
评论 #40797424 未加载
horsh111 months ago
Latin should be okay.
brudgers11 months ago
If you think it might be, behave as if it is. Good luck.
pengaru11 months ago
no
wizzwizz411 months ago
I think, if you have this problem, your tooling is bad. There are broadly two approaches to git commit history: (a) it should reflect the historical development process; and (b) it should be cleaned up and pretty.<p>If you&#x27;re taking approach (b), then the maintainer is responsible for rewriting commits (e.g. squash merge). If using GitHub, only the commit description given in the PR is used, and the &quot;true&quot; history is discarded, so it doesn&#x27;t matter.<p>I prefer approach (a), but even something as primitive as gitk (from Git GUI) would let me browse the history you describe without issues. Provided that the merge commit is a summary in the project language, intermediate &quot;true-history&quot;-style commits are most useful as a mnemonic aid to the original developer, and secondarily as evidence for a retrospective investigation (for which you want as much primary-source data as possible: even if the author&#x27;s fluently bilingual, translating risks losing valuable information).<p>The best approach, imo, is to be fine with this, and take measures to ensure that it does not impede your workflow. An acceptable, professional approach would be to add a contributor&#x27;s guide, requiring that all commit messages have their first line in English.<p>If you&#x27;re getting angry, that suggests you&#x27;re doing something silly like relying on GitHub&#x27;s useless web view.
评论 #40808298 未加载
评论 #40797978 未加载