dsh-plugin-cicd 0.0.0-stage → 0.5.1
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.
- package/LICENSE +21 -0
- package/README.md +402 -2
- package/RELEASING.md +63 -0
- package/client.js +4417 -0
- package/cordis.patch.yml +63 -0
- package/icon.svg +8 -0
- package/index.js +4938 -0
- package/lib/bilibili.mjs +1000 -0
- package/lib/config-store.mjs +159 -0
- package/package.json +62 -3
- package/scripts/configure.mjs +213 -0
- package/scripts/push-via-api.ps1 +111 -0
- package/scripts/verify-bundle.mjs +320 -0
- package/tests/bilibili-check.mjs +450 -0
- package/tests/bump-e2e.mjs +431 -0
- package/tests/client-render.mjs +1483 -0
- package/tests/host-checks.mjs +576 -0
- package/tests/mount-check.mjs +300 -0
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# dsh-plugin-cicd bundle patch.
|
|
2
|
+
#
|
|
3
|
+
# One Host row named after the package. The Host half owns the loopback route
|
|
4
|
+
# family `/api/dsh-cicd/*` and shells out to the machine's authenticated `gh`;
|
|
5
|
+
# the browser half is declared by `dsh.client` in package.json and registers the
|
|
6
|
+
# sidebar entry plus the `main` panel.
|
|
7
|
+
#
|
|
8
|
+
# The repository list is deliberately EMPTY here. Which repositories a machine
|
|
9
|
+
# watches is deployment state, not package state: shipping a list would publish
|
|
10
|
+
# one user's private repository names inside a public package, and every install
|
|
11
|
+
# would then need to unpick it.
|
|
12
|
+
#
|
|
13
|
+
# Do not hand-write the list either. `scripts/configure.mjs` owns a JSON file and
|
|
14
|
+
# the panel re-reads it on every request, so a change applies without a restart:
|
|
15
|
+
#
|
|
16
|
+
# node scripts/configure.mjs add <repo> --path <absolute dir>
|
|
17
|
+
#
|
|
18
|
+
# This row therefore carries only the machine-specific bits:
|
|
19
|
+
#
|
|
20
|
+
# - id: dsh-plugin-cicd
|
|
21
|
+
# config:
|
|
22
|
+
# ghPath: 'C:\Program Files\GitHub CLI\gh.exe'
|
|
23
|
+
# owner: your-login
|
|
24
|
+
#
|
|
25
|
+
# Full option list (each has a default, so only write what you change):
|
|
26
|
+
# owner default '' GitHub login for bare `repo` entries
|
|
27
|
+
# repos default [] hand-written fallback; the managed file wins
|
|
28
|
+
# configFile default '' '' = <DSH_HOME>/dsh-plugin-cicd/repos.json
|
|
29
|
+
# projectsRoot default '' where local checkouts live; the panel adds a
|
|
30
|
+
# repository by matching its package.json name there
|
|
31
|
+
# defaultBranch default main ref used when the panel triggers a workflow
|
|
32
|
+
# buildWorkflow default ci.yml the workflow the 构建 button dispatches
|
|
33
|
+
# releaseWorkflow default release.yml
|
|
34
|
+
# ghPath default '' empty = resolve from PATH and common installs
|
|
35
|
+
# requestTimeoutMs default 20000 per `gh` invocation
|
|
36
|
+
# overviewTtlMs default 15000 cache window; the panel polls through it
|
|
37
|
+
# logTailLines default 120 how much of `--log-failed` the panel shows
|
|
38
|
+
# pollSeconds default 30 how often the panel refreshes itself
|
|
39
|
+
# bilibiliEnabled default true the whole Bilibili update-note feature
|
|
40
|
+
# bilibiliAuto default true post automatically when a release goes public;
|
|
41
|
+
# false leaves only the panel's button
|
|
42
|
+
# bilibiliWatchSeconds
|
|
43
|
+
# default 90 how often the Host looks for a newly published
|
|
44
|
+
# release; 0 stops the clock (the sweep after
|
|
45
|
+
# publishing a draft still runs)
|
|
46
|
+
# bilibiliTemplate default '' '' = 【更新 {tag}】{summary}. Placeholders:
|
|
47
|
+
# {tag} {version} {label} {repo} {title}
|
|
48
|
+
# {summary} {url} {date}
|
|
49
|
+
# bilibiliCookieFile
|
|
50
|
+
# default '' '' = the plugin's own file, which the panel's
|
|
51
|
+
# sign-in writes. Point it at biliup's
|
|
52
|
+
# cookies.json to read that instead — but note
|
|
53
|
+
# that biliup logs in as BiliTV, and a comment is
|
|
54
|
+
# a WEB API, so a TV credential answers -101.
|
|
55
|
+
# bilibiliVerifyTtlMs
|
|
56
|
+
# default 300000 how long a credential/video answer is reused
|
|
57
|
+
# enabled default true
|
|
58
|
+
- insert:
|
|
59
|
+
- id: dsh-plugin-cicd
|
|
60
|
+
name: 'dsh-plugin-cicd'
|
|
61
|
+
config:
|
|
62
|
+
owner: ''
|
|
63
|
+
repos: []
|
package/icon.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" role="img" aria-label="Release Console">
|
|
2
|
+
<!-- An isometric package: the same glyph the sidebar entry draws, so the icon
|
|
3
|
+
in the list and the icon on the page are recognisably one thing. -->
|
|
4
|
+
<g fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round">
|
|
5
|
+
<path d="M8 1.6 2.4 4.5v7L8 14.4l5.6-2.9v-7L8 1.6Z" />
|
|
6
|
+
<path d="M2.6 4.6 8 7.3l5.4-2.7M8 7.3v6.9" />
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|