Close stale issues #428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v9 | |
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 # Print markdown list of closed issues or "No Issues" message if no issues were closed | |
env: | |
ISSUES_URL: ${{ format('{0}/{1}/issues', github.server_url, github.repository) }} | |
run: | | |
echo '# Closed Issues' >> $GITHUB_STEP_SUMMARY | |
echo '${{ steps.close_issues.outputs.closed-issues-prs }}' | jq --raw-output 'if (. == []) then "- No Issues." else .[] | "- \(.title) - [#\(.number)](\(env.ISSUES_URL)/\(.number))" end' >> $GITHUB_STEP_SUMMARY |