agiledigital / agiledigital/jiralint

New rule: comment added within X hours of worklog

未关闭
#40 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
7
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

Our current comment checking rule requires a comment if:

1. time has been logged AND the issue isn't closed
2. OR the issue is in progress

A conceptually simpler rule is to require a comment whenever time has been logged. i.e a comment must be added "around" the same time that a worklog is added.

The check would look at:

1. time of most recent worklog
2. time of most recent comment

the rule would pass if the comment was <1d *before* the worklog or after it.

What makes it non-trivial is that worklogs and comments are both paginated fields, so they may be truncated. Issues are currently retrieved using the search API. We need to do one of:

1. see if those fields can be sorted so that we always get the most recent comment and worklog
2. check search results and (if necessary) pull individual ticket comments and worklogs

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。