Add the possibility to ignore some users
These users, who should only ever be CC'ed to a project, will not be synced to bugzilla. In other words, they are allowed to not have a bugzilla account and that should not impact the syncing of the default assignee and CC list from dist-git to bugzilla. Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
392627ecab
commit
3f1611f6c3
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue