diff --git a/distgit_bugzilla_sync/default-config-files/configuration.toml b/distgit_bugzilla_sync/default-config-files/configuration.toml index 4c3fb12..b2aa46e 100644 --- a/distgit_bugzilla_sync/default-config-files/configuration.toml +++ b/distgit_bugzilla_sync/default-config-files/configuration.toml @@ -6,6 +6,9 @@ This package has changed maintainer in the Fedora. Reassigning to the new maintainer of this component. """ +# List of accounts that should not be synced to bugzilla +ignorable_accounts = ["packagerbot", "zuul"] + [products] [products.Fedora] namespace = "rpms" diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 3e5d5f6..887e9c2 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -987,6 +987,13 @@ class DistgitBugzillaSync: project["products_poc"] = products_poc project["products_retired"] = products_retired + # Clean up the watchers we never want to sync to bugzilla + # If these users are POC for a project, things will not work, which + # is expected/desired. + for user in (self.config.get("ignorable_accounts") or []): + if user in (project.get("watchers") or []): + project["watchers"].remove(user) + self.pagure_projects[idx] = project @classmethod