Skip to content
Snippets Groups Projects
Commit 49cedb15 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: filter tags in getRepoTags request

parent b00af302
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ function semverSort(a, b) {
async function getRepoTags(repo) {
try {
const url = `repos/${repo}/git/refs?per_page=100`;
const url = `repos/${repo}/git/refs/tags?per_page=100`;
const res = (await ghGot(url, { paginate: true })).body;
logger.trace({ res });
const tagPrefix = 'refs/tags/';
return res
.filter(o => o.ref.startsWith(tagPrefix))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment