An open API service indexing awesome lists of open source software.

https://github.com/muleyuck/gh-issue-clone

👑 a gh extension that allows users to clone (duplicate) GitHub issues from a given issue URL
https://github.com/muleyuck/gh-issue-clone

cli gh-extension gh-extensions go golang urfave urfave-cli

Last synced: 4 months ago
JSON representation

👑 a gh extension that allows users to clone (duplicate) GitHub issues from a given issue URL

Awesome Lists containing this project

README

          

[![unit-test](https://github.com/muleyuck/gh-issue-clone/actions/workflows/unit-test.yml/badge.svg)](https://github.com/muleyuck/gh-issue-clone/actions/workflows/unit-test.yml)
![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)
[![Release](https://img.shields.io/github/release/muleyuck/gh-issue-clone.svg)](https://github.com/muleyuck/gh-issue-clone/releases/latest)

# 👑 gh-issue-clone
![demo](https://github.com/user-attachments/assets/959f66f2-c6b0-4493-af37-9d05fc5a2522)

## Overview

`gh-issue-clone` is a gh extension that allows users to clone (duplicate) GitHub issues from a given issue URL.
The tool fetches the details of a specified issue, optionally applies a different issue template, and creates a new issue in the target repository.
It can also add the new issue to project boards and copy over relevant field values.

## Features

- Clone a GitHub issue by providing its URL.
- Optionally specify an issue template to be used for the cloned issue.
- Automatically add the new issue to project boards and copy project field values.

## Installation

Install `muleyuck/gh-issue-clone` extension from the gh command:
```sh
gh extension install muleyuck/gh-issue-clone
```

## Usage

```sh
gh issue-clone [--template ]
```

- ``: The URL of the GitHub issue to clone (e.g., `https://github.com/owner/repo/issues/123`)
- `--template`, `-t`: (Optional) The name of the issue template to use for the new issue.

### Example

```sh
gh issue-clone https://github.com/octocat/Hello-World/issues/42 --template "bug_report"
```

## LICENCE

[The MIT Licence](https://github.com/muleyuck/gh-issue-clone/blob/main/LICENSE)