PR Coding time affected by (squash) merge strategy #8440
Replies: 3 comments 3 replies
-
That is odd. I don't think your problem is caused by the squashing operation. Are you rebasing and force-pushing the PR before merging? If so, it might be the root cause. The commit history changed after the operation. |
Beta Was this translation helpful? Give feedback.
-
Hi @klesh , thank you for the reply. Attaching some screenshot to show in details the challenge we are facing. PR opened on 2025-04-01, updated two times and finally merged two days later on 2025-04-03. Upon merge the commits were squashed and resulted in only one commit with a timestamp equal to merge date: 2025-04-03 Eventually this PR has 0 hours for coding, pickup and review time. The change_lead_time though seems calculated correctly (2.30 days). Are you rebasing and force-pushing the PR before merging? |
Beta Was this translation helpful? Give feedback.
-
I see, thank you for the clarification, I should have looked at it better. I have other cases with 0 coding time for PRs opened by devs but I see that the calculation is "correct" in that case:
Thank you for the support! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello 👋
As per title, we are experiencing some problems in the PR coding time calculation. Specifically, because we always use to squash our commits before merging into the main branch, the PR coding time is often calculated as 0 (or close to 0).
Currently the PR coding time is calculated as "PR creation date minus first commit date" and when squashing commits upon merge the "first commit date" will have timestamp > "PR creation date"
Thx!
Beta Was this translation helpful? Give feedback.
All reactions