Skip to content

Commit

Permalink
Fix issues (#238)
Browse files Browse the repository at this point in the history
* fixed backup of issues

* add issues to zip
  • Loading branch information
cooperspencer authored Apr 27, 2024
1 parent ff37881 commit c37176f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func Locally(repo types.Repo, l types.Local, dry bool) bool {
tozip := []string{filepath.Join(l.Path, repo.Name)}

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().
Msgf("zipping %s", types.Green(repo.Name))
Expand Down Expand Up @@ -281,6 +281,9 @@ func Locally(repo types.Repo, l types.Local, dry bool) bool {
if l.Zip {
fname = strings.TrimSuffix(file.Name(), ".zip")
}

fname = strings.TrimSuffix(fname, ".issues")

_, err := strconv.ParseInt(fname, 10, 64)
if err != nil {
sub.Warn().
Expand Down

0 comments on commit c37176f

Please sign in to comment.