Skip to content

Commit

Permalink
fix: inverted renamed list
Browse files Browse the repository at this point in the history
  • Loading branch information
Beatriz Vieira committed Dec 9, 2018
1 parent 3d4dc40 commit 04d2ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlabels/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ func (s Service) renameLabels(ctx context.Context, user, repo string, labels map
for label, newLabel := range labels {
err := s.git.EditLabel(ctx, user, repo, label, newLabel, labelsInfo[newLabel])
if err == nil {
renamed[newLabel] = nil
s.logger.Printf("[%s/%s] renaming label from:[%s] to:[%s]", user, repo, label, newLabel)
} else if !isNotFound(err) {
renamed[newLabel] = nil
s.logger.Printf("[%s/%s] failed to rename label from:[%s] to:[%s], error: %v", user, repo, label, newLabel, err)
}
}
Expand Down

0 comments on commit 04d2ea3

Please sign in to comment.