On Tue, Nov 14, 2017 at 5:40 PM, Dan Book <gri...@gmail.com> wrote:
> I also prefer github but of course it's mainly up to what is easiest for the
> maintainers. Here is a script for migrating tickets if it's not what you
> already tried: https://metacpan.org/pod/RTx::ToGitHub

Actually, that is the script I used when I tried the last time around
which did not work for me, I even send back a pull request for an
installation issue I encountered.
(https://github.com/houseabsolute/RTx-ToGitHub/pull/3)

This time I used dagoldens script:
https://github.com/dagolden/zzz-rt-to-github - it mostly worked but
there were some comments created by users who logged in on RT using
OpenID and where the user field started with 'http' and on which the
RT API seemed to choke. This was the dirty patch I used:

diff --git a/rt-to-github.pl b/rt-to-github.pl
index c6d20c8..06dca7e 100755
--- a/rt-to-github.pl
+++ b/rt-to-github.pl
@@ -63,6 +63,10 @@ sub _dist_name {

 sub _find_from {
     my ( $xact ) = @_;
+    if ($xact->creator =~ /^http/) {
+        # this is because the creator used OpenID
+        return sprintf("From %s on %s", lc( $xact->creator), $xact->creat
ed);
+    }

So as of today, *the* bug tracker for DBD::mysql is on Github at
https://github.com/perl5-dbi/DBD-mysql/issues and we no longer use RT!

--
Michiel

Reply via email to