Repository navigation
task-monitor on jira: title repeats the key (ML-450 ML-450: …) and a PR without ## Summary shows its JIRA: <url> line as the description: drop a leading label from PR titles, find prose after Closes KEY, skip link-only paragraphs (#299) - #316
Merged
Merged
Conversation
…PR without ## Summary shows its JIRA: <url> line as the description: drop a leading label from PR titles, find prose after Closes KEY, skip link-only paragraphs (#299) - `lib/monitor-assemble.jq`: `strip_label` drops a leading `KEY:`, `[KEY]`, `key -` or `KEY —` from in-flight and done PR titles, matched ignoring case and only as a whole label; `pr.title` keeps the raw title. - `lib/monitor-text.sh`: the after-Closes fallback recognises a tracker key and a Jira browse URL; both fallbacks skip paragraphs that are only a link, `Label: <url>` or a `Closes …` line (`tm_first_prose`), so a link-only body yields no description. `## Summary` is read as before. - Tests, schema doc, README and CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
Spec complianceAll four fix items and the acceptance list are delivered:
Code-review findingsNo blockers. One nit worth fixing in this PR:
Checked and fine: Verdictclean-with-nits: tighten |
Owner
Author
PM: one round before mergeCI is green. Two small items, both in this PR:
Mutation-check both (revert each fix and watch the new assertion go red), then |
…PR without ## Summary shows its JIRA: <url> line as the description: keep a short Closes sentence, test key-only titles (#299) - `lib/monitor-text.sh`: `junk()` drops a `Closes`/`Fixes`/`Resolves` paragraph only when its object is a `#N`, a tracker key or a URL, so `Fixes bug` stays a description. - Tests: `Fixes bug` kept, `Closes ML-450` / `Closes #5` / a browse URL skipped; titles that are only the key (`PROJ-7`, `PROJ-7:`, `[PROJ-7]`) are kept as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On jira repos the task-monitor showed the issue key twice (
ML-450 ML-450: …), and when a PR had no## Summaryit used theJIRA: <url>line as the description. Now a leading key is dropped from PR titles, and the summary fallback finds the prose afterCloses ML-450and skips paragraphs that are only links orCloseslines.Closes #299
Changes
lib/monitor-assemble.jq: newstrip_label, applied to in-flight PR titles and done items. It dropsKEY:,[KEY],key -andKEY —, ignoring case. Only a whole label counts (ML-4500is left alone), and a title that is only the label is kept.pr.titlestays raw. gh labels are#N, so gh titles are unchanged, and describer/queue titles are not touched.lib/monitor-text.sh: theClosesfallback also matches a tracker key (generic[a-z][a-z0-9_]*-[0-9]+, lowercased) and a/browse/KEYURL. Both fallbacks use the newtm_first_prose, which skips paragraphs that are only a URL, a markdown link,Label: <url>, or a singleCloses …. With nothing left, the description is null.Closes #5, which now gives a null summary, so the scenario andsnapshot-reviewer.jsongained a prose line (only types are compared, andpr.summarystays a string).docs/task-monitor-schema.md, README monitor paragraph, CHANGELOG.Tests
New cases in
tests/task_monitor_snapshot.bats: four title forms dedupe againstPROJ-7andPROJ-70is kept; in-flight jira dedupe withpr.titleraw; ghFix #4: …untouched;JIRA: <url>then prose gives the prose; a link-only body gives null;tm_pr_summaryonCloses KEY,Fixes <browse URL>, a link-only body, and## Summarystill winning.Mutation-checked, and each one turned at least one new test red: no dedupe, a case-sensitive match, no separator boundary, the old
#N-only Closes regex, no link filter. Full suite: 1640/1640, pluscheck-drift.shandshellcheck -x. The awk was also checked under mawk 1.3.4 (Ubuntu 24.04).🤖 Generated with Claude Code