repository

BlowfishCMS

A small content management system for OpenBSD

version 0.45.6 · ISC · 2026-12-03 · releases

61 lines · 3.1 KB · view the source · download this file

GitHub projects

A block that lists the public repositories of one GitHub user, with search, filters (language, original or fork, archived) and sorting. The list is fetched from GitHub every hour.

Version1.2.0
NeedsBlowfishCMS 0.35.0 or newer; a GitHub account with public repositories
Connects toapi.github.com (no account or token needed)
Runs asthe admin service (settings and the hourly sync) and the public service (the block)
Keepsthe GitHub user and the fetched list, in the catalogue

Switching it on

In the admin, open Site → Add-ons, upload its archive (github-VERSION.tar.gz) under available if GitHub projects isn't listed yet, then press install beside it. It's switched on as soon as it's installed.

Setting it up

  1. Open Site → Add-ons → GitHub projects (the tab beside Add-ons, or open on its row).
  2. GitHub user: the name in your profile's address, github.com/NAME. Press save. The repositories are fetched straight away.
  3. Switching it on makes its own page, Projects at /projects/, with the GitHub projects block. It starts off: turn it on under Address, menu & on/off on its Page tab. A site that already showed the block on a page keeps that page as its own. The block can also go on any other page; its only field is the panel title.

Day to day

Nothing. The list is fetched every hour. To see a change at once (a new repository, an edited description), press sync now on its tab.

Only public repositories that the user owns are shown. Private ones, and repositories of organisations the user belongs to, never are.

Troubleshooting

What you seeCause and fix
"The repositories appear here after the first sync from GitHub."No sync has worked yet. Check the GitHub user on its tab and press sync now.
"GitHub has no user called NAME."The user name is misspelt, or the account was renamed. Correct it on its tab.
"GitHub answered 403 …"GitHub is limiting requests from your server's address (60 an hour without a token). The hourly sync uses one or two; wait an hour.
"GitHub answered 500 …", or another numberGitHub had a problem. The list shown is kept as it was; the next hourly sync tries again.
"GitHub's answer couldn't be read"Something between your server and GitHub changed the answer. The list shown is kept; try again later.
"A sync is already running."One started in the last five minutes. Wait a minute and try again.
"That isn't a GitHub user name." / "letters, numbers and single hyphens"GitHub user names are up to 39 letters, digits and single hyphens, not starting or ending with one.
The GitHub projects tab says the last attempt failedIt shows GitHub's reason; see the rows above. The hourly log is /var/log/blowfishcms-hourly.log.

Limits

  • One GitHub user per site.
  • No organisation repositories, and no private ones.
  • No GitHub token, so GitHub's limit of 60 requests an hour from your server's address applies (a user with more than 100 repositories needs one request per 100).