[PureGo] Internal setup budget expiry is misclassified as a terminal stream failure #109
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: Label Issues | |
| on: | |
| issues: | |
| types: [opened] | |
| permissions: | |
| issues: write | |
| jobs: | |
| add-sdk-prefix: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| steps: | |
| - name: Add SDK prefix to title | |
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | |
| with: | |
| script: | | |
| const body = context.payload.issue.body || ''; | |
| const title = context.payload.issue.title; | |
| const match = body.match(/### SDK\s*\n\s*\n\s*(.+)/); | |
| if (!match) return; | |
| const sdk = match[1].trim(); | |
| const prefix = `[${sdk}]`; | |
| if (title.startsWith(prefix)) return; | |
| await github.rest.issues.update({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| title: `${prefix} ${title}` | |
| }); |