name: 👓 Close stale issues
on:
  schedule:
  - cron: "30 1 * * *"

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/stale@v4
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        stale-issue-message: |
                            The QField project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
                            In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
                            If there is no further activity on this issue, it will be closed in a week.
        stale-issue-label: 'stale'
        only-labels: 'feedback'
        days-before-stale: 14
        days-before-close: 7
