[BUG] Simple QP example in C not compiling #116
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
| # SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Auto-label and Round-Robin Assign Issues | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| auto-label: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Add awaiting response label to new issues | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| // Only process issues (not PRs) | |
| if (context.payload.issue && !context.payload.issue.pull_request) { | |
| const issue = context.payload.issue; | |
| const issueNumber = issue.number; | |
| console.log(`Adding 'awaiting response' label to issue #${issueNumber}`); | |
| await github.rest.issues.addLabels({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: issueNumber, | |
| labels: ['awaiting response'] | |
| }); | |
| console.log(`Successfully added 'awaiting response' label to issue #${issueNumber}`); | |
| } else { | |
| console.log('Skipping - this is a pull request, not an issue'); | |
| } | |
| round-robin-assign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Assign issue round-robin only if unassigned | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| // Only process issues (not PRs) | |
| if (context.payload.issue && !context.payload.issue.pull_request) { | |
| const issue = context.payload.issue; | |
| const issueNumber = issue.number; | |
| // Round-robin assignment logic | |
| const assignees = [ | |
| 'kaatish', | |
| 'rg20', | |
| 'akifcorduk', | |
| 'hlinsen', | |
| 'Kh4ster', | |
| 'aliceb-nv', | |
| 'chris-maes', | |
| 'rgsl888prabhu', | |
| 'Iroy30', | |
| 'tmckayus' | |
| ]; | |
| // Only assign if no one is assigned yet | |
| if (!issue.assignees || issue.assignees.length === 0) { | |
| const index = (issueNumber - 1) % assignees.length; | |
| const assignee = assignees[index]; | |
| console.log(`Assigning issue #${issueNumber} to @${assignee}`); | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: issueNumber, | |
| assignees: [assignee], | |
| }); | |
| console.log(`Successfully assigned issue #${issueNumber} to @${assignee}`); | |
| } else { | |
| console.log(`Issue #${issueNumber} already has assignees, skipping assignment.`); | |
| } | |
| } else { | |
| console.log('Skipping - this is a pull request, not an issue'); | |
| } |