Add pagure_fas_groups_sync toddler
This toddler is syncing configured groups between FAS and pagure.io. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
cc277eaaf8
commit
f615451f0c
7 changed files with 1026 additions and 2 deletions
18
docs/pagure_fas_groups_sync.md
Normal file
18
docs/pagure_fas_groups_sync.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Sync Groups From FAS to Pagure
|
||||
|
||||
Toddler for synchronizing FAS groups with Pagure groups was created from https://pagure.io/pagure-utility/blob/master/f/sync_fas_group_membership.py script. It is triggered either by group membership messages or by `toddlers.trigger` message.
|
||||
|
||||
In case of group membership message it works as following:
|
||||
|
||||
1. Check if we care about the group (it's in configuration for toddler)
|
||||
1. Add member from group (currently there is no message about user being removed from group)
|
||||
|
||||
In case of `toddlers.trigger` message it compares all the groups in configuration
|
||||
and remove/add users to pagure group based on the changes in FAS.
|
||||
|
||||
## Accepted topics
|
||||
|
||||
The sync toddler accepts following topics.
|
||||
|
||||
* org.fedoraproject.*.fas.group.member.sponsor - New member added to group
|
||||
* org.fedoraproject.*.toddlers.trigger.pagure_fas_groups_sync - Message triggered by toddlers cron
|
Loading…
Add table
Add a link
Reference in a new issue