Skip to content

Revert "Set node version to 23.1 (#8280)" #1891

Revert "Set node version to 23.1 (#8280)"

Revert "Set node version to 23.1 (#8280)" #1891

name: Dependabot Close Issue
on:
pull_request:
types: [closed]
jobs:
issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Github action permissions: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs#overview
permissions:
issues: write
steps:
- uses: actions/checkout@v4
if: github.event.pull_request.user.login == 'dependabot[bot]'
- name: Close issue if Dependabot PR is closed
if: github.event.pull_request.user.login == 'dependabot[bot]'
env:
pr_title: ${{github.event.pull_request.title}}
run: |
issue_title="Dependabot PR $pr_title opened"
issue=$(gh issue list --json number --jq '.[].number' --label "dependencies" --label "Dependabot" --search "is:issue is:open $issue_title")
gh issue close "$issue"