Skip to content

⛔️ Automatically close issues fixed in pull requests that doesn't target the default branch

License

Notifications You must be signed in to change notification settings

wow-actions/auto-close-fixed-issues

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Auto Close Issues

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

Usage

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

License

The scripts and documentation in this project are released under the MIT License.

About

⛔️ Automatically close issues fixed in pull requests that doesn't target the default branch

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks