Skip to content

refactor: update wordlists and configuration defaults #47

refactor: update wordlists and configuration defaults

refactor: update wordlists and configuration defaults #47

name: Close issues on PR merge to release branch
on:
pull_request:
types:
- closed
jobs:
close-related-issues:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.ref, 'refs/heads/release/')
permissions:
issues: write
steps:
- name: Extract issue number
id: extract_issue_number
run: |
issue_number=$(echo "${{ github.event.pull_request.body }}" | grep -oE '#[0-9]+' | head -n 1 | tr -d '#')
echo "ISSUE_NUMBER=$issue_number" >> $GITHUB_ENV
- name: Close linked issues
uses: peter-evans/close-issue@v3
with:
issue-number: ${{ env.ISSUE_NUMBER }}
comment: "This issue is being closed because the related PR has been merged into a release branch."