Skip to content

Commit 7bec2cc

Browse files
Merge branch 'master' into patch-1
2 parents 9495513 + 5cfcff6 commit 7bec2cc

55 files changed

Lines changed: 6215 additions & 1086 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/report_issue.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,16 @@ body:
3939
- "English: FirstKissNovel"
4040
- "English: AllNovel"
4141
- "English: AllNovelFull"
42+
- "English: Anime Anyway"
4243
- "English: Arcane Translations"
4344
- "English: Archive Of Our Own"
4445
- "English: Srank Manga"
46+
- "English: Baka-Tsuki"
4547
- "English: Belle Reservoir"
4648
- "English: BlumeVerse"
4749
- "English: BoxNovel"
4850
- "English: Cherry Mist Cafe"
51+
- "English: Chikari"
4952
- "English: Chrysanthemum Garden"
5053
- "English: Citrus Aurora"
5154
- "English: Coral Boutique"
@@ -126,14 +129,17 @@ body:
126129
- "English: NovelLib"
127130
- "English: Novelight"
128131
- "English: NovelMultiverse"
132+
- "English: Novel Nice"
129133
- "English: Novel Ninja"
134+
- "English: Novel Phoenix"
130135
- "English: NovelRest"
131136
- "English: NovelsKnight"
132137
- "English: NovelTranslate"
133138
- "English: Novel Updates"
134139
- "English: Panda Machine Translations"
135140
- "English: Pastel Tales"
136141
- "English: PawRead"
142+
- "English: Peach Puff Translations"
137143
- "English: Penguin Squad"
138144
- "English: Prizma"
139145
- "English: Rainofsnow"
@@ -178,14 +184,17 @@ body:
178184
- "English: Zetro Translation"
179185
- "Français: Chireads"
180186
- "Français: HarkenEliwood"
187+
- "Français: J-Garden"
181188
- "Français: KissWood"
182189
- "Français: Ligh Novel FR"
190+
- "Français: LightNovelVF"
183191
- "Français: MassNovel"
184192
- "Français: MTL Novel (FR)"
185193
- "Français: NovelDeGlace"
186194
- "Français: NovelFrance"
187195
- "Français: Novhell"
188196
- "Français: Re:Zero Web Novel FR"
197+
- "Français: Trad-Index"
189198
- "Français: Warrior Legend Trad"
190199
- "Français: WorldNovel"
191200
- "Français: WuxiaLnScantrad"

.github/scripts/keys.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Plugin Live Check
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
workflow_dispatch:
7+
inputs:
8+
plugin_path:
9+
description: 'Plugin file(s) to check (space-separated relative paths)'
10+
required: true
11+
type: string
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
live-check:
19+
name: Plugin Live Check
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Get Changed Plugin Files
32+
id: changed-files
33+
if: github.event_name == 'pull_request'
34+
uses: tj-actions/changed-files@v45
35+
with:
36+
files: |
37+
plugins/**/*.ts
38+
files_ignore: |
39+
plugins/**/*\[*\]*.ts
40+
plugins/multisrc/**
41+
42+
- name: Determine Targets
43+
id: targets
44+
if: github.event_name == 'workflow_dispatch' || steps.changed-files.outputs.any_changed == 'true'
45+
run: |
46+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
47+
echo "files=${{ inputs.plugin_path }}" >> "$GITHUB_OUTPUT"
48+
else
49+
echo "files=${{ steps.changed-files.outputs.all_changed_files }}" >> "$GITHUB_OUTPUT"
50+
fi
51+
52+
- name: Setup Node.js
53+
if: steps.targets.outputs.files != ''
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: '20'
57+
cache: 'npm'
58+
59+
- name: Install Dependencies
60+
if: steps.targets.outputs.files != ''
61+
run: npm ci
62+
63+
# Multisrc-generated files (plugins/**/*[...].ts) are excluded above.
64+
# They're produced from plugins/multisrc/*/template.ts + sources.json,
65+
# not hand-authored, so testing the generator is out of scope here.
66+
- name: Run Live Check
67+
id: live-check
68+
if: steps.targets.outputs.files != ''
69+
run: |
70+
set +e
71+
node scripts/live-check-plugin.js ${{ steps.targets.outputs.files }} > live-check-output.txt 2>&1
72+
echo "exit_code=$?" >> "$GITHUB_OUTPUT"
73+
cat live-check-output.txt
74+
cat live-check-output.txt >> "$GITHUB_STEP_SUMMARY"
75+
76+
- name: Fail On Real Errors
77+
if: steps.targets.outputs.files != '' && steps.live-check.outputs.exit_code != '0'
78+
run: |
79+
echo "Live check reported at least one FAIL — see the job log or workflow summary."
80+
exit 1

.github/workflows/update-issue-template.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
permissions:
2121
contents: write
22-
pull-requests: write
2322
if: |
2423
github.repository == 'LNReader/lnreader-plugins' &&
2524
github.event.workflow_run.conclusion == 'success' &&
@@ -38,16 +37,15 @@ jobs:
3837
- name: Generate Issue Template Options
3938
run: node ./.github/scripts/generate-issue-template-options.cjs
4039

41-
- name: Create Or Update Pull Request
42-
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
43-
with:
44-
commit-message: 'chore: Update Issue Template Plugin Options [skip ci]'
45-
branch: 'update-issue-template'
46-
title: 'chore: Update Issue Template Plugin Options [skip ci]'
47-
body: |
48-
Updates the issue template with the latest plugin dropdown options.
40+
- name: Commit And Push Changes
41+
run: |
42+
if git diff --quiet -- .github/ISSUE_TEMPLATE/report_issue.yml .github/scripts/keys.json; then
43+
echo "No issue template changes to commit." >> "$GITHUB_STEP_SUMMARY"
44+
exit 0
45+
fi
4946
50-
This PR is automatically generated after plugins are published.
51-
labels: 'bot'
52-
base: 'master'
53-
delete-branch: true
47+
git config user.name "github-actions[bot]"
48+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
49+
git add .github/ISSUE_TEMPLATE/report_issue.yml .github/scripts/keys.json
50+
git commit -m "chore: Update Issue Template Plugin Options [skip ci]"
51+
git push origin HEAD:master

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Community-driven plugin repository for [LNReader](https://github.com/LNReader/ln
1010

1111
## Quick Start
1212

13-
**Prerequisites:** Node.js >= 22
13+
**Prerequisites:** Node.js >= 22
1414

1515
```bash
1616
npm install
@@ -22,6 +22,7 @@ npm run dev:start
2222
- **[Quick Start Guide](./docs/quickstart.md)** - Create your first plugin
2323
- **[Plugin Development](./docs/docs.md)** - Complete API reference
2424
- **[Testing Guide](./docs/website-tutorial.md)** - Test plugins using the web interface
25+
- **[Live Check](./docs/testing.md)** - Required `npm run check:plugin` check before opening a PR
2526
- **[Komga Plugin](./docs/komga-plugin.md)** - Self-hosted server integration
2627

2728
## Testing Methods

0 commit comments

Comments
 (0)