karsten / pagure-dist-git

Forked from pagure-dist-git 4 years ago
Clone

8f7bef7 Add bugzillla override functions and tests

Authored and Committed by karsten 4 years ago
    Add bugzillla override functions and tests
    
    This allows repo admins and pagure admins to set overrides for the
    default bugzilla assignees for Fedora and for EPEL.
    This information used to be in
    https://pagure.io/releng/fedora-scm-requests
    and will be migrated to dist-git.
    
    Adds endpoints to the dist-git plugin:
    - /bzoverrides/<namespace>/<repo>    (GET)
    returns
    {
    "epel_assignee": "karsten",
    "fedora_assignee": "  karsten"
    }
    
    - /bzoverrides/<namespace>/<repo>    (POST)
    sending a POST request with a correct token and data
    {
    "epel_assignee": "someuser",
    "fedora_assignee": "  karsten"
    }
    will set the default EPEL bugzilla assignee to 'someuser'.
    An empty user string will reset the assignee to the repo admin.
    
    Signed-off-by: Karsten Hopp <karsten@redhat.com>
    
        
file modified
+3 -2
file modified
+2 -2
file modified
+15 -0
file modified
+36 -0
file modified
+72 -0