Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
translations:
- any:
- changed-files:
- any-glob-to-any-file: 'src/lang/*.json'

docs:
- any:
- changed-files:
- any-glob-to-any-file: '**/*.md'

enhancement:
- any:
- head-branch: ['^feature', 'feature', '^feat', '^add']
17 changes: 17 additions & 0 deletions .github/workflows/add-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add Pull Requests Labels
on:
pull_request_target:
types: [opened]

jobs:
add-labels:
timeout-minutes: 5
runs-on: ubuntu-latest

if: github.event.action == 'opened'
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v6
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,34 @@ jobs:

- name: Run Biome
run: biome ci .

translation-check:
name: Translation Check (On PR Only)
timeout-minutes: 5
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
if: github.event_name == 'pull_request'
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Use Node.js
uses: actions/setup-node@v5
with:
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Detect Changed Files
uses: dorny/paths-filter@v3
id: file-changes
with:
list-files: shell
filters: |
translation:
- 'src/lang/*.json'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Translation Files Check (if changed)
if: steps.file-changes.outputs.translation == 'true'
run: |
npm run lint check