refactor(deadcode): enforce repository hard zero (#108641)

This commit is contained in:
Peter Steinberger
2026-07-15 22:40:00 -07:00
committed by GitHub
parent cf8cfa8322
commit bae9752c5a
187 changed files with 1413 additions and 2284 deletions

View File

@@ -40,14 +40,14 @@ function validateTag(tag) {
}
}
export function githubReleaseBodySize(body) {
function githubReleaseBodySize(body) {
return {
characters: [...body].length,
bytes: Buffer.byteLength(body, "utf8"),
};
}
export function fitsGithubReleaseBody(body) {
function fitsGithubReleaseBody(body) {
const size = githubReleaseBodySize(body);
return (
size.characters <= GITHUB_RELEASE_BODY_MAX_CHARACTERS &&
@@ -185,7 +185,7 @@ export function parseShippedBaselineExclusions(section) {
return baselines;
}
export function tagPinnedContributionRecordUrl(repository, tag) {
function tagPinnedContributionRecordUrl(repository, tag) {
validateRepository(repository);
validateTag(tag);
return `https://github.com/${repository}/blob/${tag}/CHANGELOG.md#complete-contribution-record`;