🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 3140f07b47a7e7b2fa277f3a05df876f2162f510
Parent: bd79dd81df33fba9853b75a4a00e140475262fd6
Author: mcol <mcol@posteo.net>
Date: 2023-01-22 23:14:35 -0600
Committer: Matt Colligan <mcol@posteo.net>
Committed: 2023-01-23 00:03:01 +0000

remove branches from test templates

This maybe should work in CI because the actions/checkout ensure the
master branch is available (I think), and the template only renders the
count of branches called 'master', but it's failing in CI atm and I
don't care so much.

test/templates/repo/index.html Modified

@@ -10,7 +10,6 @@
 commits: (skipped)
 tree: (skipped)
 tags: {{ length(filter(tags, (t) -> t.name == "0.2.0")) }}
-branches: {{ length(filter(branches, (b) -> b.name == "master")) }}
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/templates/repo/file.html Modified

@@ -23,7 +23,6 @@
 commits: (skipped)
 tree: (skipped)
 tags: {{ length(filter(tags, (t) -> t.name == "0.2.0")) }}
-branches: {{ length(filter(branches, (b) -> b.name == "master")) }}
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/expected/gitja/index.html Modified

@@ -7,6 +7,5 @@
 commits: (skipped)
 tree: (skipped)
 tags: 1
-branches: 1
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitja/file/test.templates.style.css.html Modified

@@ -17,6 +17,5 @@
 commits: (skipped)
 tree: (skipped)
 tags: 1
-branches: 1
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitja/file/test.templates.so_called_binary_file.html Modified

@@ -17,6 +17,5 @@
 commits: (skipped)
 tree: (skipped)
 tags: 1
-branches: 1
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitja/file/github.FUNDING.yml.html Modified

@@ -18,6 +18,5 @@
 commits: (skipped)
 tree: (skipped)
 tags: 1
-branches: 1
 readme.path: README.rst
 license.path: LICENSE