hottub

command module
v0.0.0-...-4e83e9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: AGPL-3.0 Imports: 30 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

hottub

A CI bridge from GitHub to SourceHut.

A public instance is available.

Building

go build

Installation

  1. Follow the GitHub guide to register an app suitable for the Checks API:

    • Open the Register a new app page
    • Set a name and homepage URL
    • Leave the callback URL empty
    • Set the setup URL to https://<domain>/post-install
    • Set the webhook URL to https://<domain>/webhook
    • In Repository permissions, select:
      • Checks: Read and write
      • Commit statuses: Read and write
      • Contents: Read-only
      • Metadata: Read-only
      • Pull requests: Read-only
    • In Subscribe to events, check:
      • Check run
      • Check suite
      • Pull request
  2. Grab the GitHub app ID and webhook secret (optional for local development). Download a new PEM private key.

  3. Start hottub:

    hottub -gh-app-id <id> -gh-private-key <path> -gh-webhook-secret <secret>
    

Optionally, to improve the authorization flow, you can register an sr.ht OAuth2 client (setting the Redirection URI to https://<domain>/authorize-srht) and pass its credentials with -metasrht-client-id and -metasrht-client-secret.

License

AGPLv3, see LICENSE.

Copyright (C) 2022 Simon Ser

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL