-1
我想找一个作者在一个项目中贡献的git行的总数(也叫做稳定)。用git找东西
我想找一个作者在一个项目中贡献的git行的总数(也叫做稳定)。用git找东西
如果我理解正确,你正在寻找
def lines_of_code_changed(start_date, end_date)
PullRequest.where(
author_op_id: operator_id,
modified_at: start_date..end_date.end_of_day,
open_ind: false,
merged_ind: true).sum(:lines_changed)
end