[BUG] In cute/tensor_impl.hpp, delay creating new_layout to avoid unused-but-set-variable? #2
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 Label Issues | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| add-labels: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Add component label | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const issue = context.payload.issue; | |
| const body = issue.body || ''; | |
| // Parse the issue body to find the component selection | |
| // GitHub renders dropdown selections as "### Which component has the problem?\n\n{selection}" | |
| const componentMatch = body.match(/### Which component has the problem\?\s*\n\s*\n\s*(.+?)(?:\n|$)/); | |
| if (componentMatch) { | |
| const component = componentMatch[1].trim(); | |
| let label = ''; | |
| // Map component selections to labels | |
| switch(component) { | |
| case 'CuTe DSL': | |
| label = 'CuTe DSL'; | |
| break; | |
| case 'CUTLASS C++': | |
| label = 'CUTLASS C++'; | |
| break; | |
| } | |
| if (label) { | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: issue.number, | |
| labels: [label] | |
| }); | |
| console.log(`Added label: ${label}`); | |
| } | |
| } |