Skip to content

Small little service that lets you stalk other people on Github.

Notifications You must be signed in to change notification settings

IronicUsername/GitGetter

Repository files navigation

GitGetter

small little service that lets you stalk other people on GitHub.

environment parameters

  • GG_GITHUB_TOKEN: your GitHub token. if you run GitGetter with it, you have more calls to the API. you can get the token here.
  • GG_SERVICE_PORT: the port on which the service is callable. by default the port is set to 5000.
  • GG_SERVICE_DEBUG: debug mode is by default True. pass False in this environment variable to change it.

install & run

download it:

git clone https://github.com/IronicUsername/GitGetter.git

and run it:

docker-compose up --force-recreate --build -d

development

in order to develop on GitGetter you need to have poetry installed. after you have done that, install all dependencies

poetry install

and access the virtual environment

poetry shell

local testing

lint the code with

flake8 . && mypy src/ && pydocstyle src/

and test it with

pytest -n 4 -x # -n for 4 parallel jobs & -x to stop on the first encountered error

endpoints

GET /active/IronicUsername
parameter type description
user string required. the username of the person you stalking.

response

if the user has pushed code within the last 24h it's set to true, else false.

{
    "was_active": bool
}

GET /downwards/IronicUsername/GitGetter
parameter type description
user string required. the username of the person you stalking.
repo string required. the GitHub repository in question.

response

if more code got deleted from a specific user repo than added, it's set to true, else false.

{
    "downwards": bool
}

GET /downwards1/GitGetter
parameter type description
repo string required. the GitHub repository in question.

response

if more code got deleted from a user repo than added, it's set to true, else false.

{
    "downwards": bool
}

About

Small little service that lets you stalk other people on Github.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published