Add settings module

This commit is contained in:
Théophile Bastian 2018-03-03 01:13:50 +01:00
parent 4c6e1fbdb4
commit c059cb650d
4 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

@ -59,3 +59,4 @@ docs/_build/
target/
venv
settings.py

0
__init__.py Normal file
View file

View file

@ -3,6 +3,7 @@
A webhook-handler for Gogs running `make` when needed. """
from flask import Flask, request
from .settings import HOOKS
app = Flask(__name__)

16
settings.default.py Normal file
View file

@ -0,0 +1,16 @@
''' GogsMaker settings '''
# List of the repositories to work on
HOOKS = [
{
# Name of the repository. This is purely local, and determines the name
# of the directory in which the compilation will happen.
'name': 'foo',
# URL of the repository, as reported by Gogs in its payload.
'url': 'https://git.tobast.fr/tobast/flask-gogs-maker',
# Make targets to be invoked
'targets': ['all'],
},
]