Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,12 @@ jobs:
grep -q '<!-- standards-version:' /tmp/scaffold-test/ci-test-plugin/AGENTS.md \
|| { echo "::error::AGENTS.md missing standards-version marker"; exit 1; }

# LICENSE has correct CC-BY-NC-ND-4.0 copyright (TM Hospitality Strategies, not TMHSDigital)
grep -q 'Copyright (c) 2026 TM Hospitality Strategies' /tmp/scaffold-test/ci-test-plugin/LICENSE \
|| { echo "::error::LICENSE missing canonical 'TM Hospitality Strategies' copyright line"; exit 1; }
# LICENSE has correct CC-BY-NC-ND-4.0 copyright (TM Hospitality Strategies, not TMHSDigital).
# The year is DERIVED from the current UTC year at generation time, so assert against
# that rather than a hardcoded literal (which would itself go stale every January 1).
YEAR=$(date -u +%Y)
grep -q "Copyright (c) ${YEAR} TM Hospitality Strategies" /tmp/scaffold-test/ci-test-plugin/LICENSE \
|| { echo "::error::LICENSE missing canonical 'Copyright (c) ${YEAR} TM Hospitality Strategies' line"; exit 1; }
grep -q 'SPDX-License-Identifier: CC-BY-NC-ND-4.0' /tmp/scaffold-test/ci-test-plugin/LICENSE \
|| { echo "::error::LICENSE missing SPDX-License-Identifier"; exit 1; }

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.16.2
1.16.3
7 changes: 7 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
pytest>=8.0,<9.0
# PyYAML is required by the YAML-validating tests (test_release_doc_sync.py,
# test_composite_action_shape.py). Without it those tests pytest.importorskip
# and silently skip in CI, hiding real coverage.
PyYAML>=6.0,<7.0
# Jinja2 is required by the born-green scaffold integration test, which renders
# a repo of each type and runs the drift checker against the output.
Jinja2>=3.1,<4.0
17 changes: 13 additions & 4 deletions scaffold/create-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

import argparse
import datetime
import os
import re
import sys
Expand Down Expand Up @@ -206,6 +207,7 @@ def main():
"meta_minor": meta_minor,
"meta_patch": meta_patch,
"meta_version": f"{meta_major}.{meta_minor}.{meta_patch}",
"year": datetime.datetime.now(datetime.timezone.utc).year,
}

print(f"\nScaffolding '{args.name}' ({slug}) into {output_dir}\n")
Expand All @@ -214,15 +216,22 @@ def main():
if args.type == "cursor-plugin":
write_file(output_dir, ".cursor-plugin/plugin.json", render_template(env, "plugin.json.j2", ctx))

# GitHub workflows — branched by type
# GitHub workflows - emitted set is type-specific and must match the
# per-type required_workflows in standards/drift-checker.config.json plus
# the two optional-for-both workflows (pages, label-sync). Do NOT emit
# cursor-plugin-specific workflows for mcp-server repos: validate.yml's
# checks all assume a plugin.json and publish.yml replaces release.yml
# (see standards/ci-cd.md "MCP-server Variations").
if args.type == "mcp-server":
write_file(output_dir, ".github/workflows/validate.yml", render_template(env, "validate.mcp.yml.j2", ctx))
write_file(output_dir, ".github/workflows/release.yml", render_template(env, "release.mcp.yml.j2", ctx))
write_file(output_dir, ".github/workflows/pages.yml", render_template(env, "pages.mcp.yml.j2", ctx))
# Required for mcp-server: drift-check, stale, publish.
write_file(output_dir, ".github/workflows/publish.yml", render_template(env, "publish.yml.j2", ctx))
# Optional-for-both: pages (mcp variant), label-sync.
write_file(output_dir, ".github/workflows/pages.yml", render_template(env, "pages.mcp.yml.j2", ctx))
else:
# Required for cursor-plugin: validate, release, stale, drift-check.
write_file(output_dir, ".github/workflows/validate.yml", render_template(env, "validate.yml.j2", ctx))
write_file(output_dir, ".github/workflows/release.yml", render_template(env, "release.yml.j2", ctx))
# Optional-for-both: pages, label-sync.
write_file(output_dir, ".github/workflows/pages.yml", render_template(env, "pages.yml.j2", ctx))
write_file(output_dir, ".github/workflows/stale.yml", render_template(env, "stale.yml.j2", ctx))
write_file(output_dir, ".github/workflows/drift-check.yml", render_template(env, "drift-check.yml.j2", ctx))
Expand Down
6 changes: 3 additions & 3 deletions scaffold/templates/LICENSE.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if license_key == 'mit' %}
MIT License

Copyright (c) 2026 {{ author_name }}
Copyright (c) {{ year }} {{ author_name }}

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -25,7 +25,7 @@ Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Copyright (c) 2026 {{ author_name }}
Copyright (c) {{ year }} {{ author_name }}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -41,7 +41,7 @@ limitations under the License.
{% else %}
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International

Copyright (c) 2026 TM Hospitality Strategies
Copyright (c) {{ year }} TM Hospitality Strategies

This work is licensed under the Creative Commons
Attribution-NonCommercial-NoDerivatives 4.0 International License.
Expand Down
4 changes: 2 additions & 2 deletions scaffold/templates/plugin.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "{{ license_spdx }}",
"keywords": [
"cursor-plugin",
"developer-tools",
"mcp"
"developer-tools"{% if has_mcp %},
"mcp"{% endif +%}
],
"skills": [
{% for skill in skills %}
Expand Down
72 changes: 0 additions & 72 deletions scaffold/templates/release.mcp.yml.j2

This file was deleted.

28 changes: 0 additions & 28 deletions scaffold/templates/validate.mcp.yml.j2

This file was deleted.

Loading