Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from egmanoj/11-labels-are-not-applied-to-close…
Browse files Browse the repository at this point in the history
…d-issues

Apply labels when closing issues
  • Loading branch information
egmanoj committed Feb 27, 2016
2 parents 32b3367 + 308eb76 commit 041cb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/gitlab-copy/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (m *migration) migrateIssue(issueID int) error {
}

if issue.State == "closed" {
_, _, err := target.Issues.UpdateIssue(tarProjectID, ni.ID, &gitlab.UpdateIssueOptions{StateEvent: "close"})
_, _, err := target.Issues.UpdateIssue(tarProjectID, ni.ID, &gitlab.UpdateIssueOptions{StateEvent: "close", Labels: issue.Labels})
if err != nil {
return fmt.Errorf("target: error closing issue #%d: %s", ni.IID, err.Error())
}
Expand Down

0 comments on commit 041cb1a

Please sign in to comment.