1
1
mirror of https://github.com/cooperspencer/gickup synced 2024-10-18 07:38:08 +02:00

add issues to zip

This commit is contained in:
Andreas Wachter 2024-04-27 16:16:04 +02:00
parent b2ee8dd0f3
commit 27673260b6

@ -248,7 +248,7 @@ func Locally(repo types.Repo, l types.Local, dry bool) bool {
tozip := []string{filepath.Join(l.Path, repo.Name)} tozip := []string{filepath.Join(l.Path, repo.Name)}
if len(repo.Issues) > 0 { if len(repo.Issues) > 0 {
tozip = append(tozip, fmt.Sprintf("%s.issues", repo.Name)) tozip = append(tozip, filepath.Join(l.Path, fmt.Sprintf("%s.issues", repo.Name)))
} }
sub.Info(). sub.Info().
Msgf("zipping %s", types.Green(repo.Name)) Msgf("zipping %s", types.Green(repo.Name))
@ -281,6 +281,9 @@ func Locally(repo types.Repo, l types.Local, dry bool) bool {
if l.Zip { if l.Zip {
fname = strings.TrimSuffix(file.Name(), ".zip") fname = strings.TrimSuffix(file.Name(), ".zip")
} }
fname = strings.TrimSuffix(fname, ".issues")
_, err := strconv.ParseInt(fname, 10, 64) _, err := strconv.ParseInt(fname, 10, 64)
if err != nil { if err != nil {
sub.Warn(). sub.Warn().