Hello.
This is python script that utilizes bugzilla API and marks PRs as spam:
$ ./mark_spam.py --help
usage: mark_spam.py [-h] [--verbose] api_key range
Mark Bugzilla issues as spam.
positional arguments:
api_key API key
range Range of IDs, e.g. 10-23,24,25,27
optional arguments:
-h, --help show this help message and exit
--verbose Verbose logging
Sample usage:
$ ./mark_spam.py my_api_key 72634-72636
Marking as spam: PR72634
Marking as spam: PR72635
Marking as spam: PR72636
API key can be set up here:
https://gcc.gnu.org/bugzilla/userprefs.cgi?tab=apikey
Sample PR marked by the script: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72635
Ready to install?
Martin
0001-Add-mark_spam.py-script.patch
From 467dc2cf8f0c549f5d7ee190efe59c841a9acad9 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Tue, 26 Jul 2016 14:34:55 +0200
Subject: [PATCH] Add mark_spam.py script
contrib/ChangeLog:
2016-07-26 Martin Liska <mliska@suse.cz>
* mark_spam.py: New file.