[Batch 6] Greedy mesh compute shader — GPU-driven meshing #906
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: Repository Automation | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened] | |
| issues: | |
| types: [opened, edited] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| label-pr: | |
| if: github.event_name == 'pull_request_target' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Label PR | |
| uses: actions/labeler@v6 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| configuration-path: .github/labeler.yml | |
| sync-labels: true | |
| label-issue: | |
| if: github.event_name == 'issues' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Label Issue | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const fs = require('fs'); | |
| try { | |
| const config = JSON.parse(fs.readFileSync('.github/issue-labeler.json', 'utf8')); | |
| const title = context.payload.issue.title.toLowerCase(); | |
| const body = (context.payload.issue.body || "").toLowerCase(); | |
| const labelsToAdd = []; | |
| for (const [label, rules] of Object.entries(config)) { | |
| for (const rule of rules) { | |
| const keywords = rule.title || rule.body || []; | |
| const checkString = rule.title ? title : body; | |
| if (keywords.some(k => checkString.includes(k.toLowerCase()))) { | |
| labelsToAdd.push(label); | |
| break; | |
| } | |
| } | |
| } | |
| if (labelsToAdd.length > 0) { | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.issue.number, | |
| labels: labelsToAdd | |
| }); | |
| } | |
| } catch (e) { | |
| console.error('Error labeling issue:', e); | |
| } |