Automates some stuff around Churros' git repositories.
Currently:
- Comments on MRs for Houdini migration progress
- Create a new bot user in your Gitlab instance
- Create a personal access token for the bot user, with the
api
scope - Set the token as the value of an environment variable named
GITLAB_PRIVATE_TOKEN
(for example, indocker-compose.yml
)
docker compose up
This will spin up a webserver on port 3000
that listens for Gitlab merge request webhooks, on /mr
.
You can also run the bot once, for a single MR, by provinding the necessary data as command-line arguments:
docker compose run bot <project id> <merge request number> <project clone url>
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://git.inpt.fr/inp-net/churros-ecosystem/git-bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the ChurrosGitBot project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.