| title | GitLab Issue Bot |
|---|---|
| emoji | 🤖 |
| colorFrom | red |
| colorTo | yellow |
| sdk | docker |
| python_version | 3.13 |
| app_file | issue_bot.py |
| pinned | false |
Use uv. uv sync to synchronize the environment.
Update .env file according to .env.example file.
The script will invite users to a group
write uids to uid.csv file as follows:
uid
...
...python gitlab-invite.pyYou can also specify GITLAB_URL, the URL of self-hosted gitlab instance, and GITLAB_GROUP, the group name in environment variables or .env file.
The bot will comment when mentioned in gitlab comment. Besides, it will search issues based on keywords summarized from title, description and the comment mentioning it.
- use
python issue_bot.pyto start the server, listening at127.0.0.1:7860. - use
ngrokornatappto expose the local server to the internet. - add webhook in
Settings > Webhooks > Add new webhook:- fill
URLplaceholder withhttp://<url>/gitlab_webhook. - select
CommentsandIssue eventsTriggers. - click the
Add webhookbutton.
- fill
- click the
Testbutton and send testingIssue eventsorCommentsto the bot server. If it works correctly, the bot will print some information and you will see200, okin gitlab.
A space with empty dockerfile template is needed. Dockerfile will be used to set up the space environment and start the server.
If the server starts without errors, use https://<username>-<spacename>.hf.space/gitlab_webhook as the webhook url.