Skip to content

igor-k/hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hook

simple github webhook server.

Installation

go get github.com/igor-k/hook
cd $GOPATH/src/github.com/igor-k/hook
go install

Configuration

configuration is in the following format; you can have multiple repositories.

{
    "igor-k/hook": {
        "master": "/full/path/to/script.sh",
        "dev": "/full/path/to/another/script.sh"
    },
    "igor-k/repo": {
        "master": "/full/path/to/script.sh",
    }
}

or just

{
    "master": "/full/path/to/script.sh",
    "dev": "/full/path/to/another/script.sh"
}

each script gets repo ssh url, branch name, and commit hash as arguments.

Usage

hook --help # to see all available options
hook -config /path/to/config.json # start a server using a provided config file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages