Add settings module
This commit is contained in:
parent
4c6e1fbdb4
commit
c059cb650d
4 changed files with 18 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -59,3 +59,4 @@ docs/_build/
|
||||||
target/
|
target/
|
||||||
|
|
||||||
venv
|
venv
|
||||||
|
settings.py
|
||||||
|
|
0
__init__.py
Normal file
0
__init__.py
Normal file
|
@ -3,6 +3,7 @@
|
||||||
A webhook-handler for Gogs running `make` when needed. """
|
A webhook-handler for Gogs running `make` when needed. """
|
||||||
|
|
||||||
from flask import Flask, request
|
from flask import Flask, request
|
||||||
|
from .settings import HOOKS
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
16
settings.default.py
Normal file
16
settings.default.py
Normal 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'],
|
||||||
|
},
|
||||||
|
]
|
Loading…
Reference in a new issue