Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

close-matching-issues-repo

v4.0.1

close-matching-issues-repo

check-circle

close-matching-issues-repo

Closes issues matching a query from specified repo or current

Installation

Copy and paste the following snippet into your .yml file.

              

- name: close-matching-issues-repo

uses: DavidMarquezF/close-matching-issues@v4.0.1

Learn more about this action in DavidMarquezF/close-matching-issues

Choose a version

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: lee-dohm/close-matching-issues@v2
    with:
      query: 'label:weekly-issue'
      token: ${{ secrets.GITHUB_TOKEN }}

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.

License

MIT