This only applies to the numbering used in git.
The simplest way seems to be a command, which extracts the biggest ticket from the git history.
Ok, the actual simplest way seems to be to just use a prefix for each ticket system. i.e. #g1 for the first Github issue and #s1 for the first sourcehut issue.
I document this in the changelog description located in the beginning.