Skip to content

🧬 Creates a full copy of issue with a single command

License

Notifications You must be signed in to change notification settings

wow-actions/duplicate-issue

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duplicate Issue

Creates a full copy of issue with a single command.

Use the default /duplicate command to duplicate an issue:

command

The duplicated issue:

duplicated

Usage

Create .github/workflows/duplicate-issue.yml in the default branch:

name: Duplicate Issue
on:
  issue_comment:
    types: [created]
jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: wow-actions/duplicate-issue@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

  • command - The command name to copy the issue. Default 'duplicate'.
  • who - Who can duplicate the issue. Default 'author' only the author of the issue can duplicate it. Or any other values indicate any one can duplicate the issue.
  • extras - Additional information appended to the duplicated issue body. Default '> This issue was copied from [#{{ issueNumber }}]({{ issueUrl }}) by @{{ author }}.'.

License

The scripts and documentation in this project are released under the MIT License.