A tool for automatic issue assigning of GitHub issues
Install package ghia-tumapav3
using pip (test PyPi).
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple ghia-tumapav3
Use ghia
command to run the cli script. To view help, use ghia --help
.
More information at: https://github.com/cvut/ghia/tree/basic
Export these environment variables and run the Flask web server:
export FLASK_APP=ghia
export GHIA_CONFIG=config.cfg
flask run
Where config.cfg
is a GHIA configuration file. Example is bellow or visit link at the bottom for the full specs.
[github]
token=###
secret=###
[patterns]
tester=
title:network
text:network
text:protocol
text:http[s]{0,1}://localhost:[0-9]{2,5}
label:^(network|networking)$
[fallback]
label=X-Need assignment
More information at: https://github.com/cvut/ghia/tree/web
Run tests with setup.py test
or python -m pytest -v tests/unit/
.
- Remove all files in
tests/unit/fixtures/cassettes
- Create a test repository using
tests_environment/setup.sh
- Define the following environment variables:
GITHUB_TOKEN
- GitHub access tokenGITHUB_REPO
- full name of the test repository (e.g. mi-pyt-ghia/tumapav)GITHUB_USER
- GitHub username the token belongs to
- Run the tests
python -m pytest -v tests/unit/