From 49cedb15d84101a35b5d96d0b84a9c1ea11d3527 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 22 Feb 2018 08:21:27 +0100
Subject: [PATCH] fix: filter tags in getRepoTags request

---
 lib/datasource/github.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/datasource/github.js b/lib/datasource/github.js
index f42aab2a33..e0cfedde89 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))
-- 
GitLab