gotsunami / gitlab-copy

Batch copy issues between GitLab instances, with some cool features
MIT License
128 stars 20 forks source link

Add a reference in the old issue pointing to the new one #6

Closed attiks closed 8 years ago

attiks commented 8 years ago

and an option to close the old one.

KelvinMutuma commented 8 years ago

This would be great if on the old issue it created a comment like closing this issue in favour of <NEW_URL> to issue and closed the old issue

attiks commented 8 years ago

Maybe easiest to add a setting in the yml file

matm commented 8 years ago

Nice idea, thanks. Will be 2 options in the YAML config file.

matm commented 8 years ago

What about new autoCloseIssue and linkToTargetIssue options:

from:
  url: https://gitlab.mydomain.com
  token: atoken
  project: namespace/project
  autoCloseIssue: true
  linkToTargetIssue: true
to:
  # Target options here

What do you think?

KelvinMutuma commented 8 years ago

@matm :+1:

attiks commented 8 years ago

Sounds great, add an extra option for the comment linkToTargetIssueText: Closed in favor of #

matm commented 8 years ago

Okay, the linkToTargetIssueText for custom label, will default to Closed in favor of [link].