A GitLab bot that tidies and attends to repositories
Project description
GitLab Attendant
Description
The GitLab Attendant is a bot that will tidy and attend to repositories on a specified GitLab installation at a scheduled basis. Currently the bot is capable of removing merged branches, assigning project members to open issues, assigning project members to open merge requests, notifying issue assignees of due or overdue issues, and notifying assignees of stale merge requests.
In order to use the GitLab Attendant fully, you should create a new account within the specified GitLab installation with privileges that will allow the bot to read and write any changes necessary to branches, merge requests, issues, etc. The personal access token for this account should then be entered in the token
paramter when calling the bot from the command line.
Python 3.6 or Python 3.7 are required to run this utility.
Installation
This utility can be installed through pip by running the following command:
pip install gitlab-attendant
Usage
gitlab-attendant --ip localhost --interval 7 --token TOKEN
Options:
--ip The IP address of the GitLab installation.
--interval task scheduler interval in hours (ex. 1, 10) [default: 24]
--token GitLab personal access token.
This will run the GitLab Attendant process, which will begin attending to the specified GitLab installation at the first interval specified.
Tests
Tests for this project utilise the Pytest framework. To run the existing suite of unit tests run the following command within the root directory:
pytest
Notes
All Python code has been formatted by Black, 'the uncompromising Python code formatter'.
Type checking has been provided by Pyre.
Continuous integration is handled by Travis CI.
License
See LICENSE.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gitlab_attendant-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d30d4be169d9487be0b5dd9509ce832770fb75cb635c4168a105694d2df035c |
|
MD5 | 0724221ff2efa929116a72db59b90729 |
|
BLAKE2b-256 | 77711f351d1de1a4bbcd54005c40047172a9328130bb44b53d67d60052aff78b |