diff --git a/lib/datasource/github.js b/lib/datasource/github.js index f42aab2a3390f2fc02ae4dbed91aa6eaebdc8e4b..e0cfedde89c3d25104905c2156af4718c64ffd4b 100644 --- a/lib/datasource/github.js +++ b/lib/datasource/github.js @@ -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))