MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getRelease

Function getRelease

scripts/release-helper.mjs:15–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export async function getRelease() {
16 try {
17 const result = await getOctokit().rest.repos.getReleaseByTag({
18 ...github.context.repo,
19 tag,
20 });
21 console.info('Found release:', tag);
22 return result.data;
23 } catch (err) {
24 if (err.status !== 404) throw err;
25 }
26}
27
28function listCommits() {
29 const thisTag = exec('git describe --abbrev=0 --tags');

Callers 2

ensureReleaseFunction · 0.85
hasAssetFunction · 0.85

Calls 1

getOctokitFunction · 0.85

Tested by

no test coverage detected