From 8dbd6a2101bc76f60d8db5c6e1f844b77f6b954a Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sat, 11 Nov 2023 08:12:45 +1000 Subject: [PATCH] prefix scheduler names with `project.id` --- buildbot_nix/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index d4ffe35..2293d64 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -599,7 +599,7 @@ def config_for_project( config["schedulers"].extend( [ schedulers.SingleBranchScheduler( - name=f"default-branch-{project.id}", + name=f"{project.id}-default-branch", change_filter=util.ChangeFilter( repository=project.url, filter_fn=lambda c: c.branch @@ -610,7 +610,7 @@ def config_for_project( ), # this is compatible with bors or github's merge queue schedulers.SingleBranchScheduler( - name=f"merge-queue-{project.id}", + name=f"{project.id}-merge-queue", change_filter=util.ChangeFilter( repository=project.url, branch_re="(gh-readonly-queue/.*|staging|trying)", @@ -619,7 +619,7 @@ def config_for_project( ), # build all pull requests schedulers.SingleBranchScheduler( - name=f"prs-{project.id}", + name=f"{project.id}-prs", change_filter=util.ChangeFilter( repository=project.url, category="pull" ),