MCPcopy Create free account
hub / github.com/axios/axios / getLatestTag

Method getLatestTag

bin/GithubAPI.js:109–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108
109 static async getLatestTag() {
110 try{
111 const {stdout} = await exec(`git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1`);
112
113 return stdout.split('/').pop();
114 } catch (e) {}
115 }
116
117 static normalizeTag(tag){
118 return tag ? 'v' + tag.replace(/^v/, '') : '';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected