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

OSOE-525: Collapse spelling annotation #205

Merged
merged 17 commits into from
Feb 20, 2023
Merged

OSOE-525: Collapse spelling annotation #205

merged 17 commits into from
Feb 20, 2023

Conversation

davidpuplava
Copy link
Contributor

@davidpuplava davidpuplava commented Feb 8, 2023

Refactored Spelling action to pass additional inputs to
spell-check-this. Refactored Check Spelling workflow into two jobs.

Each job passes input parameters to support check-spellings 2 stage
design.
@davidpuplava
Copy link
Contributor Author

FYI, this PR is not ready to merge even though "All the checks have passed" - the reason is that the spelling-this-repo.yml workflow file is invalid (I accidentally broke it in this branch). I wonder if there is a way to mark the PR as failed when there are invalid workflows.

@wAsnk
Copy link
Member

wAsnk commented Feb 10, 2023

It's okay, nobody will merge it or review it until it is not requested. Don't worry about that!

Simplify earlier approach by removing unneccesary inputs from
reusable spelling workflow. Remove prior changes to workflow that
spell checks this repository.

Add 2nd job that calls check-spelling action to perform followup
task of commenting or collapsing prior comment on pull requests.
The check-spelling/check-spelling's design assumes two separate
jobs.

The first job does the spelling checking, uploads the comment
as an artifact, then outputs a follow task to either comment or
collapse prior comment on PR. The second job performs the followup
task.

This allows different permissions to be set for each job.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@davidpuplava
Copy link
Contributor Author

Excellent - successfully commented and then subsequently collapsed the spelling annotations on this PR

.github/workflows/spelling.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants