grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Split the version field into AffectedVersion and FixVersion while having trac and bitbucket use AffectedVersion. Also put the trac milestone into the Fix Version.
draft
2020-08-11, Gary Kramlich
faf8f5a4120f
Split the version field into AffectedVersion and FixVersion while having trac and bitbucket use AffectedVersion. Also put the trac milestone into the Fix Version.
package
trac
import
(
"database/sql"
"time"
)
func
convertTime
(
t
int64
)
time
.
Time
{
secs
:=
t
/
1000000
mils
:=
t
%
1000000
return
time
.
Unix
(
secs
,
mils
)
}
func
convertString
(
s
sql
.
NullString
)
string
{
if
s
.
Valid
{
return
s
.
String
}
return
""
}