Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Update manage-stale-issues-and-prs.yml

peaklabs-dev4450ee382f84
diff --git a/.github/workflows/manage-stale-issues-and-prs.yml b/.github/workflows/manage-stale-issues-and-prs.yml
index 7cf9dca79e..9d46411df7 100644
--- a/.github/workflows/manage-stale-issues-and-prs.yml
+++ b/.github/workflows/manage-stale-issues-and-prs.yml
@@ -10,6 +10,7 @@ jobs:
steps:
- name: Manage stale issues and PRs
uses: actions/stale@v9
+ id: stale
with:
stale-issue-message: 'This issue will be closed in a few days if no response is received. Please provide an update with the requested information.'
stale-pr-message: 'This pull request will be closed in a few days if no response is received. Please update or comment if you would like to continue working on it.'
@@ -33,3 +34,24 @@ jobs:
ascending: false
close-issue-reason: 'not_planned'
exempt-all-milestones: false
+
+ - name: Process closed issues and PRs
+ if: steps.stale.outputs.closed-issues-prs
+ uses: actions/github-script@v7
+ with:
+ github-token: ${{secrets.GITHUB_TOKEN}}
+ script: |
+ const closedItemsStr = '${{ steps.stale.outputs.closed-issues-prs }}';
+ const closedItems = closedItemsStr.split(',').map(Number);
+
+ for (const itemNumber of closedItems) {
+ await github.rest.actions.createWorkflowDispatch({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ workflow_id: 'remove-labels-and-assignees-on-close.yml',
+ ref: 'main',
+ inputs: {
+ issue_number: itemNumber.toString()
+ }
+ });
+ }