Unassign Issues Without Linked PR #6
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: Unassign Issues Without Linked PR | |
| on: | |
| schedule: | |
| - cron: '0 9 */5 * *' # Runs every 5 days at 9:00 AM UTC | |
| workflow_dispatch: # Also allows manual triggering | |
| jobs: | |
| unassign-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 | |
| - name: Unassign issues with no linked PR and notify | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 #v9.0.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const script = require('./.github/scripts/unassignIssues.js'); | |
| await script({ github, context }); |