Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
1fb3ef4
data_validatorの不整合検出時にPRコメントへ内訳を投稿する (#1406)
TinyKitten Mar 5, 2026
64b2b23
ci: use pull_request_target to fix token permissions (#1407)
TinyKitten Mar 5, 2026
ce5b4b8
ci: fix PR number resolution with artifact fallback (#1408)
TinyKitten Mar 5, 2026
fad371d
ci: ブランチベースのPRラベラーを導入し、labelerをv5に更新 (#1409)
TinyKitten Mar 5, 2026
63b86ca
Add katakana to IPA conversion for SSML phoneme tags (#1410)
TinyKitten Mar 5, 2026
aaf82cf
fix: handle full-width space in katakana-to-IPA conversion (#1411)
TinyKitten Mar 5, 2026
487af67
fix: 路線名IPAから共通接尾辞(線/本線/支線)を除去 (#1412)
TinyKitten Mar 5, 2026
945a1ba
fix: replace line-name suffixes with English IPA instead of stripping…
TinyKitten Mar 5, 2026
9d5ac81
Revert "fix: replace line-name suffixes with English IPA instead of s…
TinyKitten Mar 5, 2026
9bc9162
近鉄種別修正 (#1405)
mittan12 Mar 6, 2026
badeb9f
fix: replace line-name suffixes with English IPA instead of stripping…
TinyKitten Mar 6, 2026
8fb5c84
test: add name_ipa unit tests for Line DTO conversion (#1416)
TinyKitten Mar 6, 2026
d602572
fix: 名前検索RPCのローマ字検索をcase-insensitiveに変更 (#1417)
TinyKitten Mar 6, 2026
4de3289
fix: IPA生成でエ段の母音をɛからeに変更しGoogle TTSの発音を修正 (#1418)
TinyKitten Mar 6, 2026
fb3827e
fix: IPA母音長音化ルールを削除しGoogle TTSの誤読を修正 (#1419)
TinyKitten Mar 7, 2026
8efa9db
名鉄線英語駅名修正 (#1420)
TinyKitten Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
ci/cd:
- ".github/workflows/*"
- ".github/*.yml"
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/*"
- ".github/*.yml"
rust:
- "src/*"
- "src/**/*"
- changed-files:
- any-glob-to-any-file:
- "src/*"
- "src/**/*"
protobuf:
- "proto/*"
- "proto/**/*"
deploy-prod:
- "master"
deploy-staging:
- "staging"
deploy-dev:
- "dev"
- changed-files:
- any-glob-to-any-file:
- "proto/*"
- "proto/**/*"
documentation:
- ".github/ISSUE_TEMPLATE/*"
- "pull_request_template.md"
- changed-files:
- any-glob-to-any-file:
- ".github/ISSUE_TEMPLATE/*"
- "pull_request_template.md"
data:
- "*.csv"
- changed-files:
- any-glob-to-any-file:
- "*.csv"
10 changes: 9 additions & 1 deletion .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Head branch (source) patterns
feature: feature/*
fix: fix/*
chore: chore/*
chore: chore/*
data: data/*
release: release/*

# Base branch (target) patterns
deploy:production: master
deploy:dev: dev
deploy:staging: staging
17 changes: 15 additions & 2 deletions .github/workflows/pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,25 @@ on:
- pull_request_target

jobs:
triage:
label-by-files:
name: Label by changed files
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

label-by-branch:
name: Label by branch
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/pr-labeler.yml
34 changes: 33 additions & 1 deletion .github/workflows/verify_data_Integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,42 @@ on:

name: Verify station data integrity

permissions:
contents: read

jobs:
verify_migration_data:
name: Verify pushed migration data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo run --bin data_validator

- name: Run data validator
id: validate
run: |
if cargo run --bin data_validator; then
echo "result=success" >> "$GITHUB_OUTPUT"
else
echo "result=failure" >> "$GITHUB_OUTPUT"
fi

- name: Save metadata for comment workflow
if: always() && github.event_name == 'pull_request'
run: |
mkdir -p /tmp/validation-artifacts
echo "${{ github.event.pull_request.number }}" > /tmp/validation-artifacts/pr_number
echo "${{ steps.validate.outputs.result }}" > /tmp/validation-artifacts/result
if [ -f /tmp/validation_report.md ]; then
cp /tmp/validation_report.md /tmp/validation-artifacts/
fi

- name: Upload validation artifacts
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: validation-result
path: /tmp/validation-artifacts/

- name: Fail job if validation failed
if: steps.validate.outputs.result == 'failure'
run: exit 1
69 changes: 69 additions & 0 deletions .github/workflows/verify_data_integrity_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Post data validation comment

on:
workflow_run:
workflows: ["Verify station data integrity"]
types: [completed]

permissions:
actions: read
pull-requests: write
issues: write

jobs:
comment:
name: Post validation result comment
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: validation-result
path: /tmp/validation-artifacts
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: Read metadata
id: meta
run: |
PR_NUMBER="${{ github.event.workflow_run.pull_requests[0].number }}"
if [ -z "$PR_NUMBER" ] && [ -s /tmp/validation-artifacts/pr_number ]; then
PR_NUMBER=$(cat /tmp/validation-artifacts/pr_number)
echo "::warning::pull_requests context empty, using artifact fallback"
fi
if [ -z "$PR_NUMBER" ]; then
echo "::error::Could not determine PR number"
exit 1
fi
echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"

if [ -s /tmp/validation-artifacts/result ]; then
echo "result=$(cat /tmp/validation-artifacts/result)" >> "$GITHUB_OUTPUT"
else
echo "::error::Missing or empty result metadata"
exit 1
fi

- name: Find existing comment
uses: peter-evans/find-comment@v3
id: find_comment
with:
issue-number: ${{ steps.meta.outputs.pr_number }}
comment-author: "github-actions[bot]"
body-includes: "<!-- data-validator -->"

- name: Post or update validation failure comment
if: steps.meta.outputs.result == 'failure'
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ steps.meta.outputs.pr_number }}
comment-id: ${{ steps.find_comment.outputs.comment-id }}
body-path: /tmp/validation-artifacts/validation_report.md
edit-mode: replace

- name: Delete comment if validation passed
if: steps.meta.outputs.result == 'success' && steps.find_comment.outputs.comment-id != ''
run: gh api repos/${{ github.repository }}/issues/comments/${{ steps.find_comment.outputs.comment-id }} -X DELETE
env:
GH_TOKEN: ${{ github.token }}
37 changes: 14 additions & 23 deletions .github/workflows/visualize_stopping_patterns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:

permissions:
contents: read
pull-requests: write
issues: write

jobs:
visualize:
Expand All @@ -34,26 +32,19 @@ jobs:
BASE_REF="origin/${{ github.event.pull_request.base.ref }}" \
python3 .github/scripts/visualize_stopping_patterns.py

- name: Find existing comment
- name: Save metadata for comment workflow
if: always()
uses: peter-evans/find-comment@v3
id: find_comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "<!-- station-visualizer -->"

- name: Post or update comment
if: steps.visualize.outputs.has_changes == 'true'
uses: peter-evans/create-or-update-comment@v4
run: |
mkdir -p /tmp/visualize-artifacts
echo "${{ github.event.pull_request.number }}" > /tmp/visualize-artifacts/pr_number
echo "${{ steps.visualize.outputs.has_changes }}" > /tmp/visualize-artifacts/has_changes
if [ -f /tmp/visualization_comment.md ]; then
cp /tmp/visualization_comment.md /tmp/visualize-artifacts/
fi

- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
issue-number: ${{ github.event.pull_request.number }}
comment-id: ${{ steps.find_comment.outputs.comment-id }}
body-path: /tmp/visualization_comment.md
edit-mode: replace

- name: Delete comment if no changes
if: steps.visualize.outputs.has_changes == 'false' && steps.find_comment.outputs.comment-id != ''
run: gh api repos/${{ github.repository }}/issues/comments/${{ steps.find_comment.outputs.comment-id }} -X DELETE
env:
GH_TOKEN: ${{ github.token }}
name: visualization-result
path: /tmp/visualize-artifacts/
71 changes: 71 additions & 0 deletions .github/workflows/visualize_stopping_patterns_comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Post stopping pattern visualization comment

on:
workflow_run:
workflows: ["Visualize Stopping Patterns"]
types: [completed]

permissions:
actions: read
pull-requests: write
issues: write

jobs:
comment:
name: Post visualization comment
runs-on: ubuntu-latest
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'pull_request'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: visualization-result
path: /tmp/visualize-artifacts
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: Read metadata
id: meta
run: |
PR_NUMBER="${{ github.event.workflow_run.pull_requests[0].number }}"
if [ -z "$PR_NUMBER" ] && [ -s /tmp/visualize-artifacts/pr_number ]; then
PR_NUMBER=$(cat /tmp/visualize-artifacts/pr_number)
echo "::warning::pull_requests context empty, using artifact fallback"
fi
if [ -z "$PR_NUMBER" ]; then
echo "::error::Could not determine PR number"
exit 1
fi
echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"

if [ -s /tmp/visualize-artifacts/has_changes ]; then
echo "has_changes=$(cat /tmp/visualize-artifacts/has_changes)" >> "$GITHUB_OUTPUT"
else
echo "::warning::has_changes metadata missing or empty, defaulting to false"
echo "has_changes=false" >> "$GITHUB_OUTPUT"
fi

- name: Find existing comment
uses: peter-evans/find-comment@v3
id: find_comment
with:
issue-number: ${{ steps.meta.outputs.pr_number }}
comment-author: "github-actions[bot]"
body-includes: "<!-- station-visualizer -->"

- name: Post or update comment
if: steps.meta.outputs.has_changes == 'true'
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ steps.meta.outputs.pr_number }}
comment-id: ${{ steps.find_comment.outputs.comment-id }}
body-path: /tmp/visualize-artifacts/visualization_comment.md
edit-mode: replace

- name: Delete comment if no changes
if: steps.meta.outputs.has_changes == 'false' && steps.find_comment.outputs.comment-id != ''
run: gh api repos/${{ github.repository }}/issues/comments/${{ steps.find_comment.outputs.comment-id }} -X DELETE
env:
GH_TOKEN: ${{ github.token }}
Loading
Loading