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

ci: lint automation using github workflow textlint_lint.yml and lint-staged (#926 #971) #1048

Merged
merged 4 commits into from
Sep 22, 2024

Conversation

lumirlumir
Copy link
Collaborator

@lumirlumir lumirlumir commented Sep 20, 2024

안녕하세요😊 textlint를 이용한 lint 검증 자동화를 완료하였습니다.

아직 모든 translate glossary가 포함된건 아니지만, 지금까지 70% 정도 진행된 내용을 바탕으로 검증되도록 하였습니다.

변경 내용은 아래와 같습니다.

  1. textlint_lint.yml

    • 파일 이름 및 변수 이름들은 기존 workflows 들과 동일한 컨벤션을 사용하여 명명하였습니다.
    • src 하위 디렉토리의 마크다운 파일들이 변경되었을 때, textlint 관련 파일들이 변경되었을 때, 현재 워크플로 파일이 변경되었을 때 검사를 진행합니다.
  2. package.json

    • lint-staged에 yarn textlint-lint 스크립트를 추가하여, pre-commit 훅에서 자동 검증이 진행되도록 하였습니다.

Note

현재 PR에서 workflow가 정상 동작합니다.

image

resolve: #926, #971

@hg-pyun

Progress

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ko-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Sep 20, 2024 2:24pm

Copy link

github-actions bot commented Sep 20, 2024

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link
Member

@hg-pyun hg-pyun left a comment

Choose a reason for hiding this comment

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

LGTM

@lumirlumir lumirlumir merged commit f4037e1 into reactjs:main Sep 22, 2024
6 checks passed
@lumirlumir lumirlumir deleted the ci-textlint-lint-automation branch September 22, 2024 06:24
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.

[Suggestion]: Is textlint deprecated? [Suggestion]: Translate-Glossary 검증 자동화
2 participants