From 4e91c0e6f47eab825b28cdc577d499dc2bd93676 Mon Sep 17 00:00:00 2001 From: italo jose Date: Mon, 26 May 2025 17:25:55 -0300 Subject: [PATCH] Enhance inactive issues workflow to trigger on pull request events and restrict execution to specific PR number --- .github/workflows/inactive-issues.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/inactive-issues.yml b/.github/workflows/inactive-issues.yml index bb7a44ab0f..0afe0e5f40 100644 --- a/.github/workflows/inactive-issues.yml +++ b/.github/workflows/inactive-issues.yml @@ -6,10 +6,18 @@ on: - cron: '0 1 * * *' # Allows to run this workflow manually from the Actions tab workflow_dispatch: + # Run when there's a push to a pull request + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/scripts/inactive-issues.js' + - '.github/workflows/inactive-issues.yml' jobs: manage-inactive-issues: runs-on: ubuntu-latest + # Only run this workflow for PR #13775 when triggered by a pull_request event + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.number == 13775 }} permissions: issues: write steps: