https://github.com/sourceability/reimagined-couscous
https://github.com/sourceability/reimagined-couscous
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sourceability/reimagined-couscous
- Owner: sourceability
- Created: 2023-07-10T12:44:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T17:37:14.000Z (over 2 years ago)
- Last Synced: 2025-01-14T08:10:09.739Z (about 1 year ago)
- Language: Ruby
- Size: 60.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This is a Rails project to receive webhooks from Gitlab MRs and notify people on Slack. After starting the server, visit [localhost:3000] to create a webhook target. Then, in Gitlab, create a webhook to point to the URL provided by the Rails app. The Rails app will then send a message to the Slack channel specified in the webhook target.
Currently, I am using a [Tailscale Funnel](https://tailscale.com/kb/1223/tailscale-funnel/) to route the webhook from Gitlab to my local machine. You can set `RAILS_DEVELOPMENT_HOSTS` to a comma-separated list of hosts to allow webhooks from other hosts.
## Setup
This project is built with Ruby 3.0.1 although it should work with any Ruby 2.7+ version. It uses Rails 7.0.6. To get started developing:
- clone the repo
- run `bundle install` to install the dependencies.
- run `rails db:setup` to create the database and run the migrations
- run `rails s` to start the server
## Useful commands
- `rails s` - start the server
- `rails c` - start the console
- `rails routes` - list the routes