Compare commits

...

6 Commits
devel ... main

Author SHA1 Message Date
d605920ae2 Merge pull request 'Revert "Only stop importing when it isn't a jengelh repository"' (#35) from adamm/main into main
Reviewed-on: importers/git-importer#35
2025-02-28 21:02:03 +01:00
9fee585897 Revert "Only stop importing when it isn't a jengelh repository"
this breaks detection of scmsync projects. Jan can live with not synced
git for a few weeks

This reverts commit 44b4d690dbc8532125399298d8765d2548c32b6b.
2025-02-28 16:14:58 +01:00
Dirk Müller
44b4d690db
Only stop importing when it isn't a jengelh repository 2024-12-02 09:34:49 +01:00
Dirk Müller
a69e861614
Switch the operating organization on the "pool" 2024-12-02 09:33:52 +01:00
Dirk Müller
1da740bd8b
Strip multibuild flavors from monitoring 2024-09-09 09:34:12 +02:00
Dirk Mueller
b3107ba3bf Merge pull request 'Stop importing/exporting scmsync packages/projects' (#32) from adamm/git-importer:option_for_non_factory into main
Reviewed-on: importers/git-importer#32
Reviewed-by: Dirk Mueller <dirkmueller@noreply@src.opensuse.org>
2024-09-03 12:40:00 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -251,7 +251,7 @@ class Git:
def add_gitea_remote(self, package):
repo_name = package.replace("+", "_")
org_name = "rpm"
org_name = "pool"
if not os.getenv("GITEA_TOKEN"):
logging.warning("Not adding a remote due to missing $GITEA_TOKEN")

View File

@ -36,10 +36,12 @@ def listen_events():
and "package" in body
and body["project"] == "openSUSE:Factory"
):
if "/" in body["package"]:
# Strip multibuild flavors
package = body["package"].partition(':')[0]
if "/" in package:
return
(MY_TASKS_DIR / body["package"]).touch()
(MY_TASKS_DIR / package).touch()
print(" [x] %r:%r" % (method.routing_key, body["package"]))
channel.basic_consume(queue_name, callback, auto_ack=True)