1name: 'Close stale issues and PRs'
2on:
3  schedule:
4    - cron: '30 1 * * *'
5  workflow_dispatch:
6
7jobs:
8  stale:
9    if: github.repository == 'lvgl/lvgl'
10    runs-on: ubuntu-latest
11    steps:
12      - uses: actions/stale@v3
13        with:
14          repo-token: ${{ secrets.LVGL_BOT_TOKEN }}
15          stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
16          stale-pr-message: 'This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
17          close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
18          days-before-stale: 14
19          days-before-close: 7
20          exempt-issue-labels: 'pinned'
21          exempt-pr-labels: 'pinned'
22