This repository was archived by the owner on Mar 23, 2026. It is now read-only.
chore(deps): bump actions/setup-python from 5 to 6 #1
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 | |
| on: | |
| issues: | |
| types: [opened] | |
| pull_request: | |
| types: [opened] | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| auto-assign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Auto-assign issues | |
| if: github.event_name == 'issues' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| assignees: [context.repo.owner] | |
| }); | |
| - name: Auto-label PRs | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const labels = []; | |
| const files = await github.rest.pulls.listFiles({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: pr.number, | |
| }); | |
| const paths = files.data.map(f => f.filename); | |
| if (paths.some(p => p.includes('skills/'))) labels.push('skills'); | |
| if (paths.some(p => p.includes('.github/workflows'))) labels.push('ci-cd'); | |
| if (paths.some(p => p.includes('cross-platform/'))) labels.push('cross-platform'); | |
| if (paths.some(p => p.endsWith('.md'))) labels.push('documentation'); | |
| if (paths.some(p => p.includes('security') || p.includes('SECURITY'))) labels.push('security'); | |
| if (labels.length > 0) { | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: pr.number, | |
| labels: labels | |
| }); | |
| } |