Close Rejected Issues #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close Rejected Issues | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # daily at midnight UTC | |
| workflow_dispatch: | |
| jobs: | |
| close_rejected: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Sync dependencies | |
| run: uv sync --frozen | |
| - name: Close rejected issues | |
| env: | |
| # GH_TOKEN needs repo (closeIssue) + read:project (project query) scopes. | |
| # No project write scope: this script does not mutate project fields. | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: uv run python -m random_dare.close_rejected |