git

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package git implements a plugin to view and watch git commits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(b bot.Bot, repos map[string]string)

Register registers the plugin with a bot. It shows the last last commit of a repo identified by its short name. Repos is a map of short name to URL to a cgit log page such as https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/

func Watch

func Watch(b bot.Bot, repo string, duration time.Duration)

Watch registers a watcher of git repo commit log with a bot. Repo is a URL to a cgit log page such as https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/

Types

This section is empty.

Jump to

Keyboard shortcuts

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