Fix shellcheck SC2043 and triage workflow label permissions#250
Fix shellcheck SC2043 and triage workflow label permissions#250electrocucaracha merged 4 commits intomasterfrom
Conversation
Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Co-authored-by: electrocucaracha <2782150+electrocucaracha@users.noreply.github.com>
Review Summary by QodoFix linting issues: shellcheck, codespell, and workflow permissions
WalkthroughsDescription• Fix shellcheck SC2043 by removing single-item for loop in _installers.sh • Add pull-requests: write permission to triage workflow for labeler action • Fix multiple spelling errors across shell scripts and configuration files • Add codespell configuration with custom wordlist for linting • Update linter workflow permissions and failed-build-issue-action parameters Diagramflowchart LR
A["Linting Issues"] --> B["Shellcheck SC2043"]
A --> C["Codespell Errors"]
A --> D["Workflow Permissions"]
B --> E["Remove for loop in _installers.sh"]
C --> F["Fix spelling in multiple files"]
C --> G["Add .codespellrc config"]
D --> H["Add pull-requests:write to triage.yml"]
D --> I["Update linter.yml permissions"]
File ChangesView more (11)8. .github/.wordlist.txt
|
Code Review by Qodo
1. Spellcheck breaks on AddOns
|
| NodeLocal | ||
| NODELOCALDNS | ||
| ol | ||
| Ons |
There was a problem hiding this comment.
1. Spellcheck breaks on addons 🐞 Bug ⛯ Reliability
The PR removes the wordlist entry Ons while the repo still contains the camel-cased term AddOns in README/scripts, so spellchecking/linting that uses this wordlist will start flagging it and can fail CI. This is amplified because .codespellrc newly points codespell to the same .github/.wordlist.txt file.
Agent Prompt
### Issue description
CI spelling/lint checks rely on `.github/.wordlist.txt`. The PR removes `Ons` from this wordlist, but the repo still uses `AddOns` in documentation and scripts, and `.codespellrc` now shares the same wordlist with codespell.
### Issue Context
- `pyspelling` consumes `.github/.wordlist.txt`.
- `codespell` is newly configured to consume the same wordlist.
- `AddOns` still appears in README/scripts.
### Fix Focus Areas
- .github/.wordlist.txt[72-86]
- README.md[125-134]
- _installers.sh[161-169]
- .codespellrc[1-2]
- .spellcheck.yml[10-21]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Two CI failures on PR #250: shellcheck SC2043 in
_installers.shandactions/labelerfailing with 403 due to insufficient permissions.Changes
_installers.sh: Remove single-itemfor addon in grafanaloop (SC2043 — loop never iterates more than once); replace with direct inline commands.github/workflows/triage.yml: Addpull-requests: writepermission required byactions/labelerto assign labels📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.