mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
Bumps [check-spelling/check-spelling](https://github.com/check-spelling/check-spelling) from 0.0.24 to 0.0.25. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/check-spelling/check-spelling/releases">check-spelling/check-spelling's releases</a>.</em></p> <blockquote> <h2>Release 0.0.25</h2> <h2>⏩ Upgrading</h2> <ul> <li>🧪 Test first <em>on a branch</em> 🏷️ by changing your workflow tags/references to this release</li> <li>See 🐣 <strong>Breaking Changes</strong> for how to adapt your workflow</li> <li>See 🐛 <strong>Known Issues</strong> for known issues</li> </ul> <h2>🐣 Breaking Changes</h2> <ul> <li><a href="https://github.com/check-spelling/check-spelling/wiki/Breaking-Change:-Code-Scanning-action-requires-a-Code-Scanning-Ruleset">Code Scanning action requires a Code Scanning Ruleset</a> If you use SARIF reporting, then instead of the workflow yielding an ❌ when it fails, it will rely on <a href="https://github.com/apps/github-advanced-security"><strong>github-advanced-security</strong> 🤖</a> to report the failure. You will need to adjust your checks for PRs.</li> <li><a href="https://github.com/check-spelling/check-spelling/wiki/Breaking-change:-Dropping-support-for-on:-schedule">Dropping support for <code>on: schedule</code></a></li> <li><a href="https://github.com/check-spelling/check-spelling/wiki/Breaking-Change:-Dropping-support-for-%60whitelist.txt%60-and-%60advice.txt%60">Dropping support for <code>whitelist.txt</code> and <code>advice.txt</code></a></li> <li><a href="https://github.com/check-spelling/check-spelling/wiki/Breaking-Change%3A-Dropping-support-for-out-of-tree-project-files">Dropping support for out of tree project files</a></li> <li>Dependent actions are referenced by full sha instead of version -- if you're using <a href="https://docs.github.com/en/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#allowing-select-actions-and-reusable-workflows-to-run">Allow specified actions and reusable workflows</a>, you will need to add: <ul> <li><code>check-spelling/checkout-merge@46bad523dcb6368efab50ff2729c00443785abca</code> (if you run <code>on: pull_request</code>/<code>on: pull_requesrt_target</code> and use <code>with:</code>/<code>checkout: true</code>)</li> </ul> </li> </ul> <h2>✨ New Features</h2> <ul> <li><a href="https://github.com/check-spelling/check-spelling/wiki/Feature:-Subrepos">Check submodules</a> using <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration#submodules"><code>submodules</code></a></li> <li>Provide instructions for when <code>only_check_changed_files</code> finds unrecognized words (<a href="https://api.github.com/repos/check-spelling/check-spelling/issues/86">#86</a>)</li> <li>Support <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration/_edit#unknown_file_word_limit"><code>unknown_file_word_limit</code></a> to limit the number of times a path in a filename is reported when using <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration#check_file_names"><code>check_file_names</code></a></li> <li>Suggest <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration#checkout"><code>checkout: true</code></a> for new <a href="https://github.com/check-spelling/check-spelling/wiki/Event-descriptions#single-line-file"><code>missing-checkout</code></a> error case</li> <li>Suggest ignoring files that trigger <a href="https://github.com/check-spelling/check-spelling/wiki/Event-descriptions#single-line-file"><code>single-line-file</code></a></li> </ul> <h2>Dictionaries</h2> <ul> <li>Fix <a href="https://github.com/check-spelling/check-spelling/wiki/Event-descriptions/#fallback-dictionary-not-found"><code>fallback-dictionary-not-found</code></a> handling</li> </ul> <h3>Hunspell dictionaries</h3> <ul> <li>Fix support for <code>.dic</code>/<code>.aff</code> dictionaries by installing hunspell as needed (<a href="https://api.github.com/repos/check-spelling/check-spelling/issues/79">#79</a> / <a href="https://api.github.com/repos/check-spelling/check-spelling/issues/90">#90</a>)</li> <li>Ensure that <a href="https://docs.check-spelling.dev/Feature:-Configurable-word-characters.html#spanish">Spanish</a> works (a consumer is using this, so it should work reliably)</li> </ul> <h2>Fixes</h2> <ul> <li>macOS: Consistently use check-spelling dictionary instead of looking at the system dictionary (<a href="https://api.github.com/repos/check-spelling/check-spelling/issues/84">#84</a>)</li> <li>Fix <code>check_for_newline_at_eof</code> for <code>allow.txt</code> (<a href="https://api.github.com/repos/check-spelling/check-spelling/issues/81">#81</a>)</li> <li>Improve handling of <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration#ignored"><code>inputs.ignored</code></a> events</li> <li>Fix <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration:-Advanced#debug"><code>inputs.debug</code></a> handling</li> <li>Fix <strong>merge</strong> instructions order</li> <li>Fix pattern for validating expect entries</li> <li>Fix <a href="https://github.com/check-spelling/check-spelling/wiki/Event-descriptions/#noisy-file-list"><code>noisy-file-list</code></a> handling</li> <li>Fix 504 handling for <a href="https://github.com/check-spelling/check-spelling/wiki/Configuration#only_check_changed_files"><code>only_check_changed_files</code></a> when unshallowing</li> <li>Restore comment (<code>#</code>) support for expect files</li> <li>Include last character in <a href="https://github.com/check-spelling/check-spelling/wiki/Event-descriptions/#token-is-substring"><code>token-is-substring</code></a> warning</li> </ul> <h2>Improvements</h2> <ul> <li>Line ending detection (<a href="https://api.github.com/repos/check-spelling/check-spelling/issues/83">#83</a>)</li> <li><a href="https://www.fileformat.info/info/unicode/char/2019/index.htm">RSQM</a> handling</li> <li>Dictionary download times by skipping delays for <code>30x</code> redirects</li> <li>Excludes paths generation</li> <li>Error handling of various components</li> <li>Documentation links</li> <li>GitHub error detection patterns for when check-spelling has bugs</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="c635c2f3f7"><code>c635c2f</code></a> action: Release v0.0.25</li> <li><a href="a72db74f75"><code>a72db74</code></a> Yaml: Fix REPORT_MATCHING_YAML=1 handling</li> <li><a href="72391946fe"><code>7239194</code></a> checkout: suppress default branch message</li> <li><a href="5b54b9ba2d"><code>5b54b9b</code></a> CheckDictionary: Tolerate empty INPUT_IGNORE_PATTERN</li> <li><a href="eedc53a05c"><code>eedc53a</code></a> test: Add coverage for non-alpha-in-dictionary</li> <li><a href="35e2bbcc5b"><code>35e2bbc</code></a> unknown-words: Split error streams</li> <li><a href="b73164407b"><code>b731644</code></a> unknown-words: Use encoding(UTF-8)</li> <li><a href="d6cb009abb"><code>d6cb009</code></a> test: Expose dependency timing</li> <li><a href="eac6da34a8"><code>eac6da3</code></a> test: Improve local testing</li> <li><a href="a9ff41ecae"><code>a9ff41e</code></a> Suggest using <code>#</code> to suppress candidates</li> <li>Additional commits viewable in <a href="67debf5066...c635c2f3f7">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
210 lines
7.9 KiB
YAML
210 lines
7.9 KiB
YAML
# spelling.yml is blocked per https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2p
|
|
name: Spell checking
|
|
|
|
# Comment management is handled through a secondary job, for details see:
|
|
# https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Restricted-Permissions
|
|
#
|
|
# `jobs.comment-push` runs when a push is made to a repository and the `jobs.spelling` job needs to make a comment
|
|
# (in odd cases, it might actually run just to collapse a comment, but that's fairly rare)
|
|
# it needs `contents: write` in order to add a comment.
|
|
#
|
|
# `jobs.comment-pr` runs when a pull_request is made to a repository and the `jobs.spelling` job needs to make a comment
|
|
# or collapse a comment (in the case where it had previously made a comment and now no longer needs to show a comment)
|
|
# it needs `pull-requests: write` in order to manipulate those comments.
|
|
|
|
# Updating pull request branches is managed via comment handling.
|
|
# For details, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-expect-list
|
|
#
|
|
# These elements work together to make it happen:
|
|
#
|
|
# `on.issue_comment`
|
|
# This event listens to comments by users asking to update the metadata.
|
|
#
|
|
# `jobs.update`
|
|
# This job runs in response to an issue_comment and will push a new commit
|
|
# to update the spelling metadata.
|
|
#
|
|
# `with.experimental_apply_changes_via_bot`
|
|
# Tells the action to support and generate messages that enable it
|
|
# to make a commit to update the spelling metadata.
|
|
#
|
|
# `with.ssh_key`
|
|
# In order to trigger workflows when the commit is made, you can provide a
|
|
# secret (typically, a write-enabled github deploy key).
|
|
#
|
|
# For background, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-with-deploy-key
|
|
|
|
# SARIF reporting
|
|
#
|
|
# Access to SARIF reports is generally restricted (by GitHub) to members of the repository.
|
|
#
|
|
# Requires enabling `security-events: write`
|
|
# and configuring the action with `use_sarif: 1`
|
|
#
|
|
# For information on the feature, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-SARIF-output
|
|
|
|
# Minimal workflow structure:
|
|
#
|
|
# on:
|
|
# push:
|
|
# ...
|
|
# pull_request_target:
|
|
# ...
|
|
# jobs:
|
|
# # you only want the spelling job, all others should be omitted
|
|
# spelling:
|
|
# # remove `security-events: write` and `use_sarif: 1`
|
|
# # remove `experimental_apply_changes_via_bot: 1`
|
|
# ... otherwise adjust the `with:` as you wish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
tags-ignore:
|
|
- "**"
|
|
pull_request_target:
|
|
branches:
|
|
- "**"
|
|
types:
|
|
- "opened"
|
|
- "reopened"
|
|
- "synchronize"
|
|
issue_comment:
|
|
types:
|
|
- "created"
|
|
|
|
jobs:
|
|
spelling:
|
|
name: Check Spelling
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
actions: read
|
|
security-events: write
|
|
outputs:
|
|
followup: ${{ steps.spelling.outputs.followup }}
|
|
runs-on: ubuntu-latest
|
|
if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
|
|
concurrency:
|
|
group: spelling-${{ github.event.pull_request.number || github.ref }}
|
|
# note: If you use only_check_changed_files, you do not want cancel-in-progress
|
|
cancel-in-progress: true
|
|
steps:
|
|
- name: check-spelling
|
|
id: spelling
|
|
uses: check-spelling/check-spelling@c635c2f3f714eec2fcf27b643a1919b9a811ef2e # v0.0.25
|
|
with:
|
|
config: .github/actions/spell-check
|
|
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
|
|
checkout: true
|
|
check_file_names: 1
|
|
spell_check_this: microsoft/PowerToys@main
|
|
post_comment: 0
|
|
use_magic_file: 1
|
|
report-timing: 1
|
|
warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check,unclosed-block-ignore-begin,unclosed-block-ignore-end
|
|
experimental_apply_changes_via_bot: 1
|
|
use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
|
|
check_extra_dictionaries: ""
|
|
dictionary_source_prefixes: >
|
|
{
|
|
"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20241114/dictionaries/"
|
|
}
|
|
extra_dictionaries: |
|
|
cspell:software-terms/softwareTerms.txt
|
|
cspell:cpp/stdlib-cpp.txt
|
|
cspell:filetypes/filetypes.txt
|
|
cspell:cpp/stdlib-c.txt
|
|
cspell:lorem-ipsum/dictionary.txt
|
|
cspell:python/python/python-lib.txt
|
|
cspell:php/php.txt
|
|
cspell:fullstack/fullstack.txt
|
|
cspell:dotnet/dotnet.txt
|
|
cspell:swift/swift.txt
|
|
cspell:node/node.txt
|
|
cspell:dart/dart.txt
|
|
cspell:django/django.txt
|
|
cspell:python/python/python.txt
|
|
cspell:powershell/powershell.txt
|
|
cspell:npm/npm.txt
|
|
cspell:golang/go.txt
|
|
cspell:cpp/compiler-msvc.txt
|
|
cspell:csharp/csharp.txt
|
|
cspell:html/html.txt
|
|
cspell:java/java.txt
|
|
cspell:aws/aws.txt
|
|
cspell:typescript/typescript.txt
|
|
cspell:cpp/lang-keywords.txt
|
|
cspell:python/common/extra.txt
|
|
cspell:scala/scala.txt
|
|
cspell:shell/shell-all-words.txt
|
|
cspell:css/css.txt
|
|
cspell:r/r.txt
|
|
cspell:java/java-terms.txt
|
|
cspell:cpp/stdlib-cerrno.txt
|
|
cspell:k8s/k8s.txt
|
|
|
|
comment-push:
|
|
name: Report (Push)
|
|
# If your workflow isn't running on push, you can remove this job
|
|
runs-on: ubuntu-latest
|
|
needs: spelling
|
|
permissions:
|
|
actions: read
|
|
contents: write
|
|
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
|
|
steps:
|
|
- name: comment
|
|
uses: check-spelling/check-spelling@c635c2f3f714eec2fcf27b643a1919b9a811ef2e # v0.0.25
|
|
with:
|
|
config: .github/actions/spell-check
|
|
checkout: true
|
|
spell_check_this: microsoft/PowerToys@main
|
|
task: ${{ needs.spelling.outputs.followup }}
|
|
|
|
comment-pr:
|
|
name: Report (PR)
|
|
# If you workflow isn't running on pull_request*, you can remove this job
|
|
runs-on: ubuntu-latest
|
|
needs: spelling
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
pull-requests: write
|
|
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
|
|
steps:
|
|
- name: comment
|
|
uses: check-spelling/check-spelling@c635c2f3f714eec2fcf27b643a1919b9a811ef2e # v0.0.25
|
|
with:
|
|
config: .github/actions/spell-check
|
|
checkout: true
|
|
spell_check_this: check-spelling/spell-check-this@prerelease
|
|
task: ${{ needs.spelling.outputs.followup }}
|
|
experimental_apply_changes_via_bot: ${{ github.repository_owner != 'microsoft' && 1 }}
|
|
|
|
update:
|
|
name: Update PR
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
actions: read
|
|
runs-on: ubuntu-latest
|
|
if: ${{
|
|
github.repository_owner != 'microsoft' &&
|
|
github.event_name == 'issue_comment' &&
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '@check-spelling-bot apply') &&
|
|
contains(github.event.comment.body, 'https://')
|
|
}}
|
|
concurrency:
|
|
group: spelling-update-${{ github.event.issue.number }}
|
|
cancel-in-progress: false
|
|
steps:
|
|
- name: apply spelling updates
|
|
uses: check-spelling/check-spelling@c635c2f3f714eec2fcf27b643a1919b9a811ef2e # v0.0.25
|
|
with:
|
|
experimental_apply_changes_via_bot: ${{ github.repository_owner != 'microsoft' && 1 }}
|
|
checkout: true
|
|
ssh_key: "${{ secrets.CHECK_SPELLING }}"
|