A simple scala-cli script to help you copy github issues from one repo to the other. This is NOT issue transfer.
First try and see if that works for you before using this!
- Things that you can manage with sdkman.io:
- Java 11+ (ideally +) — we use
String.isBlank
- scala-cli
- Java 11+ (ideally +) — we use
- github cli
- the script assumes that you already did
gh auth
- tested only with personal access token setup
- the script assumes that you already did
./gh-issues-copy.scala -- lorandszakacs/gh-issues-copy lorandszakacs/test-target 40
- it only copies open issues. Can be easily changed
- copies comments as well
⚠️ it cannot maintain authorship of issues and comments. The person who didgh auth
and running the script will be the author!- it will add footer to the issue description with a link to the original issue
- it will add a header to the copied comment with a link to the original issue, and a reference to the person who made the comment
- transfer tags
The issues on this repo prefixed with Test:
will never be closed and are types of issues that this script ought to
handle well.
So I don't have to remember how to invoke script everytime I test it 🤷
./test.sh