Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check spelling #177

Merged
merged 6 commits into from
Sep 7, 2023
Merged

Add check spelling #177

merged 6 commits into from
Sep 7, 2023

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Aug 9, 2023

closes #133

@baum
Copy link
Collaborator

baum commented Aug 9, 2023

@jsoref thank you for the awesome PR! Please sign off the commit, see here.
@epuertat The new workflow is green in the fork, WDYT?

Copy link
Member

@epuertat epuertat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @jsoref for your quick response here! I left a few comments over there. Plz let me know your thoughts! Thanks!

.github/workflows/spelling.yml Outdated Show resolved Hide resolved
.github/workflows/spelling.yml Show resolved Hide resolved
.github/workflows/spelling.yml Outdated Show resolved Hide resolved
.github/actions/spelling/candidate.patterns Show resolved Hide resolved
.github/actions/spelling/excludes.txt Show resolved Hide resolved
.github/workflows/spelling.yml Outdated Show resolved Hide resolved
Copy link
Contributor Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to make a push that replaces the tags with shas and switches from checkout: true to using a step w/ uses: actions/checkout@v3

.github/workflows/spelling.yml Outdated Show resolved Hide resolved
.github/workflows/spelling.yml Outdated Show resolved Hide resolved
.github/workflows/spelling.yml Outdated Show resolved Hide resolved
.github/workflows/spelling.yml Show resolved Hide resolved
.github/actions/spelling/candidate.patterns Show resolved Hide resolved
.github/actions/spelling/excludes.txt Show resolved Hide resolved
Copy link
Member

@epuertat epuertat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @jsoref for the thorough work here! LGTM! I'll add a "couple" of folks to review this too.

@gbregman gbregman requested review from gbregman and removed request for gbregman August 15, 2023 16:07
Copy link
Contributor

@gbregman gbregman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@caroav
Copy link
Collaborator

caroav commented Aug 24, 2023

@baum please review too.

@baum
Copy link
Collaborator

baum commented Sep 3, 2023

@jsoref Is it possible to disable automatic content changes and instead opt for a spell-checking mechanism that highlights errors, requiring human intervention for any necessary corrections?

@jsoref
Copy link
Contributor Author

jsoref commented Sep 3, 2023

@baum: check-spelling in this repository won't automatically make content changes -- if actions are enabled in forks, it will suggest them there -- #177 (comment) , but even then it doesn't automatically apply things, it merely suggests them (and its suggestions aren't fixes for typos, it merely assumes that the words people have added are intentional).

That said, if that is too much, I can certainly remove:

experimental_apply_changes_via_bot: ${{ github.repository_owner != 'ceph' && 1 }}

and
update:
name: Update PR
permissions:
contents: write
pull-requests: write
actions: read
runs-on: ubuntu-latest
if: ${{
github.repository_owner != 'ceph' &&
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@check-spelling-bot apply')
}}
concurrency:
group: spelling-update-${{ github.event.issue.number }}
cancel-in-progress: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: apply spelling updates
uses: check-spelling/check-spelling@d7cd2973c513e84354f9d6cf50a6417a628a78ce
with:
experimental_apply_changes_via_bot: 1
ssh_key: "${{ secrets.CHECK_SPELLING }}"

Happy to talk this over on Slack during the week if that's helpful.

@baum
Copy link
Collaborator

baum commented Sep 5, 2023

@baum: check-spelling in this repository won't automatically make content changes -- if actions are enabled in forks, it will suggest them there -- #177 (comment) , but even then it doesn't automatically apply things, it merely suggests them (and its suggestions aren't fixes for typos, it merely assumes that the words people have added are intentional).

That said, if that is too much, I can certainly remove:

experimental_apply_changes_via_bot: ${{ github.repository_owner != 'ceph' && 1 }}

and

update:
name: Update PR
permissions:
contents: write
pull-requests: write
actions: read
runs-on: ubuntu-latest
if: ${{
github.repository_owner != 'ceph' &&
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@check-spelling-bot apply')
}}
concurrency:
group: spelling-update-${{ github.event.issue.number }}
cancel-in-progress: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: apply spelling updates
uses: check-spelling/check-spelling@d7cd2973c513e84354f9d6cf50a6417a628a78ce
with:
experimental_apply_changes_via_bot: 1
ssh_key: "${{ secrets.CHECK_SPELLING }}"

Happy to talk this over on Slack during the week if that's helpful.

@jsoref Thank you for explanation 👍

Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Copy link
Contributor Author

@jsoref jsoref left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ready to go. I'll start watching the repo for a month or so and I'm available by @jsoref or on slack if people run into anything.

.github/workflows/spelling.yml Show resolved Hide resolved
.github/workflows/spelling.yml Show resolved Hide resolved
Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsoref please merge. thank you!

@baum baum merged commit 940f228 into ceph:devel Sep 7, 2023
9 checks passed
@jsoref jsoref deleted the add-check-spelling branch September 7, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add spell-checker
5 participants