name: Stale # yamllint disable-line rule:truthy on: schedule: - cron: "0 * * * *" workflow_dispatch: permissions: {} concurrency: group: ${{ github.workflow }} cancel-in-progress: true jobs: stale: name: Mark stale issues and PRs if: github.repository_owner == 'home-assistant' runs-on: ubuntu-latest permissions: issues: write # To label and close stale issues pull-requests: write # To label and close stale PRs actions: write # To delete stalebot state steps: # Generate a token for the GitHub App, we use this method to avoid # hitting API limits for our GitHub actions + have a higher rate limit. - name: Generate app token id: token # Pinned to a specific version of the action for security reasons # v3.2.0 uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 with: client-id: ${{ secrets.ISSUE_TRIAGE_APP_ID }} # zizmor: ignore[secrets-outside-env] private-key: ${{ secrets.ISSUE_TRIAGE_APP_PEM }} # zizmor: ignore[secrets-outside-env] # The 60 day stale policy for PRs # Used for: # - PRs # - No PRs marked as no-stale # The 90 day stale policy for issues # Used for: # - Issues # - No issues marked as no-stale or help-wanted - name: 60 days stale PRs policy and 90 days stale issue policy uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 with: repo-token: ${{ steps.token.outputs.token }} remove-stale-when-updated: true operations-per-run: 350 # pr policy days-before-pr-stale: 60 days-before-pr-close: 7 stale-pr-label: "stale" exempt-pr-labels: "no-stale" stale-pr-message: > There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. If you are the author of this PR, please leave a comment if you want to keep it open. Also, please rebase your PR onto the latest dev branch to ensure that it's up to date with the latest changes. Thank you for your contribution! # issue policy days-before-issue-stale: 90 days-before-issue-close: 7 stale-issue-label: "stale" exempt-issue-labels: "no-stale,help-wanted" stale-issue-message: > There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.