(changes: Change[])
| 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`. |
| 961 | function 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 | |
| 979 | describe('discovery (history scenarios)', () => { |
| 980 | it('drafts (notes, HEAD) and finalizes (targets, published tag) the same set', async () => { |
no test coverage detected