| |
@@ -184,6 +184,10 @@
|
| |
|
| |
|
| |
def sync_discussions(args):
|
| |
+ if app.config["PAGURE_REPO_TOKEN"] in ("YOUR SECRET API TOKEN FROM PROJECT SETTINGS", ""):
|
| |
+ # skip this if the API token is set to the placeholder value
|
| |
+ # or empty string as we are not going to be able to create anything
|
| |
+ return
|
| |
active_milestones = Milestone.query.filter_by(active=True).all()
|
| |
|
| |
for milestone in active_milestones:
|
| |
It's not going to work, and trying will just waste a bunch of
time and network resources.
Signed-off-by: Adam Williamson awilliam@redhat.com