MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / sendArray

Function sendArray

main.js:2138–2164  ·  view source on GitHub ↗
(bot, chatId, array, parseMode, delimiter)

Source from the content-addressed store, hash-verified

2136 return {name: sdkFlavor, abi: abiVariants};
2137 });
2138 builtVariants.forEach((variant) => {
2139 variant.abi.forEach((abiVariant) => {
2140 const files = build.files[variant.name][abiVariant];
2141 changeLog += '\n\n---';
2142 changeLog += '\n\n#### ';
2143 if (variant.name !== 'latest') {
2144 changeLog += variant.name + '-';
2145 }
2146 changeLog += getDisplayVariant(abiVariant) + '\n';
2147 ['sha256', 'sha1', 'md5'].forEach((algorithm) => {
2148 const hash = files.apkFile.checksum[algorithm];
2149 if (hash) {
2150 changeLog += '\n**' + toDisplayAlgorithm(algorithm) + '**: ';
2151 changeLog += '[' + hash + '](https://t.me/tgx_bot?start=' + hash + ')';
2152 }
2153 });
2154 });
2155 });
2156
2157 changeLog += '\n\n</details>';
2158
2159 (async () => {
2160 try {
2161 const githubData = build.git.remoteUrl.replace(/^https?:\/\/github\.com\//gi, '').split('/');
2162 const owner = githubData[0];
2163 const repository = githubData[1];
2164
2165 console.log('Creating GitHub release...', 'owner:', owner, 'repository:', repository, 'remote:', build.git.remoteUrl);
2166
2167 const release = await createGitHubRelease(owner, repository, tagName, versionName, changeLog, true, isPrerelease);

Callers 1

processPrivateCommandFunction · 0.85

Calls 1

globalErrorHandlerFunction · 0.85

Tested by

no test coverage detected