https://github.com/fleaz/go-gitlab-irc
IRC Bot for Gitlab
https://github.com/fleaz/go-gitlab-irc
hacktoberfest
Last synced: 10 months ago
JSON representation
IRC Bot for Gitlab
- Host: GitHub
- URL: https://github.com/fleaz/go-gitlab-irc
- Owner: fleaz
- Created: 2017-07-14T15:19:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-30T22:37:02.000Z (almost 8 years ago)
- Last Synced: 2025-03-11T21:32:02.847Z (over 1 year ago)
- Topics: hacktoberfest
- Language: Go
- Size: 35.2 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### DEPRECATED!
This project has been included in the more powerfull and modulare rewrite **CptHook** which you can find at [f-breidenstein/CptHook](https://github.com/f-breidenstein/CptHook)
---
# Acknowledgment
Thanks to @andir for the original codebase: https://github.com/andir/go-prom-irc
# go-gitlab-irc
Implements GitLab API and pipe output into the configured IRC channels.
# Set-Up
## Installation
`go get github.com/f-breidenstein/go-gitlab-irc`
`go-gitlab-irc -host irc.hackint.org -sslport 6697 -nickname my-go-gitlab-irc-bot -cafile hackint-rootca.crt -channelmapping channelmapping.yml`
## Configuration
### Gitlab Webhook
By default, the bot will listen on localhost at port 8084. Use the following URL
to add it to your webhooks in gitlab: `http://127.0.0.1:8084/notify`
### Script Options
```
Usage of ./go-rom-irc:
-cafile string
Path to the ca file that verifies the server certificate.
-channelmapping string
Path to the channel mapping file that mapps repository names to irc channels.
-gecos string
Realname to assume once connected (default "go-gitlab-irc")
-host string
Hostname of the IRC server (default "irc.hackint.org")
-nickname string
Nickname to assume once connected (default "go-gitlab-irc")
-sslport int
SSL capable port of the IRC server (default 6697)
```
go-gitlab-irc only supports connecting to IRC via SSL so far. Make sure you provide the proper `-cafile` option for your network.