maint(resources): DRY out PRInformation interface

Test-bot: skip
Build-bot: skip
This commit is contained in:
Marc Durdin 2026-06-29 15:56:31 +02:00
parent 58a565be21
commit 724249263c
2 changed files with 2 additions and 6 deletions

View file

@ -7,13 +7,9 @@ type GitHub = ReturnType<typeof getOctokit>;
import { readFileSync, writeFileSync } from 'node:fs';
import { gt } from 'semver';
import { reportHistory } from './reportHistory.js';
import { reportHistory, PRInformation } from './reportHistory.js';
import { spawnChild } from './util/spawnAwait.js';
interface PRInformation {
title: string;
number: number;
}
// ------------------------------------------------------------------------------------
// splitPullsIntoHistory

View file

@ -33,7 +33,7 @@ const getPullRequestInformation = async (
return commit_id;
};
interface PRInformation {
export interface PRInformation {
title: string;
number: number;
version?: string;