MCPcopy Create free account
hub / github.com/47ng/nuqs / issuesOf

Function issuesOf

packages/scripts/lib/commit-graph.test.ts:961–977  ·  view source on GitHub ↗
(changes: Change[])

Source from the content-addressed store, hash-verified

959// The set of issue numbers a notes run would comment on (its PR-sourced changes'
960// closing issues, deduplicated), to compare against the finalize path's `issues`.
961function issuesOf(changes: Change[]) {
962 return collectIssues(
963 changes.flatMap(change =>
964 change.source === 'squashedPR'
965 ? [
966 {
967 closingIssuesReferences: {
968 edges: change.closingIssues.map(number => ({
969 node: { number }
970 }))
971 }
972 }
973 ]
974 : []
975 )
976 )
977}
978
979describe('discovery (history scenarios)', () => {
980 it('drafts (notes, HEAD) and finalizes (targets, published tag) the same set', async () => {

Callers 1

Calls 1

collectIssuesFunction · 0.90

Tested by

no test coverage detected