mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 10:41:10 +00:00
refactor(deadcode): enforce repository hard zero (#108641)
This commit is contained in:
committed by
GitHub
parent
cf8cfa8322
commit
bae9752c5a
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user