Skip to content

Cleanup issues & PRs #1200

Cleanup issues & PRs

Cleanup issues & PRs #1200

Workflow file for this run

name: "Cleanup issues & PRs"
on:
schedule:
- cron: "42 23 * * *"
workflow_dispatch:
jobs:
lock:
name: 馃敀 Lock issues & PRs closed over a year
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}
process-only: "issues, prs"
cleanup:
name: 馃Ч Close issues marked as incomplete & older than 14 days
runs-on: ubuntu-latest
steps:
- id: date
run: |
echo "CUTOFF=`date --date='14 days ago' +'%Y-%m-%d'`" >> $GITHUB_OUTPUT
- uses: OctoPrint/actions/close-by-query@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
query: "is:issue is:open label:incomplete created:<${{ steps.date.outputs.CUTOFF }}"
comment: >
Since apparently some of the required information is still missing, this will be
closed now, sorry. Feel free to request a reopen of this or create a new issue
once you can provide **all**
[required information](https://github.com/OctoPrint/OctoPrint/blob/master/CONTRIBUTING.md#how-to-file-a-bug-report).
This is nothing personal. Thank you for your collaboration.