Automatically close issues fixed in pull requests that doesn't target the default branch.
Comment keywords are documented here:
Fixes #1,#2,#3
close #1, #2, #3
fix #1 #2 #3
resolve #1,#2 #3
Resolves: #1,#2,#3
closed : #1, #2, #3
Create a file named .github/workflows/auto-close-fixed-issues
.
name: Auto Close Issues
on:
pull_request:
types: [closed]
jobs:
close:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/auto-close-fixed-issues@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# optional comment
# comment: 'This issue was closed by #{{ pr }}.'
# default ignore the pr merge to the default branch
# ignore: true
The scripts and documentation in this project are released under the MIT License.