Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 21, 2024
2 parents e81f471 + 619e989 commit 791430f
Show file tree
Hide file tree
Showing 5 changed files with 1,309 additions and 1,115 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/titleCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
regex="^(feat|fix|docs|chore|style|refactor|perf|test)!?(\([^\)]+\))?:[[:space:]].+"
if [[ "${{ github.event.pull_request.title }}" =~ $regex ]]; then
if [[ "${TITLE}" =~ $regex ]]; then
echo OK
else
echo "::error::Pull Request のタイトルが Conventional Commits 形式にマッチしません"
Expand Down
91 changes: 47 additions & 44 deletions dict/prh-idiomatic-usage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,23 +324,6 @@ rules:
to: あれば
- from: 有ろう
to: あろう
- expected: な$1
pattern:
- /無(い|く|し|か|け)/
prh: |-
平仮名にしたほうが読みやすい漢字は平仮名にする
https://smarthr.design/products/contents/writing-style/
specs:
- from: 無い
to: ない
- from: 無く
to: なく
- from: 無し
to: なし
- from: 無かった
to: なかった
- from: 無ければ
to: なければ
- expected: あわせて
pattern:
- /(?<![を|と|に|へ|は|も|組み|問い|掛け])(合わせて|併せて)/
Expand Down Expand Up @@ -686,6 +669,25 @@ rules:
to: ドラッグアンドドロップ
- from: ドラッグ・ドロップ
to: ドラッグアンドドロップ
- expected: な$1
pattern:
- /無(い|く|し|か|き|け)/
prh: >-
平仮名にしたほうが読みやすい漢字は平仮名にする
https://smarthr.design/products/contents/writing-style/
specs:
- from: 無かった場合
to: なかった場合
- from: 無くなる
to: なくなる
- from: 無いとき
to: ないとき
- from: 無し
to: なし
- from: 無き
to: なき
- from: 無ければ
to: なければ
- expected: ナンバー
pattern:
- /ナンバ(?!ー)/
Expand Down Expand Up @@ -732,7 +734,7 @@ rules:
to: 1つ
- expected: 1人
pattern:
- /(?<!一人)(一人|ひとり)(?!ひとり|称|親)/
- /(?<!一人|同)(一人|ひとり)(?!ひとり|称|親)/
prh: >-
数字は半角の算用数字で表記する
https://smarthr.design/products/contents/idiomatic-usage/usage/
Expand Down Expand Up @@ -871,7 +873,9 @@ rules:
to: ポリシー
- expected: マスターデータ
pattern:
- /(?<!部署|役職|雇用形態|等級|]|スキル|資格|研修|カスタム|システム標準|SmartHR ?|ドメイン)マスタ(?!ー)(データ)?/
- >-
/(?<!部署|役職|雇用形態|等級|]|スキル|資格|研修|カスタム|システム標準|SmartHR
?|ドメイン)マスタ(?!ー)(データ)?/
prh: >-
マスターデータの総称は「マスターデータ」、総称以外は「◯◯マスター」と表記するhttps://smarthr.design/products/contents/idiomatic-usage/usage/
specs:
Expand All @@ -885,8 +889,6 @@ rules:
to: 役職マスター
- from: 雇用形態マスター
to: 雇用形態マスター
- from: 等級マスター
to: 等級マスター
- from: SmartHRマスター
to: SmartHRマスター
- expected: マネージャー
Expand Down Expand Up @@ -1086,13 +1088,6 @@ rules:
specs:
- from: テナント
to: 企業アカウント
- expected: サブドメイン
pattern:
- テナントID
prh: 「テナントID」は社内用語のため、「サブドメイン」に置き換えます。内部的に使用する「tenant_id」はそのまま表記してください。
specs:
- from: テナントID
to: サブドメイン
- expected: 在籍状況
pattern:
- 在職状況
Expand Down Expand Up @@ -1391,10 +1386,10 @@ rules:
to: 部署マスター
- from: 役職マスター
to: 役職マスター
- from: 雇用形態マスター
to: 雇用形態マスター
- from: 等級マスター
to: 等級マスター
- from: 雇用形態マスター
to: 雇用形態マスター
- from: SmartHRマスター
to: SmartHRマスター
- expected: 詳し
Expand Down Expand Up @@ -1455,63 +1450,71 @@ rules:
to: サンプルデータ
- from: ダミーテキスト
to: サンプルテキスト
- expected: 文書配付
pattern:
- 文書配布
specs:
- from: 文書配布
to: 文書配付
- expected: シミュレーション
pattern:
- シュミレーション
specs:
- from: シュミレーション
to: シミュレーション
- expected: 文書配付
pattern:
- 文書配布
specs:
- from: 文書配布
to: 文書配付
- expected: 押せ
pattern:
- 押下でき
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下できる,ボタンを押下できない
to: ボタンを押せる,ボタンを押せない
- from: ボタンを押下できる
to: ボタンを押せる
- from: ボタンを押下できない
to: ボタンを押せない
- expected: 押す
pattern:
- 押下する
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下する
to: ボタンを押す
- expected: 押さない
pattern:
- 押下しない
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下しない
to: ボタンを押さない
- expected: 押せば
pattern:
- 押下すれば
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下すれば
to: ボタンを押せば
- expected: 押します
pattern:
- 押下します
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下します
to: ボタンを押します
- expected: 押した
pattern:
- 押下した
prh: >-
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
プロダクト内でユーザーにボタン押下を促す際は「押す」を使用する
https://smarthr.design/products/contents/idiomatic-usage/usage/#recVAeJr4Di3vQHeA-0
specs:
- from: ボタンを押下した
to: ボタンを押した
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"textlint": "^14.0.4",
"textlint": "^14.2.0",
"textlint-rule-preset-smarthr": "file:.."
}
}
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@
"export:airtable": "ts-node ./scripts/export-airtable-rules.ts"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@textlint/types": "^14.0.4",
"@textlint/types": "^14.2.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^18.19.39",
"@types/node": "^18.19.45",
"airtable": "^0.12.2",
"dotenv": "^16.4.5",
"fs": "^0.0.1-security",
"husky": "^9.0.11",
"husky": "^9.1.5",
"js-yaml": "^4.1.0",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"standard-version": "^9.3.2",
"textlint-tester": "^14.0.4",
"textlint-scripts": "^14.0.4",
"textlint-tester": "^14.2.0",
"textlint-scripts": "^14.2.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.2",
"textlint": "^14.0.4"
"typescript": "^5.5.4",
"textlint": "^14.2.0"
},
"dependencies": {
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.2",
"@textlint/module-interop": "^14.0.4",
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.3",
"@textlint/module-interop": "^14.2.0",
"textlint-rule-ja-hiragana-daimeishi": "^1.0.0",
"textlint-rule-ja-hiragana-hojodoushi": "^1.1.0",
"textlint-rule-ja-keishikimeishi": "^1.0.5",
Expand All @@ -73,7 +73,7 @@
"textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet": "^1.0.1",
"textlint-rule-no-nfd": "^2.0.2",
"textlint-rule-prh": "^6.0.0",
"textlint-rule-sentence-length": "^5.0.0"
"textlint-rule-sentence-length": "^5.2.0"
},
"name": "textlint-rule-preset-smarthr",
"directories": {
Expand Down
Loading

0 comments on commit 791430f

Please sign in to comment.