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.
Release files for gitlab-attendant 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitlab-attendant-0.0.1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitlab_attendant-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / gitlab-attendant-0.0.1.tar.gz
| Download URL | gitlab-attendant-0.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c78db6b1d06678d8db69c6482a09b9fc716087de9646f938f51f814f24efead6
|
|
BLAKE2b-256 checksum How to use checksums |
154c0beb41eac3730cc56e11a9809691353f06f5dd3d22a01d51949d5ff8a256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|
Release files / gitlab_attendant-0.0.1-py3-none-any.whl
| Download URL | gitlab_attendant-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d30d4be169d9487be0b5dd9509ce832770fb75cb635c4168a105694d2df035c
|
|
BLAKE2b-256 checksum How to use checksums |
77711f351d1de1a4bbcd54005c40047172a9328130bb44b53d67d60052aff78b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
|