Dashboard › publish › Distillation
bfc3bb78-7dd9-4588-bc81-9702850cac63["lore_tm_v1_Z4XVKnowjS1mfwdsbOkD9PmI5MCbhoULRYWE_ytUjRU","lore_tm_v1_TMmjIZH2DLodlSHUMNsn06mDs3DeSHopgjF7vPNLiq0"]
Date: Aug 27, 2026
src/modules/details-from-context.js defines TARGETS_SECTION_PARSER_REGEX as /^(?!### Targets$\s)(?: *- \[[ xX]\] \S+\s*$(?:\r?\n)?)+/m, TARGETS_PARSER_REGEX as /^\s*- \[[ x]\] (\S+)/gim, CHECKED_TARGETS_PARSER_REGEX as /^\s*- \[x\] (\S+)/gim, and PUBLISH_TITLE_REGEX as /^publish: (?:getsentry\/)?(?<repo>[^/@]+)(?<path>\/[\w./-]+)?@(?<version>[\w.+-]+)$/.src/modules/details-from-context.js, detailsFromContext({ context }) throws new Error("Issue context is not defined") when context, context.payload, or context.payload.issue is absent; it parses title fields from context.payload.issue.title, sets dry_run to "1" only if an issue label is named "dry-run", and sets path to "." + (titleMatch.path || "").src/modules/details-from-context.js, detailsFromContext() extracts merge_target from issue-body lines matching /^Merge target: (?<merge_target>[\w.\-/]+)$/m; defaults it to ""; matches the targets section with TARGETS_SECTION_PARSER_REGEX; and returns only checked target IDs via Array.from(targetsMatch[0].matchAll(CHECKED_TARGETS_PARSER_REGEX)).map((x) => x[1]), leaving targets undefined when no targets section matches.src/modules/details-from-context.js exports detailsFromContext, TARGETS_SECTION_PARSER_REGEX, TARGETS_PARSER_REGEX, CHECKED_TARGETS_PARSER_REGEX, and PUBLISH_TITLE_REGEX.yarn run v1.22.22 → vitest run in /home/byk/Code/getsentry/publish: all 9 test files and all 40 tests passed. Passing suites: src/modules/__tests__/approval-authorizer.js (14 tests, 21ms), src/publish/__tests__/validate-approval-attestation.js (4, 37ms), src/modules/__tests__/approval-attestation.js (3, 36ms), src/modules/__tests__/update-issue.js (5, 25ms), src/modules/__tests__/process-end-state.js (4, 92ms), src/publish/__tests__/authorize-approval.js (3, 25ms), src/modules/__tests__/post-workflow-details.js (1, 12ms), src/modules/__tests__/details-from-context.js (4, 7ms), and src/libs/__tests__/github.js (2, 5ms). Vitest v4.0.17 started at 21:15:02; total duration 1.44s; Yarn completed in 2.00s.