Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

A GitHub Action to close issues matching a query

License

Notifications You must be signed in to change notification settings

arkntools/close-matching-issues

 
 

Repository files navigation

Close Matching Issues

A GitHub Action to close issues in the repo in which the Action executes that match a query.

Use

Can be used to close issues or pull requests that were opened by some previous workflow after they've served their purpose.

steps:
  - uses: arkntools/close-matching-issues@v2
    with:
      query: 'label:weekly-issue'
      token: ${{ secrets.GITHUB_TOKEN }}
      comment: 'closed by [${{ github.run_id }}](../actions/runs/${{ github.run_id }})'

Inputs

  • query required -- GitHub search query that will match the issues that should be closed. Note: The search will automatically be scoped to the repository in which the Action is executing.
  • token required -- Token to use to perform the search and close the issues. GITHUB_TOKEN has sufficient access to do this.
  • comment -- Comment when close issues.

Outputs

  • num -- A number of how much issues was closed.

License

MIT

About

A GitHub Action to close issues matching a query

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.1%
  • JavaScript 4.9%