Skip to content
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

11 Commits
 
 
 
 
 
 

Repository files navigation

Issue Tools

Automate issue triage workflows using fully customizable text commands in issue comments. This composite GitHub Action allows repository maintainers to close, reopen, lock, or mark issues as duplicates directly from the comment interface.

Features

  • Close issues as completed or not planned.
  • Reopen previously closed issues.
  • Lock issue conversation threads natively.
  • Mark issues as duplicates using either an issue number or an exact title match.
  • Full control over command syntax strings.
  • Configurable text templates for automated confirmation and error responses.

Setup Instructions

1. Create the Workflow File

In the repository where you want to use the commands, create a new file named .github/workflows/triage.yml.

2. Add the Configuration

Copy and paste the configuration below into your newly created workflow file.

Important

Make sure to keep the permissions block intact so the action has the necessary rights to modify issues.

name: Triage

on:
  issue_comment:
    types: [created]

permissions:
  issues: write

jobs:
  triage-job:
    runs-on: ubuntu-latest
    steps:
      - name: Issue Tools
        uses: ilim-cell/issuetools@v1.1.1

Configuration Inputs

The following parameters can be configured in the with block of your workflow if you wish to override the default patterns:

Input Description Required Default
github_token The token used to interact with the GitHub API. Yes ${{ github.token }}
cmd_close_completed Command string to close an issue as completed. Yes /close completed
cmd_close_not_planned Command string to close an issue as not planned. Yes /close not planned
cmd_reopen Command string to reopen an issue. Yes /reopen
cmd_lock Command string to lock an issue conversation thread. Yes /lock
cmd_dup_prefix Prefix string for duplicate commands. Yes /dup

The following parameter configurations are optional. If left blank, the action uses standard system strings:

Input Description Required Default
msg_dup_not_found Error string when duplicate target cannot be found. Supports {input} token. No System default error text.
msg_dup_missing_issue Error string when duplicate number does not exist. Supports {target} token. No System default error text.
msg_dup_success_comment Automated message posted on the closed duplicate issue. Supports {target} token. No System default success text.

Usage Examples

Once deployed, repository maintainers can use the configured strings in any issue comment:

  • Type /close completed to close the issue as finished.
  • Type /close not planned to close the issue as skipped or canceled.
  • Type /reopen to open a closed issue.
  • Type /lock to freeze conversations on the current issue thread.
  • Type /dup #123 to close the current issue and link it to issue 123.
  • Type /dup "Exact Title of Another Issue" to find and link the target issue by its text title.

Troubleshooting

If the action encounters a 403 Forbidden error when running commands, confirm that:

  1. The permissions: issues: write block is explicitly defined at the top level of your workflow file.
  2. Under repository Settings > Actions > General > Workflow permissions, the option Read and write permissions is selected.

About

A reusable GitHub Action for managing issues with slash commands

Topics

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors