ep_padlist2 2.1.83 → 2.1.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,12 @@ name: Dependabot Automerge
|
|
|
2
2
|
permissions:
|
|
3
3
|
contents: write
|
|
4
4
|
pull-requests: write
|
|
5
|
+
# `actions: write` lets the post-merge step kick off Node.js Package on
|
|
6
|
+
# the default branch via `gh workflow run`. Without this, automerge'd
|
|
7
|
+
# PRs land on main but the on-push release job never fires (GitHub
|
|
8
|
+
# Actions intentionally suppresses on:push triggers when the push is
|
|
9
|
+
# authenticated with GITHUB_TOKEN).
|
|
10
|
+
actions: write
|
|
5
11
|
on:
|
|
6
12
|
workflow_run:
|
|
7
13
|
workflows:
|
|
@@ -21,6 +27,7 @@ jobs:
|
|
|
21
27
|
uses: actions/checkout@v6
|
|
22
28
|
|
|
23
29
|
- name: Automerge
|
|
30
|
+
id: automerge
|
|
24
31
|
uses: "pascalgn/automerge-action@v0.16.4"
|
|
25
32
|
env:
|
|
26
33
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -28,3 +35,11 @@ jobs:
|
|
|
28
35
|
MERGE_LABELS: ""
|
|
29
36
|
MERGE_RETRY_SLEEP: "100000"
|
|
30
37
|
|
|
38
|
+
- name: Trigger release on default branch
|
|
39
|
+
# `pascalgn/automerge-action` exits 0 whether or not it merged. Skip
|
|
40
|
+
# the dispatch when nothing was actually merged so we don't kick a
|
|
41
|
+
# phantom release run on every Dependabot Automerge invocation.
|
|
42
|
+
if: steps.automerge.outputs.mergeResult == 'merged'
|
|
43
|
+
env:
|
|
44
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
run: gh workflow run test-and-release.yml --ref ${{ github.event.repository.default_branch }}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
name: Node.js Package
|
|
2
|
-
on:
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
# Invoked by automerge.yml after a Dependabot PR is merged. GitHub
|
|
5
|
+
# Actions doesn't fire on:push when the push is authored by GITHUB_TOKEN
|
|
6
|
+
# (the automerge action's only available identity), so without this
|
|
7
|
+
# dispatch trigger the release job never runs after auto-merges.
|
|
8
|
+
workflow_dispatch:
|
|
3
9
|
|
|
4
10
|
# id-token: write must be granted here so the reusable npmpublish workflow
|
|
5
11
|
# can request an OIDC token for npm trusted publishing.
|
package/AGENTS.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Agent Guide — ep_padlist2
|
|
2
|
+
|
|
3
|
+
Etherpad plugin to display a list of pads.
|
|
4
|
+
|
|
5
|
+
## Tech stack
|
|
6
|
+
|
|
7
|
+
* Etherpad plugin framework (hooks declared in `ep.json`)
|
|
8
|
+
* EJS templates rendered server-side via `eejsBlock_*` hooks
|
|
9
|
+
* html10n for i18n (`locales/<lang>.json`, `data-l10n-id` in templates)
|
|
10
|
+
|
|
11
|
+
## Project structure
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
ep_padlist2/
|
|
15
|
+
├── AGENTS.md
|
|
16
|
+
├── CONTRIBUTING.md
|
|
17
|
+
├── ep.json
|
|
18
|
+
├── index.js
|
|
19
|
+
├── locales/
|
|
20
|
+
│ ├── ar.json
|
|
21
|
+
│ ├── bn.json
|
|
22
|
+
│ ├── ca.json
|
|
23
|
+
│ ├── cs.json
|
|
24
|
+
│ ├── cy.json
|
|
25
|
+
│ ├── de.json
|
|
26
|
+
│ └── ...
|
|
27
|
+
├── package.json
|
|
28
|
+
├── static/
|
|
29
|
+
│ ├── css/
|
|
30
|
+
│ ├── js/
|
|
31
|
+
│ ├── tests/
|
|
32
|
+
├── templates/
|
|
33
|
+
│ ├── pads.html
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Helpers used
|
|
37
|
+
|
|
38
|
+
_None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Helpers NOT used
|
|
42
|
+
|
|
43
|
+
_To be audited in the helpers-adoption sweep (Phase 4)._
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Running tests locally
|
|
47
|
+
|
|
48
|
+
`ep_padlist2` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_padlist2`:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Backend (Mocha) — harness boots its own server
|
|
52
|
+
pnpm --filter ep_etherpad-lite run test
|
|
53
|
+
|
|
54
|
+
# Playwright — needs `pnpm run dev` in a second terminal
|
|
55
|
+
pnpm --filter ep_etherpad-lite run test-ui
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Standing rules for agent edits
|
|
59
|
+
|
|
60
|
+
* PRs target `main`. Linear commits, no merge commits.
|
|
61
|
+
* Every bug fix includes a regression test in the same commit.
|
|
62
|
+
* All user-facing strings in `locales/`. No hardcoded English in templates.
|
|
63
|
+
* No hardcoded `aria-label` on icon-only controls — etherpad's html10n auto-populates `aria-label` from the localized string when (a) the element has a `data-l10n-id` and (b) no author-supplied `aria-label` is present. Adding a hardcoded English `aria-label` blocks that and leaves it untranslated. (See `etherpad-lite/src/static/js/vendors/html10n.ts:665-678`.)
|
|
64
|
+
* No nested interactive elements (no `<button>` inside `<a>`).
|
|
65
|
+
* LLM/Agent contributions are explicitly welcomed by maintainers.
|
|
66
|
+
|
|
67
|
+
## Quick reference: hooks declared in `ep.json`
|
|
68
|
+
|
|
69
|
+
* Server: `expressCreateServer`, `eejsBlock_indexWrapper`
|
|
70
|
+
|
|
71
|
+
When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
|