From 261e50ec00f18d10c42d8b5ddd15f524a46eaad3 Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Wed, 1 Nov 2023 05:26:20 -0400 Subject: [PATCH] DYN-6372 Update close stale issues workflow (#14544) - remove obsolete arg `skip-stale-issue-message` - add step to print summary --- .github/workflows/close_stale_issues.yaml | 23 ---------------------- .github/workflows/close_stale_issues.yml | 24 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/close_stale_issues.yaml create mode 100644 .github/workflows/close_stale_issues.yml diff --git a/.github/workflows/close_stale_issues.yaml b/.github/workflows/close_stale_issues.yaml deleted file mode 100644 index 6f7f4097d98..00000000000 --- a/.github/workflows/close_stale_issues.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Close stale issues -on: - schedule: - - cron: '0 0 * * *' -jobs: - close-stale-issues: - runs-on: ubuntu-latest - steps: - - name: close stale issues - uses: actions/stale@v8 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - #By default the action will leave a message when marking the issue as stale and another-one when closing the issue. - #As we only want the message to be added when the issue is closed, the "skip-stale-issue-message" parameter was set to true - #but the action wont work if the "stale-issue-message" doesn't have a value. - stale-issue-message: "." - skip-stale-issue-message: true - close-issue-message: "Given that there has been no additional information added, - this issue will be closed for now. Please reopen and provide additional - information if you wish the Dynamo team to investigate further." - days-before-stale: 30 - days-before-close: 0 - only-labels: 'needs more info' diff --git a/.github/workflows/close_stale_issues.yml b/.github/workflows/close_stale_issues.yml new file mode 100644 index 00000000000..163881dbcb9 --- /dev/null +++ b/.github/workflows/close_stale_issues.yml @@ -0,0 +1,24 @@ +name: Close stale issues + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + close_stale_issues: + name: Close stale issues + runs-on: ubuntu-latest + steps: + - name: Close Issues + id: close_issues + uses: actions/stale@v8 + with: + days-before-stale: 30 + days-before-close: 0 + only-labels: needs more info + close-issue-message: Given that there has been no additional information added, this issue will be closed for now. Please reopen and provide additional information if you wish the Dynamo team to investigate further. + - name: Summary + run: | + echo "# Closed Issues" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "${{ steps.close_issues.outputs.closed-issues-prs }}" >> $GITHUB_STEP_SUMMARY