From 7a5ec92b49a6ed16d387b05a7c4c1d786cc2c1e9 Mon Sep 17 00:00:00 2001 From: dkhamsing Date: Sun, 22 Apr 2018 13:48:15 -0700 Subject: [PATCH] [script] support sponsor #568 --- .github/osia_convert.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/osia_convert.rb b/.github/osia_convert.rb index 7cb18790..47724b81 100644 --- a/.github/osia_convert.rb +++ b/.github/osia_convert.rb @@ -213,6 +213,8 @@ def write_list(j, file, appstoreonly = false) cats = j['categories'] apps = j['projects'] + sponsor = j['sponsor'] + output = '# ' + t output << "\n\n" output << desc @@ -220,6 +222,13 @@ def write_list(j, file, appstoreonly = false) if appstoreonly == false output << "\n\n#{subt}\n\n" output << output_badges(apps.count) + + unless sponsor.length == 0 + output << "\n\n" + output << sponsor + output << "\n" + end + end output << "\n\nJump to\n\n"