堆叠工作流程

Code review can take a long time, for both the pull request author and reviewers.

代码审查可能会花费很长时间,无论是对拉取请求的作者还是审查者。

As the author, you can be stuck waiting for hours, days or even years before you can merge. This is especially challenging on distributed teams across different timezones. You're trying to ship a feature, but you're stuck waiting on review from someone who's fast asleep on the other side of the world.

作为作者,你可能会被迫等待数小时、数天甚至数年才能合并。这在跨不同时区的分布式团队中尤其具有挑战性。你试图发布一个功能,但却被困在等待来自世界另一端正在熟睡的人的审查中。

Finally your teammate wakes up, leaves a few comments, requests changes, and now you have to iterate, starting the whole cycle again.

最后,你的队友醒来了,留下了一些评论,请求更改,现在你必须进行迭代,重新开始整个循环。

Code review is also time-consuming for the reviewers. Leaving a meaningful review can take a considerable amount of time, particularly if the pull request is large. A thorough code review involves sifting through the code changes, building context, leaving comments and suggestions, and then waiting on the author to respond.

代码审查对审查者来说也是耗时的。留下有意义的审查可能需要相当长的时间,特别是当拉取请求很大时。彻底的代码审查涉及筛选代码更改、建立上下文、留下评论和建议,然后等待作者的回应。

Waiting for your teammates to review your pull requests slows you down and blocks you from shipping anything that depends on the code you're waiting on a review for.

等待你的队友审查你的拉取请求会拖慢你的进度,并阻止你发布任何依赖于你正在等待审查的代码的内容。

Things you could be doing with your time instead of waiting on code review:

你可以用来做的事情,而不是等待代码审查:

  • Shipping impactful new features
  • 发布有影响力的新功能
  • Tackling that tech debt chore you've been putting off
  • 处理你一直拖延的技术债务任务
  • Going to the beach
  • 去海滩

Stacking parallelizes your development and code review workstreams, so you don't need to wait for your previous changes to be merged before building on top of them.

堆叠使你的开发和代码审查工作流并行化,因此你不需要在构建在之前的更改之上之前等待它们被合并。

Imagine you're creating a feature that requires both a new server endpoint, and front-end changes. You've just written the PR that creates the endpoint on a new feature branch. In a traditional workflow, next you'd have to get that PR reviewed, merge it into main, and once that's done, branch off of...

开通本站会员,查看完整译文。

Accueil - Wiki
Copyright © 2011-2025 iteam. Current version is 2.147.1. UTC+08:00, 2025-11-06 06:46
浙ICP备14020137号-1 $Carte des visiteurs$