ghbot

command module
v0.0.0-...-8999b7b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: ISC Imports: 19 Imported by: 0

README

ghbot

Github bot, primarily for the collectd project.

About

ghbot is a bot to automate tasks on Github, primarily to react to issues and pull requests.

Setup

  1. Create a Personal access token for the Github user you want the bot to act as. To do so, go to Your profile → Settings → Developer settings → Personal access tokens. This is the access token for step 3.

  2. Create a webhook under Your repository → Settings → Webhooks. Provide a shared secret with which the webhook will sign its request. For example:

    dd if=/dev/random bs=64 count=1 status=none | sha256sum
    

    This is the secret key for step 3.

  3. Create a Datastore Entity with the access token and secret key:

    • Kind: credentials
    • Key identifier: singleton (string)
    • Properties
      • AccessToken: access token (string)
      • SecretKey: secret key (string)
  4. Deploy to App Engine:

    gcloud app deploy --version="v$(date +%s)"
    

License

ISC License

Author

Florian Forster

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
actions
changelog
Package changelog ensures that a pull request contians changelog information.
Package changelog ensures that a pull request contians changelog information.
labels
Package changelog ensures that a pull request contians changelog information.
Package changelog ensures that a pull request contians changelog information.
milestone
Package milestone sets the milestone of a PR based on the base branch.
Package milestone sets the milestone of a PR based on the base branch.
Package config provides access to run-time configuration.
Package config provides access to run-time configuration.

Jump to

Keyboard shortcuts

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