blueprint-shared-templates 0.5.1 → 0.6.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.
@@ -8,14 +8,14 @@
8
8
  | `.github/ISSUE_TEMPLATE/*.yml` | bug、feature、hotfix 三種 Issue |
9
9
  | `releases/release-plan.md` | 一版一份的發布規劃範本,複製成主檔的 `releases/release-plan-v{X.Y.Z}.md`。維護型發布規劃由 `scripts/release/plan.sh maintenance` 寫出,不從這份範本複製 |
10
10
  | `.github/CODEOWNERS.example` | 複製成 `.github/CODEOWNERS`,列出版號與發布相關檔案的審查者。`scripts/hooks/pre-push` 也讀它,推上 main 的變更碰到這些路徑時擋下,改走 PR |
11
- | `scripts/hooks/commit-msg`、`scripts/hooks/pre-push` | 訊息格式與 AI 平台署名的檢查,推送預設分支前再查一次推送範圍的訊息並跑建置測試。由 `scripts/setup/git-hooks.sh` 設定 `core.hooksPath`,使用者在自己的終端機執行(代理執行會被權限規則擋下) |
11
+ | `scripts/hooks/commit-msg`、`scripts/hooks/pre-push` | 訊息格式與 AI 平台署名的檢查,推送預設分支前再查一次推送範圍的訊息並跑建置測試。`scripts/setup/git-hooks.sh` 在 `.git/hooks/` 放兩個轉呼叫檔交給它們,不設倉內的 `core.hooksPath`,所以機器的全域 hook 照常跑。它由 `pnpm install` 的 `prepare` 執行,使用者在自己的終端機執行(代理執行會被權限規則擋下) |
12
12
  | `.github/workflows/main-commit-check.yml` | 每天核對預設分支前一天的 commit 訊息格式與 AI 平台署名,呼叫 `scripts/ci/check-main-commits.sh` |
13
13
  | `.github/workflows/pr-message.yml` | PR 標題與內文的同一組檢查,squash 後標題與內文就是 commit 訊息 |
14
14
  | `scripts/setup/github-repo-settings.sh`、`scripts/setup/github-repo-settings.json` | 把倉庫鎖定成只允許 squash 合併、合併後刪分支,並設定 Actions 產物與 log 的保留天數。值寫在旁邊的 JSON。可以一次指定多個倉。`--dry-run` 只印要送的請求,套用前先讀現值,已相同的設定不送 |
15
15
 
16
16
  訊息檢查的腳本在 `scripts/ci/`:`check-pr-title.sh`、`check-commit-body.sh`、`check-main-commits.sh` 與 `ai-attribution-list.txt`。
17
17
 
18
- `pre-push` 檢查推上 main 的 commit:訊息格式與 AI 平台署名、每個 commit 只動一個發布單元、不碰 `.github/CODEOWNERS` 列的治理路徑、沒有破壞性變更,通過後跑 `scripts/ci/run-affected.sh` 的 lint、build、test。`core.hooksPath` 寫相對路徑時,在 linked worktree 裡會指到那個 worktree 底下的 `scripts/hooks/`。
18
+ `pre-push` 檢查推上 main 的 commit:訊息格式與 AI 平台署名、每個 commit 只動一個發布單元、不碰 `.github/CODEOWNERS` 列的治理路徑、沒有破壞性變更,通過後跑 `scripts/ci/run-affected.sh` 的 lint、build、test。轉呼叫檔交給所在工作樹根的 `scripts/hooks/<name>`,所以在 linked worktree 裡跑的是那個 worktree 自己的 hook。機器設了全域 `core.hooksPath` 時,git 只跑全域那組,那組會轉給 `.git/hooks/<name>` 時,倉的 hook 才會跑。
19
19
 
20
20
  每日核對 workflow 的 runner 讀倉庫變數 `LINUX_RUNNER`,沒設時用 self-hosted 的 `self-hosted-linux`。改用其他 runner 時,只要有 git 與 bash 4 就能跑。倉庫沒有 self-hosted runner 時,把 `LINUX_RUNNER` 設成 `ubuntu-latest`。
21
21
 
@@ -22,6 +22,19 @@ AUDIT_LOG="$TASK_DIR/external-ops.log"
22
22
  CONFIG="release-please-config.json"
23
23
  MANIFEST=".release-please-manifest.json"
24
24
 
25
+ # config_dirs_with <marker file> → "<path>\t<component>" per package of release-please-config.json whose directory
26
+ # (path relative to the repository root) holds that file; the component is the unit name. Prints nothing without the
27
+ # config. The facts and docs steps use it to find a single-layer package wherever it sits, so the config stays the one
28
+ # list of units and no directory name is hard-coded.
29
+ config_dirs_with() {
30
+ [[ -f "$REPO_ROOT/$CONFIG" ]] || return 0
31
+ local p c
32
+ while IFS=$'\t' read -r p c; do
33
+ [[ "$p" != "." && -f "$REPO_ROOT/$p/$1" ]] && printf '%s\t%s\n' "$p" "$c"
34
+ done < <(jq -r '.packages | to_entries[] | [.key, (.value.component // (.key | split("/") | last))] | @tsv' "$REPO_ROOT/$CONFIG")
35
+ return 0
36
+ }
37
+
25
38
  log() { printf '%s\n' "→ $*"; }
26
39
  info() { printf '%s\n' " $*"; }
27
40
  warn() { printf '%s\n' "! $*" >&2; }
@@ -14,7 +14,7 @@
14
14
  // has a path filter: when none of the changed files matches, that workflow did not run and the check
15
15
  // counts as skipped. reviewPaths are the CODEOWNERS style paths (blueprint-shared.git-flow.review-paths) that need
16
16
  // a review; empty or missing means no pull request needs one here. syncPr is { author, branch }: the
17
- // pull request that blueprint opens in a demo repository (blueprint.sync.pull-request), which needs no review.
17
+ // pull request that the repository that holds the templates opens in a demonstration repository to bring it up to date, which needs no review.
18
18
  // pr also needs author ({ login, is_bot }) and latestReviews ([{ state }]) from `gh pr view --json`.
19
19
  // Output: one JSON line { action, reason, ... }. action is "merge", "merge-release-pr" or "skip". A skip because a
20
20
  // required check failed also lists those checks in failed.
@@ -96,7 +96,7 @@ export function decide({ pr, checkedSha, checks = [], changedFiles = [] }, confi
96
96
  if (missing.length > 0) return skip(`required check has not run: ${missing.join(", ")}`, { pr: number });
97
97
 
98
98
  const release = pr.headRefName.startsWith(RELEASE_PR_HEAD);
99
- // A change to a review path needs an approving review, except a sync pull request (blueprint.merge.sync-pr-review-exempt)
99
+ // A change to a review path needs an approving review, except a sync pull request (the pull request that brings a demonstration repository up to date)
100
100
  // and a Release PR, which merge-release-pr.sh merges on a machine. The required checks above still have to pass for all of them.
101
101
  if (!release && !isSyncPr(pr, config.syncPr) && touchesReviewPath(changedFiles, config.reviewPaths)) {
102
102
  const states = (pr.latestReviews ?? []).map((r) => r.state);
@@ -1,8 +1,20 @@
1
1
  #!/usr/bin/env bash
2
- # Point git at the repository's hooks (scripts/hooks), which guard the local lane into main. Runs from
3
- # pnpm's prepare on every install, so a fresh clone is guarded without a separate step. A repository that
4
- # only takes changes through PRs drops the prepare script from package.json and runs
5
- # git config --unset core.hooksPath.
2
+ # Puts forwarding files for commit-msg and pre-push into the repository's common hooks directory
3
+ # ($(git rev-parse --git-common-dir)/hooks, which linked worktrees share). Each one hands its arguments and
4
+ # stdin to scripts/hooks/<name> of the working tree it runs in, which guard the local lane into main, and
5
+ # exits 0 when that file is missing or not executable. Runs from pnpm's prepare on every install, so a fresh
6
+ # clone is guarded without a separate step.
7
+ #
8
+ # The repository's core.hooksPath stays unset: a value there overrides a hooksPath the machine set globally,
9
+ # and the machine's hooks would stop running. A machine that sets a global hooksPath runs only those hooks;
10
+ # the repository's hooks run when those hand over to .git/hooks/<name>. An older version of this script set
11
+ # core.hooksPath to scripts/hooks in the shared config; that exact value is removed, any other value (or one
12
+ # in a worktree's own config) stays and is reported, since it hides the forwarding files. A file of the same
13
+ # name in the hooks directory that this script did not write (no marker on line 2) is left alone and the
14
+ # script exits non-zero. Outside a working tree (a bare repository, an unpacked tarball) it does nothing.
15
+ #
16
+ # A repository that only takes changes through PRs drops the prepare script from package.json and deletes
17
+ # .git/hooks/commit-msg and .git/hooks/pre-push.
6
18
  #
7
19
  # Also sets commit.cleanup scissors. Messages use "## " section headings (docs/git-flow.md, commit 與 PR
8
20
  # 訊息格式); when a message is written in the editor, git's default cleanup (strip) deletes every line
@@ -10,7 +22,65 @@
10
22
  # places below a scissors line. Messages given with -m or -F are not edited and keep "#" lines either way.
11
23
  # usage: git-hooks.sh
12
24
  set -euo pipefail
13
- git rev-parse --is-inside-work-tree >/dev/null 2>&1 || exit 0 # a packed tarball has no git
14
- git config core.hooksPath scripts/hooks
25
+ # A bare repository prints false with status 0, so compare the output.
26
+ [[ "$(git rev-parse --is-inside-work-tree 2>/dev/null || true)" == true ]] || exit 0
27
+
28
+ marker='# managed by scripts/setup/git-hooks.sh'
29
+ names="commit-msg pre-push"
30
+ common="$(git rev-parse --path-format=absolute --git-common-dir)"
31
+ hooks="$common/hooks"
32
+
33
+ foreign=""
34
+ for name in $names; do
35
+ file="$hooks/$name"
36
+ if [[ -e "$file" || -L "$file" ]] && [[ "$(sed -n 2p "$file" 2>/dev/null)" != "$marker"* ]]; then
37
+ foreign="$foreign $file"$'\n'
38
+ fi
39
+ done
40
+ if [[ -n "$foreign" ]]; then
41
+ {
42
+ printf '%s\n' "git-hooks.sh:下列檔不是這支腳本放的,沒有覆寫:"
43
+ printf '%s' "$foreign"
44
+ printf '%s\n' "處理方式:確認它的用途,把要保留的檢查併進 scripts/hooks/ 的同名檔後刪掉它,或改由那支檔呼叫 scripts/hooks/<name>,再跑一次 pnpm install。"
45
+ } >&2
46
+ exit 1
47
+ fi
48
+
49
+ if [[ "$(git config --file "$common/config" --get core.hooksPath || true)" == scripts/hooks ]]; then
50
+ git config --file "$common/config" --unset core.hooksPath
51
+ printf '%s\n' "git-hooks.sh:移除舊版設的 core.hooksPath=scripts/hooks,改用 ${hooks} 的轉呼叫檔"
52
+ fi
53
+
54
+ mkdir -p "$hooks"
55
+ for name in $names; do
56
+ tmp="$hooks/.$name.tmp.$$"
57
+ cat >"$tmp" <<EOF
58
+ #!/bin/sh
59
+ $marker: hands over to scripts/hooks/<name> of the working tree
60
+ top="\$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
61
+ hook="\$top/scripts/hooks/\${0##*/}"
62
+ [ -x "\$hook" ] || exit 0
63
+ exec "\$hook" "\$@"
64
+ EOF
65
+ chmod +x "$tmp"
66
+ mv -f "$tmp" "$hooks/$name"
67
+ done
68
+
15
69
  git config commit.cleanup scissors
16
- printf '%s\n' "git hooks → scripts/hooks(commit-msg、pre-push);commit.cleanup → scissors"
70
+
71
+ found="$(git config --show-scope --get core.hooksPath || true)"
72
+ if [[ -n "$found" ]]; then
73
+ tab=$'\t'
74
+ scope="${found%%"$tab"*}"
75
+ value="${found#*"$tab"}"
76
+ case "$scope" in
77
+ global | system)
78
+ printf '%s\n' "這台機器的 ${scope} 設定有 core.hooksPath=${value},git 只跑那裡的 hook。那組 hook 會轉給 .git/hooks/<name> 時,倉的 hook 才會跑。"
79
+ ;;
80
+ *)
81
+ printf '%s\n' "git-hooks.sh:${scope} 設定有 core.hooksPath=${value},git 只跑那裡的 hook,${hooks} 的轉呼叫檔不會被執行。要讓倉的 hook 跑,移除那筆設定:git config --$scope --unset core.hooksPath" >&2
82
+ exit 0
83
+ ;;
84
+ esac
85
+ fi
86
+ printf '%s\n' "git hooks → ${hooks}(commit-msg、pre-push 轉給 scripts/hooks);commit.cleanup → scissors"
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # usage: healthz.sh <worker> <env> <worker> is <unit>-<env>, the name wrangler.toml gives the environment
5
5
  # reads: ops/urls.json { "<env>": "<base URL of a Worker, with {worker} where its name goes>" }
6
- # compose writes the file from the URL patterns that the ops unit of the repository publishes (blueprint.demos.repos, the
6
+ # compose writes the file from the URL patterns that the ops unit of the repository publishes (the
7
7
  # interface of the unit), so the patterns are not a repository variable.
8
8
  set -euo pipefail
9
9
  worker="${1:?usage: healthz.sh <worker> <env>}"
package/org/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @@repoName@@
2
2
 
3
- `@@organization@@` 組織在組織層的 `@@repoName@@` 倉。它是導入方的組織層倉,放這個組織的組織值與組織層的倉清單,不是管理中樞的複本。共用套件、範本與組織層倉範本由管理中樞發布,這個倉只放導入方該有的東西。
3
+ `@@organization@@` 組織在組織層的 `@@repoName@@` 倉。它是導入方的組織層倉,放這個組織的組織值與組織層的倉清單,也可以放組織自己的規則,不放持有範本的倉的職責。共用套件、範本與組織層倉範本由管理中樞發布,這個倉只放組織層倉該有的東西。
4
4
 
5
5
  ## 放什麼
6
6
 
7
- - `facts/` 是 `@@aggregatePackageName@@`。它有兩筆 fact:組織值(`@@repoName@@.org-values`,欄位定義在共用 fact `blueprint-shared.org-values`,fact-kit 依那份 schema 驗證),以及組織層的倉清單(`@@repoName@@.org-layout.repos`)。
7
+ - `facts/` 是 `@@aggregatePackageName@@`。它至少有兩筆 fact:組織值(`@@repoName@@.org-values`,欄位定義在共用 fact `blueprint-shared.org-values`,fact-kit 依那份 schema 驗證),以及組織層的倉清單(`@@repoName@@.org-layout.repos`)。組織可以另放自己的規則。
8
8
  - `docs/` 是 `@@scope@@/@@repoName@@-docs`。它放組織層的文件,並引用上面的 fact 與共用 fact。`docs/@@repoName@@-docs/@@repoName@@/layer-names.doc.ts` 寫出各倉的 facts、docs 套件名怎麼從這一層推出。
9
9
  - `scripts/ci/check-org-values.mjs` 逐欄位核對組織值,缺欄位、多欄位或型別不對時印出欄位名。
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blueprint-shared-templates",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "Templates shared by several products, published on its own",
5
5
  "license": "MIT",
6
6
  "author": "Carlos Space",
@@ -11,6 +11,9 @@
11
11
  # docs/<package>/ a shared document package published on its own (docs/<RepoName>-shared-docs): a directory
12
12
  # with its own package.json, found by the unit name, which is the name of that package
13
13
  # without its scope. Pinned like a component layer, to the version of its own unit.
14
+ # <path> a package that release-please-config.json lists at any path and whose own directory holds a
15
+ # clarify-kit.config.json (demos/_docs): found by its component, which is the unit name. Looked
16
+ # up last (never docs/ itself), so the two layers above keep their directories.
14
17
  # Anything else under docs/ is not pinned by the scripts. Only the packages' own files are read and nothing
15
18
  # outside docs/.
16
19
  #
@@ -48,7 +51,8 @@ docs_pin_product() {
48
51
 
49
52
  # docs_unit_dir <unit> → the directory under the repository root that holds the documents of a unit, printed
50
53
  # when there is one: docs/<package> whose package.json carries the unit as its name (without scope), else the
51
- # component layer docs/<unit>.
54
+ # component layer docs/<unit>, else the package that release-please-config.json lists under that component with a
55
+ # clarify-kit.config.json of its own.
52
56
  docs_unit_dir() {
53
57
  has_docs || return 1
54
58
  local f n
@@ -58,6 +62,10 @@ docs_unit_dir() {
58
62
  if [[ "${n##*/}" == "$1" ]]; then f="${f%/package.json}"; printf '%s\n' "${f#"$REPO_ROOT"/}"; return 0; fi
59
63
  done
60
64
  [[ -d "$REPO_ROOT/docs/$1" ]] && { printf '%s\n' "docs/$1"; return 0; }
65
+ local p c
66
+ while IFS=$'\t' read -r p c; do
67
+ [[ "$c" == "$1" && "$p" != docs ]] && { printf '%s\n' "$p"; return 0; }
68
+ done < <(config_dirs_with clarify-kit.config.json)
61
69
  return 1
62
70
  }
63
71
 
@@ -42,18 +42,24 @@ facts_package_dir() {
42
42
  # case is a facts/*/ whose fact-kit.config.json has no "aggregate" key and whose package.json is not private: it
43
43
  # has nothing to aggregate and is published on its own, so it is itself the component and its directory name is
44
44
  # the unit. A private facts/*/ without an "aggregate" key is a component that an aggregate lists, never a unit.
45
+ # A fourth case is found through release-please-config.json (config_dirs_with): a package whose own directory holds a
46
+ # fact-kit.config.json without an "aggregate" key, wherever it sits (demos/_facts), is a single-layer package like the
47
+ # third case, and its unit is the component the config gives it. A directory already listed above is not listed twice.
45
48
  # The unit is what a release unit is called, and the callers keep the rows of the units they were given. The built "describes" is not read here: it follows
46
49
  # the version file of the unit's directory, which is still 0.0.0 until the unit's first Release PR is merged (then
47
50
  # "describes" is {}), so a unit's first release would find no component package and its "next" rows would stay unpinned. The aggregate itself never appears.
48
51
  # Builds each package first, so a caller can read the built indexes afterwards.
49
52
  facts_components() {
50
53
  has_facts || return 0
51
- local root pkg dir out unit cfg
54
+ local root pkg dir out unit cfg p c
55
+ local -A seen=()
52
56
  while IFS= read -r root; do
57
+ seen[$root]=1
53
58
  unit=""; [[ "$root" == "$REPO_ROOT/facts" ]] || unit="${root##*/}"
54
59
  while IFS= read -r pkg; do
55
60
  dir="$(facts_package_dir "$pkg" "$root")" || { warn "${root#"$REPO_ROOT"/}/fact-kit.config.json 的 aggregate 列了 ${pkg},但 ${root#"$REPO_ROOT"/}/ 底下找不到這個套件"; continue; }
56
61
  out="$(fact_kit build --cwd "$dir" 2>&1)" || { printf '%s\n' "$out" >&2; die "建置 ${dir#"$REPO_ROOT"/} 失敗(facts 的依賴裝了嗎?先在倉庫根目錄執行 pnpm install)"; }
62
+ seen[$dir]=1
57
63
  printf '%s\t%s\n' "$dir" "${unit:-${dir##*/}}"
58
64
  done < <(jq -r '.aggregate // {} | to_entries[] | .value' "$root/fact-kit.config.json")
59
65
  done < <(facts_roots)
@@ -64,8 +70,18 @@ facts_components() {
64
70
  [[ -f "$dir/package.json" ]] || continue
65
71
  [[ "$(jq -r '.private // false' "$dir/package.json")" == "true" ]] && continue
66
72
  out="$(fact_kit build --cwd "$dir" 2>&1)" || { printf '%s\n' "$out" >&2; die "建置 ${dir#"$REPO_ROOT"/} 失敗(facts 的依賴裝了嗎?先在倉庫根目錄執行 pnpm install)"; }
73
+ seen[$dir]=1
67
74
  printf '%s\t%s\n' "$dir" "${dir##*/}"
68
75
  done
76
+ while IFS=$'\t' read -r p c; do
77
+ dir="$REPO_ROOT/$p"
78
+ [[ -z "${seen[$dir]:-}" ]] || continue
79
+ jq -e 'has("aggregate")' "$dir/fact-kit.config.json" >/dev/null 2>&1 && continue
80
+ [[ -f "$dir/package.json" ]] || continue
81
+ out="$(fact_kit build --cwd "$dir" 2>&1)" || { printf '%s\n' "$out" >&2; die "建置 ${dir#"$REPO_ROOT"/} 失敗(facts 的依賴裝了嗎?先在倉庫根目錄執行 pnpm install)"; }
82
+ seen[$dir]=1
83
+ printf '%s\t%s\n' "$dir" "$c"
84
+ done < <(config_dirs_with fact-kit.config.json)
69
85
  return 0
70
86
  }
71
87
 
@@ -289,7 +289,8 @@ RELEASE_PIN_RESULT="" RELEASE_PIN_REASON=""
289
289
  # shellcheck disable=SC2034 # RELEASE_PIN_RESULT is read by pin-release-pr.sh and merge-release-pr.sh, which source this file
290
290
  release_pin_open_pr() {
291
291
  local branch="$1" line="$2" n head_ref pr_sha base out row pair u v comps
292
- local -a specs=() pr_units=() pinned=() docs_pinned=()
292
+ local -a specs=() pr_units=() pinned=() docs_pinned=() fact_paths=(facts) doc_paths=(docs)
293
+ local dir c d
293
294
  RELEASE_PIN_RESULT="" RELEASE_PIN_REASON=""
294
295
  n="$(release_pr_open_number "$branch")"
295
296
  if [[ -z "$n" ]]; then
@@ -336,9 +337,11 @@ release_pin_open_pr() {
336
337
  [[ -n "${comp_units[$u]:-}" ]] || continue
337
338
  facts_pin "$u" "$v"
338
339
  pinned+=("$u@$v")
340
+ # a package outside facts/ (listed in the release-please config) is committed too
341
+ while IFS=$'\t' read -r dir c; do [[ "$c" == "$u" ]] && fact_paths+=("${dir#"$REPO_ROOT"/}"); done <<<"$comps"
339
342
  done
340
- if [[ -n "$(git status --porcelain -- facts)" ]]; then
341
- git add -- facts
343
+ if [[ -n "$(git status --porcelain -- "${fact_paths[@]}")" ]]; then
344
+ git add -- "${fact_paths[@]}"
342
345
  run git commit -q -m "chore(facts): 釘 next 為 ${pinned[*]}" \
343
346
  -m "合併 Release PR #${n} 之前,把這次要發的單元的 next 釘成 PR 的版號。釘在發布分支,不放 Release PR 分支,因為 release-please 重算時會強制改寫它。"
344
347
  else
@@ -350,12 +353,13 @@ release_pin_open_pr() {
350
353
  if has_docs; then
351
354
  for pair in "${pr_units[@]}"; do
352
355
  u="${pair% *}" v="${pair#* }"
353
- docs_unit_dir "$u" >/dev/null || continue
356
+ d="$(docs_unit_dir "$u")" || continue
354
357
  docs_pin_unit "$u" "$v"
358
+ doc_paths+=("$d")
355
359
  docs_pinned+=("$u@$v")
356
360
  done
357
- if [[ -n "$(git status --porcelain -- docs)" ]]; then
358
- git add -- docs
361
+ if [[ -n "$(git status --porcelain -- "${doc_paths[@]}")" ]]; then
362
+ git add -- "${doc_paths[@]}"
359
363
  run git commit -q -m "chore(docs): 釘 next 為 ${docs_pinned[*]}" \
360
364
  -m "合併 Release PR #${n} 之前,把這次要發的單元的文件 next 釘成 PR 的版號。釘在發布分支,不放 Release PR 分支,因為 release-please 重算時會強制改寫它。"
361
365
  else
@@ -792,7 +792,7 @@ train_gates() { # train_gates <branch> <line> <stage>
792
792
  # all stop the gate. A repository with no such unit passes without a query. It queries once and never waits; whoever calls it waits for the deploy and runs it again.
793
793
  # Whether the repository deploys is decided by its deploy-prerelease.yml. When that file reads
794
794
  # vars.DEPLOY_ENABLED outside a comment (the condition the templates keep for the demo repositories), a repository whose variable DEPLOY_ENABLED is not
795
- # true (blueprint.demos.enable-conditions: the repository's own value first, the organization's only when the repository has none)
795
+ # true (the demonstration repository's own value first, the organization's only when the repository has none)
796
796
  # deploys nothing, so there is no run to look for and its units pass with the reason printed. A variable list that cannot be read stops
797
797
  # the gate, because it must not be taken for "not enabled". When the file has no such line, or does not exist, the repository removed the
798
798
  # condition and deploys whenever the workflow runs: the variable is not read and the gate checks the run as usual.