| # ------------------------------------------------------------------- | |
| # ------------------------------- WARNING --------------------------- | |
| # ------------------------------------------------------------------- | |
| # | |
| # This file was automatically generated by gh-workflows using the | |
| # gh-workflow-gen bin. You should add and commit this file to your | |
| # git repository. **DO NOT EDIT THIS FILE BY HAND!** Any manual changes | |
| # will be lost if the file is regenerated. | |
| # | |
| # To make modifications, update your `build.rs` configuration to adjust | |
| # the workflow description as needed, then regenerate this file to apply | |
| # those changes. | |
| # | |
| # ------------------------------------------------------------------- | |
| # ----------------------------- END WARNING ------------------------- | |
| # ------------------------------------------------------------------- | |
| name: Close Stale Issues and PR | |
| env: | |
| DAYS_BEFORE_ISSUE_STALE: '30' | |
| DAYS_BEFORE_ISSUE_CLOSE: '7' | |
| DAYS_BEFORE_PR_STALE: '5' | |
| DAYS_BEFORE_PR_CLOSE: '10' | |
| 'on': | |
| schedule: | |
| - cron: '0 * * * *' | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| stale: | |
| name: Stale Issues | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Mark Stale Issues | |
| uses: actions/stale@v10 | |
| with: | |
| stale-issue-label: 'state: inactive' | |
| stale-pr-label: 'state: inactive' | |
| stale-issue-message: |- | |
| **Action required:** Issue inactive for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days. | |
| Status update or closure in ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days. | |
| close-issue-message: Issue closed after ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days of inactivity. | |
| stale-pr-message: |- | |
| **Action required:** PR inactive for ${{ env.DAYS_BEFORE_PR_STALE }} days. | |
| Status update or closure in ${{ env.DAYS_BEFORE_PR_CLOSE }} days. | |
| close-pr-message: PR closed after ${{ env.DAYS_BEFORE_PR_CLOSE }} days of inactivity. | |
| days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }} | |
| days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} | |
| days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }} | |
| days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }} | |