aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 10:41:38 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 10:41:38 +0000
commitb466aae0ec817b7f41375622f6675d900d9000f0 (patch)
treec86f68265e1b6ac296e6398f6b5ff8aa8a1a476a
parente97b9fb49ee07712a45b34a0b9f35db5d631720a (diff)
build: count .github changes in every product version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--cmake/CompilerPaths.txt1
-rw-r--r--plugin/AGENTS/DEVELOPMENT.md2
-rw-r--r--plugin/scripts/package.js2
3 files changed, 3 insertions, 2 deletions
diff --git a/cmake/CompilerPaths.txt b/cmake/CompilerPaths.txt
index 9de9772..42beb57 100644
--- a/cmake/CompilerPaths.txt
+++ b/cmake/CompilerPaths.txt
@@ -9,3 +9,4 @@ CMakeLists.txt
install.sh
install.ps1
LICENSE
+.github
diff --git a/plugin/AGENTS/DEVELOPMENT.md b/plugin/AGENTS/DEVELOPMENT.md
index 71f9e8e..0725def 100644
--- a/plugin/AGENTS/DEVELOPMENT.md
+++ b/plugin/AGENTS/DEVELOPMENT.md
@@ -16,7 +16,7 @@ npm run package
`npm run package` runs syntax checks and the existing Node tests, then uses vsce
through `scripts/package.js` to generate `cpsc-plugin-YYYYMMDD-HHMMSS-commit.vsix`.
-Both filename components come from the last commit that touched `plugin/`: its UTC
+Both filename components come from the last commit that touched `plugin/` or `.github/`: its UTC
commit timestamp and Git short ID.
The internal version is `YYYYMMDD.HHMMSS.0+commit`; the numeric time component
has no leading zeros (midnight is `0`). For example, the file
diff --git a/plugin/scripts/package.js b/plugin/scripts/package.js
index 7ef8f17..2a7dd3d 100644
--- a/plugin/scripts/package.js
+++ b/plugin/scripts/package.js
@@ -5,7 +5,7 @@ const path = require('node:path');
const pluginDir = path.resolve(__dirname, '..');
try {
- const revision = execFileSync('git', ['log', '-1', '--format=%ct:%h', '--', '.'], {
+ const revision = execFileSync('git', ['log', '-1', '--format=%ct:%h', '--', '.', '../.github'], {
cwd: pluginDir,
encoding: 'utf8',
stdio: ['ignore', 'pipe', 'pipe']