-
Notifications
You must be signed in to change notification settings - Fork 0
drive: cloud run 51422f20 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,9 +15,11 @@ | |
|
|
||
| /** First bold top-level bullet: `- **Title** rest`. */ | ||
| const ENTRY = /^- \*\*(.+?)\*\*\s*(.*(?:\n .*)*)/m; | ||
| const ACTION_TITLE = | ||
| /** Work describes a change or a required outcome; reference notes do not. */ | ||
| const WORK_INTENT = | ||
| /\b(?:add|build|change|close|create|document|fix|implement|must|persist|refuse|release|remove|rename|replace|sharpen|touch(?:es|ing)?|update|validate|verified by|wire)\b/i; | ||
| const IMPERATIVE_TITLE = | ||
| /^(?:add|build|change|close|create|document|fix|implement|persist|refuse|release|remove|rename|replace|sharpen|update|validate|wire)\b/i; | ||
| const NOTES_TITLE = /^(?:notes?|release notes|upstream issues)\s*(?:\(|:|$)/i; | ||
|
|
||
| export interface BacklogEntry { | ||
| title: string; | ||
|
|
@@ -122,11 +124,10 @@ export function packageFromEntry(entry: BacklogEntry): Record<string, unknown> { | |
| const explicitChecks = (entry.body.match(/`[^`]+`/g) || []) | ||
| .map((candidate) => candidate.slice(1, -1)) | ||
| .filter((candidate) => /\s/.test(candidate)); | ||
| const definitionOfDone = NOTES_TITLE.test(entry.title) | ||
| ? [] | ||
| : explicitChecks.length > 0 | ||
| const definitionOfDone = | ||
| explicitChecks.length > 0 && WORK_INTENT.test(`${entry.title} ${entry.body}`) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When an engineering entry names no backticked path, this condition can now supply a definition of done, but Useful? React with 👍 / 👎. |
||
| ? explicitChecks | ||
| : ACTION_TITLE.test(entry.title) | ||
| : IMPERATIVE_TITLE.test(entry.title) | ||
| ? [entry.title.replace(/[.:]\s*$/, '')] | ||
| : []; | ||
| return { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a valid task whose title is not one of these exact imperatives and whose body uses an unlisted verb,
WORK_INTENTdiscards otherwise valid explicit checks. In this commit's backlog, “The executable bit does not survive the snapshot upload” has anops/cargo.shscope and an explicit command but says “Invoke it”; the parent accepted it, while this commit rejects it withmissing_definition_of_done, reducing the aggregate actionable count from 4 to 3. Work phrased with verbs outside this list therefore becomes unselectable.Useful? React with 👍 / 👎.