Skip to content

Bash script that allows COPYING a github issue from one repo to another

License

Notifications You must be signed in to change notification settings

salevine/GithubIssueCopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

GitHub Issue Copy Script

This script is used to copy an issue from one repository to another. The built in ability to github only allows for transferring issues between repositories

In addition, the script allows for creating a parent-child relationship between the source and destination issues.

Usage

Make sure you have run gh auth login and have the correct permissions to create issues in the destination repository.

Basic Copy

./github-issue-copy.sh 123

Specify Repositories

# Custom source repository
./github-issue-copy.sh 123 -s owner/source-repo

# Custom destination repository
./github-issue-copy.sh 123 -d owner/dest-repo

# Both source and destination
./github-issue-copy.sh 123 -s owner/source-repo -d owner/dest-repo

Create Relationship from destination to source

# With relationship
./github-issue-copy.sh 123 -r

# With custom repos and relationship
./github-issue-copy.sh 123 -s owner/source -d owner/dest -r

Quiet Mode

# Suppress non-essential output
./github-issue-copy.sh 123 -q

# Can be combined with other options
./github-issue-copy.sh 123 -s owner/source -d owner/dest -r -q

Options

  • -s, --source-repo: Specify source repository
  • -d, --dest-repo: Specify destination repository
  • -r, --relationship: Create parent-child issue relationship
  • -q, --quiet: Suppress non-essential output, showing only errors and final results

Prerequisites

  • GitHub CLI (gh)
  • jq

Notes

  • The script will prompt for the issue number if not provided as an argument.
  • The script will prompt for the source and destination repositories if not provided as arguments.
  • The script will prompt for the issue number if not provided as an argument.

About

Bash script that allows COPYING a github issue from one repo to another

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages