https://github.com/lee-dohm/close-matching-issues
A GitHub Action to close issues matching a query
https://github.com/lee-dohm/close-matching-issues
action close issues
Last synced: 8 months ago
JSON representation
A GitHub Action to close issues matching a query
- Host: GitHub
- URL: https://github.com/lee-dohm/close-matching-issues
- Owner: lee-dohm
- License: mit
- Created: 2019-11-27T20:27:28.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T20:12:44.000Z (about 3 years ago)
- Last Synced: 2025-08-31T01:54:21.167Z (9 months ago)
- Topics: action, close, issues
- Language: TypeScript
- Size: 1.91 MB
- Stars: 5
- Watchers: 1
- Forks: 9
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.
```yaml
steps:
- uses: lee-dohm/close-matching-issues@v2
with:
query: 'label:weekly-issue'
token: ${{ secrets.GITHUB_TOKEN }}
```
### Inputs
- `query` **required** -- [GitHub search query](https://help.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests) 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](LICENSE.md)