Forgejo seems to automatically choose a light font color for mermaid
graphs when the site-theme is dark. This conflicts with the background
colors of our mermaid nodes. Explicitly force a dark font color to
ensure the text is also readable on dark Forgejo.
Forgejo has a limit of 5000 characters per mermaid graph. We started
hitting this for some issues. Regenerate a somewhat simplified version
of the subtree in this case which hopefully does not hit the same limit
again.
Forgejo seems to limit requests to 50 issues server side, regardless of
the limit we send in our request. This means we have to fetch each page
separately regardless.
Don't use the open/close state of the issues to mark their completion.
This has friction with dependencies, because you can only add
dependencies on open issues.
Instead, issues are marked as completed using a "Completed" label now.
When the job for the new issue is scheduled later than another manager
run, we create a second comment due to the previously unconditional
comment creating. Always look for an existing comment first.
The techtree manager is a CI tool that derives the techtree graph from
the forgejo issues in this repository. It then adds graph
visualizations to each issue and the wiki, to give an overview of the
tree.