Commit Graph

94 Commits

Author SHA1 Message Date
Krytarik Raido 339abdecfa Bugtracker: Update GitLab tracker. 2020-01-07 00:04:04 +01:00
Krytarik Raido 0459d38132 Bugtracker: Fix error handling. 2019-07-12 00:56:04 +02:00
Krytarik Raido 182cc59009 Bugtracker: Various improvements.
* Add option to set aliases on trackers.
* Complete removal and renaming of trackers.
* Only load default trackers if none set yet.
* Improve handling of auto-discovered trackers.
* Add function to reset trackers to defaults.
* Minor fix to Encyclopedia along the way.
2019-07-08 02:45:04 +02:00
Krytarik Raido aec19ef265 Various: Work around msg.args in inFilter() potentially being empty...
...in Limnoria running on Python 3

* Bugtracker
* Encyclopedia
* PackageInfo
2019-05-31 06:50:04 +02:00
Krytarik Raido 0bbbf8b700 Bugtracker: Make handling of Trac more strict. 2018-07-15 01:04:04 +02:00
Krytarik Raido d72081d106 Various: Work around msg.prefix in inFilter() potentially being empty...
...in Limnoria running on Python 3, particularly on startup.

* Bugtracker
* Encyclopedia
* PackageInfo
2018-05-22 00:45:04 +02:00
Krytarik Raido b7e49d1510 Bugtracker: Make SOAP trackers work on Python 3 too.
* Debian, and Mantis.
2018-05-22 00:45:04 +02:00
Krytarik Raido 29fffb3795 Bugtracker: Update Mantis tracker.
* Add JSON.
* Deprecate SOAP.
2018-05-22 00:45:04 +02:00
Krytarik Raido 4a9fd482b7 Bugtracker: Add GitLab and Gitea as trackers. 2018-05-16 23:45:04 +02:00
Krytarik Raido 681895bfc7 Bugtracker: Drop loop off report handling. 2018-05-16 23:45:04 +02:00
Krytarik Raido 11b6996639 Bugtracker: Update trackers.
* Add Bugzilla JSON, SourceForge, GitHub.
* Make Mantis and Trac getable.
* Deprecate Bugzilla XML.
2018-05-16 23:45:04 +02:00
Krytarik Raido 1e4fc7f3d0 Bugtracker: General overhaul.
* Improve regex matching.
* Improve CVE and OOPS handling.
* Fix various minor things.
* Drop outdated and unused code.
2018-05-16 23:45:04 +02:00
Krytarik Raido 9ab4725d49 Bugtracker: Various improvements in output.
* Make sure output fits maximum length of IRC messages.
* Improve general formatting of output, including casing.
* Strip any leading or trailing spaces off bug report title.
* Improve handling of duplicates, assignee, and extended info.
2018-05-16 23:45:04 +02:00
Krytarik Raido 45ae48b53a Bugtracker: Add Python 3 support (by Mattia Rizzolo) 2018-05-16 23:45:04 +02:00
Terence Simpson a3fb9093ad Bugtracker:
* Update CVE regex to match the new CVE format:
   http://www.cve.mitre.org/cve/identifiers/syntaxchange.html
2014-08-12 17:47:38 +01:00
tsimpson 6c4be15c09 If snarfing a bug number, only include the bug tracker description (name) when a tracker is explicitly specified 2012-12-18 04:17:05 +00:00
tsimpson 80125ddde0 Fix Launchpad OPPS URL (again) 2012-09-28 09:56:08 +01:00
tsimpson 778ee4a23c Bots should not respond (incorrectly) to merge request URLs (LP: #868416) 2012-09-27 13:53:50 +01:00
tsimpson b038dca49c Bugtracker: Fix bugSnarfer regex to (finally) detect "tracker: #number" format
PackageInfo: Force apt-file to i386 architecture, as update_apt_file only grabs that anyway
2012-09-27 13:16:42 +01:00
Martin Packman 0a76edf58b Use new oops.canonical.com site when giving oops links 2012-09-17 11:53:01 +01:00
tsimpson fbb7a7ae67 Fix Bugzilla/Issuezilla URLs (LP: #1019861)
As far as I can tell, IssueZilla and Bugzilla are API compatible (note)
2012-07-04 14:21:37 +01:00
tsimpson f0d7e799d1 Merge ubottu Bugtracker with bzr.
Treat the Architecture key from apt-cache as a list, rather than a single string.
2012-04-10 14:05:29 +01:00
Terence Simpson 53451ef83f Handle Launchpad duplicates better 2011-08-26 07:32:15 +01:00
Terence Simpson af3c308926 Add IBugtracker::__str__() so error reporting is prettier 2011-06-17 19:21:04 +01:00
Terence Simpson fd36bffcc0 (large commit, see bazaar log)
[Bantracker]
 * Less spaces in README.txt
 * Remove mention of table 'users' in README.txt
 * Add more detail on how to create the bans database in README.txt
 * Add note about supybot-wizard creating the initial database in README.txt
 * Don't hard-code default values in config.py:configure()
 * Tweak config.py
 * Clean up bans.cgi a bit

[Bugtracker]
 * Comment-out obsolete "bug reporting" variables in config.py
 * Update README.txt and remove "bug reporting" stuff, also remove extraneous license info
 * Comment-out obsolete "bug reporting" code
 * Don't import imaplib

[Encyclopedia]
 * Don't hard-code default values in config.py:configure()
 * Check for 'owner' capability before checking if the hostmask is ignored in plugin.py:checkIgnored()
 * Clean up README.txt

[PackageInfo]
 * Don't hard-code default values in config.py:configure()
 * Update default distributions in config.py:configure()
 * Update defaultRelease in config.py 
 * Update README.txt

* Add a few docstrings to commoncgi.py
* Update COPYING
* Update README.txt
2011-05-28 07:33:21 +01:00
Terence Simpson 23b38f5352 Strengthen flood protection
Remove duplicate bugs numbers before processing them
IBugtracker is now comparable by URLs, rather than by instance ID. This allows better flood protection
Check for repeats in is_ok() before calling the tracker plugin, we don't want to flood the tracker
2011-04-04 08:03:22 +01:00
Terence Simpson 5758a266a0 pad.lv actually works now 2011-03-29 20:40:53 +01:00
Terence Simpson 2ee7815190 Add support for pad.lv
Filter out unlikely bug numbers for the "ubuntu" tracker
Try to be a bit smarter about which launchpad.net URLs are bug URL
2011-03-29 20:12:08 +01:00
Terence Simpson 928fc13794 Make sure Bantracker/Launchpad raises a BugNotFoundError 2011-03-17 20:56:42 +00:00
Terence Simpson 8bd3a656d5 Parse pad.lv bug URLs for Launchpad (lp: #736378) 2011-03-17 01:16:58 +00:00
Terence Simpson 6511b98454 In all that, I made 1 typo, and only a missing comma at that. 2011-03-12 17:43:35 +00:00
Terence Simpson 0ded75a6ae Update Launchpad statuses and move to class instances
Disable sf.net in the right place 
_sort() in get_bug_new() moved to a class method
instance method _sort() moved to class method _old_sort()
improve _sort (prefiously under get_bug_new) error handling
Added tag "#Depricated" by depricated class Launchpad methods
class Launchpad uses the "production" service alias
Log an exception in Launchpad.__init__ when accessing the API fails
Removed some commented-out code
Added 'ubottu' to the list of trackers (as an alias for LP)
2011-03-12 17:35:09 +00:00
Terence Simpson dd3c9627e7 Don't wrap Bugtracker.turlSnarfer in supybot.commands.urlSnarfer, messing with threads is unpleasant 2011-03-08 00:07:02 +00:00
Terence Simpson d1c7effab2 * Enable repeat protection for CVEs and limit message length (LP: #719981)
* Enable repeat protection for LP OOPS
* Make CVE and LP OOPS snarfing channel configurable
 * bugSnarfer disabled all when False
 * add cveSnarfer to disable CVEs specifically when bugSnarfer is True
 * add oopsSnarfer to disable LP OOPS specifically when bugSnarfer is True
2011-02-16 14:45:27 +00:00
Terence Simpson 68294158c7 Merge some other changes from ubottu (Re: sourceforge broken) 2011-02-14 20:57:02 +00:00
Terence Simpson 179ef4b71d Don't blow-up on private bugs from the Launchpad API 2011-02-14 20:54:19 +00:00
Terence Simpson a72b623bc9 Bugtracker: Don't use EDGE_SERVICE_ROOT from launchpadlib, instead import LPNET_SERVICE_ROOT and use that 2011-01-13 01:17:43 +00:00
Terence Simpson 62ade6d270 s/Won't fix/Won't Fix/g 2010-06-19 06:46:23 +01:00
Terence Simpson c458d9aa4a Merge lp:~arvindsraj/ubuntu-bots/typo-corrected
Fix "depricated" -> "deprecated"
2010-06-02 18:17:26 +01:00
Arvind S Raj 8d1c3151b8 Typo in bugtracker corrected 2010-06-02 19:39:45 +05:30
Terence Simpson 55ca23f755 Make configure() do something for all plugins, also fix a couple of things from r197-203 2010-05-29 14:36:43 +01:00
Terence Simpson f3de8f84a6 Make a custom anything() function that follows the same form as every other function in supybot.questions, because apparently no one thought this was a good idea... 2010-05-28 23:51:28 +01:00
Terence Simpson ad7a493262 Update copyright/license/author/contributors information
Make sure all files have encoding set to utf-8 unless they already have an encoding
Added COPYING with contense of GPL-2
Added plugin name prefix to all log output. This should take the form of self.log.severity("Plugin: message"),
when not logging from plugin.py use: "Plugin/file_without_dot_py: message"
Bantracker: Made the confgure() function do something, it also creates an initial database if it doesn't exist
Encyclopedia: Made the configure() function do something, it also creates an initial database if it doesn't exist
PackageInfo: Improve the configure() function, it also now creates some initial .list files and prompts to run update_apt and update_apt_file
This goes some way to getting an "ubottu" package together, all we need to do is patch supybot-wizard to download the plugins
from bzr and put them somewhere supybot will see them, then the wizard will do all the initial setup
2010-05-24 14:38:06 +01:00
Terence Simpson c002447554 Remove duplicate code in class Launchpad 2010-05-19 14:58:22 +01:00
Terence Simpson 5fa8e3992b typos ftw 2010-05-19 14:56:46 +01:00
Terence Simpson 842d9857d3 Add option to show optional "extended" bug information 2010-05-19 14:55:10 +01:00
Terence Simpson df10ce98f8 Make Bugtracker use the Launchpad API if launchpadlib is installed.
Support for the old (/+text) method will be dropped in the future.
2010-04-20 11:33:26 +01:00
Terence Simpson 0d9101daab change bugSnarfer() regexp to allow for trailing ':' in tracker names,
this allows the bot to snarf bugs in a changelog format. Eg: (tracker: #nnnnn)
2010-04-08 17:51:29 +01:00
Terence Simpson ecefe1de50 Fix++ 2009-12-03 23:18:07 +00:00
Terence Simpson af957954a1 Tweak regex for bugSnarfer in Bugtracker (LP: #148777) 2009-11-30 19:04:54 +00:00