sourcehut-go is a set of Go libraries and command line utilities for interacting with SourceHut via the API.
Note: this is a work in progress.
sourcehut-go looks for a configuration file at
the XDG basedir-appropriate location). The simplest configuration is:
You can generate a personal access token in your meta.sr.ht OAuth settings. The file can also be used to specify which upstream instance of sr.ht you want to talk to for each service:
personal-access-token=... [meta.sr.ht] origin=https://meta.sr.ht [git.sr.ht] origin=https://git.example.org
If you just use the canonical sr.ht instance for everything, then you don't need to configure this.