ci: PR差分に対するtextlint検査を追加(差分lint方式) - #712
Closed
kumagoro1202 wants to merge 1 commit into
Closed
Conversation
プロジェクトには textlint + prh 辞書が整備済みだが CI で強制されて おらず、ローカル手動運用のため誤字・表記ゆれの混入を防げていない。 本ワークフローは、プルリクエストで変更された ja 配下の rst ファイル のみを対象に textlint を実行する「差分lint方式」を採用する。 - 既存の全ファイルを対象にすると既存指摘が大量に出て運用不能になる ため、変更ファイルのみを検査対象とする - textlint-plugin-rst の依存(docutils-ast-writer)と npm 依存を インストールして実行する - ファイル一覧はスクリプトインジェクション防止のため環境変数経由で 受け渡す
Contributor
Author
|
CIはGitHub上ではなく別途環境を立てているためGitHub Actionsは使わない。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
プルリクエストで変更された
ja配下の rst ファイルのみを textlint で検査する GitHub Actions ワークフローを追加します。方針: 差分lint方式
変更
.github/workflows/textlint.yml(新規)補足