Auto-assign maintainer #171
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-assign maintainer | |
| on: | |
| schedule: | |
| # Run every 3 hours to check for new maintainer comments | |
| - cron: "0 */3 * * *" | |
| workflow_dispatch: # Allow manual triggering | |
| pull_request: | |
| paths: | |
| - .github/workflows/auto-assign.yml | |
| - .github/workflows/auto-assign.js | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| scan-and-assign: | |
| runs-on: ubuntu-slim | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| sparse-checkout: | | |
| .github | |
| - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 | |
| with: | |
| script: | | |
| const script = require('./.github/workflows/auto-assign.js'); | |
| const skipAssignment = context.eventName === 'pull_request'; | |
| await script({ github, context, skipAssignment }); |