TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Emoji in Commit Messages or Not?

6 点作者 pplonski86超过 4 年前
Are you adding emoji icons in your commit messages or not? If yes what kind of emojis are you using? If not, do you find emojis illegible in the commit msg?

7 条评论

ladberg超过 4 年前
Our tools automatically add an emoji at the beginning of commits for PRs that were approved, unapproved, or work-in-progress. I would say it&#x27;s pretty beneficial because you can just scan down the git log and get an understanding of what&#x27;s happening.<p>We also have the bonus of knowing exactly what web and git clients the whole team is using, but for more open projects it might be an issue.
评论 #24418980 未加载
notRobot超过 4 年前
Has been discussed before: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21760021" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21760021</a><p>Concensus seems to be that they should be avoided.
评论 #24419606 未加载
kevinherron超过 4 年前
Maybe I&#x27;m just a grumpy old (30-something...) developer now, but I&#x27;d prefer not to see emoji in commit messages. It seems unprofessional.<p>I really don&#x27;t even like seeing those stupid READMEs full of them.
curryst超过 4 年前
I&#x27;ve never thought of it, but I could see some potential value. How would one insert them? With the Slack-style :name: tags, or do you actually put the literal character in? The :name: version might be nice because it renders cleanly on the console.<p>They could be marginally useful as quick indicators for skimming git log output. In a well orchestrated system, you could do something like add 2 emojis to the front of every commit&#x2F;MR indicating the reason for the change (bugfix,feature,etc) and the component of the system you touched. I.e. a bug emoji and a lock emoji for a bugfix in the auth system. As long as the info is kept high level, brief, and most importantly consistent (i.e. every MR has 2 emojis, or every MR has 4 emojis, there is no situation where an MR would have an extra or missing emoji), it should be really easy to skim. I don&#x27;t know if that value is worth the pain of having to bicker about whether a particular emoji should be labeled with bugfix vs enhancement and such.<p>I wouldn&#x27;t encode any information solely in emoji characters because of the relative difficulty of displaying them in consoles and of automatically parsing them in something like bash. If I was going to do that emoji tagging, I would make it a requirement that there are accompanying tags in the message (or make a tool that automatically appends them based on the emojis).
评论 #24438807 未加载
2rsf超过 4 年前
No. Emoji don&#x27;t show well on the command line, I have never seen a a commit message using one.
rvz超过 4 年前
But why? It may be tempting for developers using web based git clients but it is quite frankly superfluous.<p>Not all Emoji will be rendered correctly in all Git Clients.<p>Tags such as [BUG], [FIX], fix:, etc is unambiguous, unlike some Emojis used.
pplonski86超过 4 年前
For example in fastAPI repo I see emojis in the commits <a href="https:&#x2F;&#x2F;github.com&#x2F;tiangolo&#x2F;fastapi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tiangolo&#x2F;fastapi</a>