Skip to content

Fix the due date on an issue that covers two versions - #121

Merged
irskep merged 2 commits into
mainfrom
spec-due-date-floor-and-sibling-versions
Oct 16, 2026
Merged

irskep merged 2 commits into
mainfrom
spec-due-date-floor-and-sibling-versions

Conversation

@irskep

@irskep irskep commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Three changes to issue specs, for Linear and GitHub.

When two versions of a dependency get specs with the same scope, they share one issue. The issue asks for the higher of their two minimumVersions, but it used the thresholdDays from whichever spec came first. Say react 17 needs 17.0.5 with a 28-day threshold and react 18 needs 18.2.1 with a 10-day threshold. The issue asked for 18.2.1 and added the 28 days to its release date, so it was due weeks late. It now uses the threshold that belongs to the version it asks for.

VersionContext.dependencyVersions lists every version of the dependency in the repo, with the packages on each. A spec that files one issue per team can see what else that team is on, so its versions agree on what to ask for. It is optional, like usedBy, so existing specs do not change.

getFixVersion(store, name, version, { minSeverity: 'high' }) counts only the advisories at least that severe. Without it, a medium advisory fixed later than the high one moved the ask, and the due date, to its release. An advisory with no severity of its own takes the severity of its finding. A finding without per-advisory detail is counted or left out as a whole. Without the option, nothing changes.

@irskep
irskep force-pushed the spec-due-date-floor-and-sibling-versions branch from 65c4165 to 58d75ce Compare October 12, 2026 19:03
@irskep irskep changed the title Let a spec floor the due date and see a dependency's other versions Count a merged issue's due date from the release it asks for Oct 12, 2026
@irskep
irskep force-pushed the spec-due-date-floor-and-sibling-versions branch 2 times, most recently from 06e1e80 to b5ffec1 Compare October 12, 2026 19:07
@irskep irskep changed the title Count a merged issue's due date from the release it asks for Fix the due date on an issue that covers two versions Oct 12, 2026
@irskep
irskep marked this pull request as ready for review October 12, 2026 19:13
@irskep
irskep requested a review from mblair October 12, 2026 19:13
Say react 17 needs 17.0.5 with a 28-day threshold and react 18 needs
18.2.1 with a 10-day threshold. The issue asked for 18.2.1 but added
the 28 days to its release date. It now uses the threshold that belongs
to the version it asks for.

VersionContext.dependencyVersions lists every version of the dependency
with the packages on each, so a spec filing one issue per team can see
what else that team is on.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@irskep
irskep force-pushed the spec-due-date-floor-and-sibling-versions branch from b5ffec1 to 8a22a34 Compare October 13, 2026 16:42
A policy that files tickets for high and critical advisories wants the
release that fixes those, due four weeks after it shipped. The fix
version on a finding is the lowest release that fixes every advisory,
so a medium advisory fixed later moved the ask and the deadline to its
release. getFixVersion(store, name, version, { minSeverity: 'high' })
leaves the medium out.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@irskep
irskep merged commit 5f16e4a into main Oct 16, 2026
48 checks passed
@irskep
irskep deleted the spec-due-date-floor-and-sibling-versions branch October 16, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants