Auto-close duplicate issues #49
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: Auto-close duplicate issues | |
| description: Auto-closes issues that are duplicates of existing issues | |
| on: | |
| schedule: | |
| - cron: "0 9 * * *" # Run daily at 9 AM UTC | |
| workflow_dispatch: | |
| jobs: | |
| auto-close-duplicates: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| issues: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Generate Marvin App token | |
| id: marvin-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.MARVIN_APP_ID }} | |
| private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Auto-close duplicate issues | |
| run: uv run scripts/auto_close_duplicates.py | |
| env: | |
| GITHUB_TOKEN: ${{ steps.marvin-token.outputs.token }} | |
| GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} | |
| GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }} |