[gtk-web/split-tags] Split the stable and devel tags
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-web/split-tags] Split the stable and devel tags
- Date: Thu, 5 Mar 2020 12:52:39 +0000 (UTC)
commit 28124e198d50d50c544cc13b35d39f7e1a760fa1
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Mar 5 12:51:14 2020 +0000
Split the stable and devel tags
Use the GitLab API to retrieve the latest stable and development tags,
so that we don't list 3.98 as the latest release.
Fixes: #25
collections/_pages/index.html | 3 ++-
setup.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/collections/_pages/index.html b/collections/_pages/index.html
index 0489a3a..887d0f3 100644
--- a/collections/_pages/index.html
+++ b/collections/_pages/index.html
@@ -106,7 +106,8 @@ news_and_events_list:
</div>
</div>
</div>
- <p class="small text-info">Currently v{{ site.data.api_fetch.tags[0].name }}</p>
+ <p class="small text-info">Latest stable: v{{ site.data.api_fetch.stable_tags[0].name }}</p>
+ <p class="small text-info">Latest devel: v{{ site.data.api_fetch.devel_tags[0].name }}</p>
</div>
</div>
</div>
diff --git a/setup.sh b/setup.sh
index ee13015..8cc706d 100755
--- a/setup.sh
+++ b/setup.sh
@@ -11,7 +11,8 @@ bundle install
echo 'creating directory for storing api results...'
mkdir _data/api_fetch
echo 'getting the api data from the gitlab...'
-curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?order_by=name >
_data/api_fetch/tags.json
+curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?search=^3.24 >
_data/api_fetch/stable_tags.json
+curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?search=^3.9 >
_data/api_fetch/devel_tags.json
echo 'successfully fetched gtk-release-tags'
curl -o- https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.gtk.org%2Ffeed%2F >
_data/api_fetch/gtk-blog-feed.json
echo 'successfully fetched the gtk blog feed in json format'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]