diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 00000000..f5709648 --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,3 @@ +self-hosted-runner: + labels: + - ubuntu-slim diff --git a/.github/workflows/close-stale-prs.yaml b/.github/workflows/close-stale-prs.yaml new file mode 100644 index 00000000..4e0cdf4b --- /dev/null +++ b/.github/workflows/close-stale-prs.yaml @@ -0,0 +1,30 @@ +name: Close stale PRs + +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-slim + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v10 + with: + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 7 + days-before-pr-close: 7 + stale-pr-label: stale + stale-pr-message: > + This PR has been marked as stale because it has had no activity for 7 days. + Remove the stale label or comment to keep it open. It will be closed + automatically in 7 more days if no activity occurs. + close-pr-message: > + This PR was closed automatically because it has been stale for 14 days with + no activity. + exempt-draft-pr: true + operations-per-run: 30