create-new-release

Create and push a new semver release tag. Asks for release type (patch/minor/major), validates commit exists on remote, bumps version, and pushes the tag.

npx skills add https://github.com/clickhouse/pg_stat_ch --skill create-new-release

Create New Release

Create and push a new semantic version release tag.

Steps

  1. Ask release type: Use AskUserQuestion to ask if this is a patch, minor, or major release.

  2. Fetch latest tags from remote:

    git fetch --tags origin
    
  3. Get the latest semver tag (assumes v prefix like v1.2.3):

    git tag --sort=-version:refname -l 'v*' | head -1
    
  4. Parse and bump version based on user selection:

    • patch: v1.2.3v1.2.4
    • minor: v1.2.3v1.3.0
    • major: v1.2.3v2.0.0
  5. Verify META.json version matches the new tag: Read META.json and check that both version and provides.pg_stat_ch.version match the new version (without the v prefix). If they don't match, abort and tell the user to update META.json first — PGXN uses this file for the release version.

  6. Validate current commit exists on remote:

    git fetch origin
    git branch -r --contains HEAD
    

    If no remote branch contains HEAD, abort with an error asking the user to push their commits first.

  7. Create and push the tag:

    git tag -a <new_version> -m "Release <new_version>"
    git push origin <new_version>
    
  8. Report success with the new tag name.

Version Parsing

Parse version from tag like v1.2.3:

  • Extract numbers after v prefix
  • Split by . to get major, minor, patch components
  • Handle edge case: if no tags exist, start at v0.1.0

Error Handling

  • If current commit is not on remote: "Current commit is not pushed to remote. Please push your changes first."
  • If tag already exists: "Tag already exists. Please check existing tags."
  • If git operations fail: Report the specific error.

Lebih banyak skill dari clickhouse

clickhouse-best-practices
clickhouse
28 aturan praktik terbaik ClickHouse yang diorganisir berdasarkan desain skema, optimasi kueri, dan strategi penyerapan data. Mencakup tiga area kritis: pemilihan kunci utama dan tipe data (keputusan desain yang tidak dapat diubah), optimasi JOIN dan kueri, serta pengelompokan penyisipan dengan penghindaran mutasi. Termasuk 28 aturan yang diprioritaskan berdasarkan dampak, dengan aturan desain skema dan optimasi kueri yang ditandai KRITIS karena mekanisme penyimpanan kolom dan indeks jarang ClickHouse. Menyediakan prosedur peninjauan terstruktur untuk...
official
clickhouse-js-node-coding
clickhouse
Write idiomatic application code with the ClickHouse Node.js client (`@clickhouse/client`). Use this skill whenever a user is *building* against the Node.js…
official
clickhousectl-cloud-deploy
clickhouse
Gunakan saat pengguna ingin menyebarkan ClickHouse ke cloud, beralih ke produksi, menggunakan ClickHouse Cloud, menghosting layanan ClickHouse terkelola, atau melakukan migrasi dari lokal…
official
clickstack-otel-collector
clickhouse
Gunakan saat pengguna ingin menghubungkan kolektor OpenTelemetry ke layanan ClickStack Terkelola di ClickHouse Cloud, baik dengan menerapkan kolektor lokal baru…
official
infra-clickhouse
clickhouse
Menyiapkan dan mengelola ClickHouse menggunakan CLI clickhousectl — menginstal dan menjalankan server ClickHouse lokal untuk pengembangan, serta membuat managed ClickHouse Cloud…
official
infra-postgres
clickhouse
Menyiapkan dan mengelola Postgres menggunakan CLI clickhousectl — menjalankan Postgres lokal berbasis Docker untuk pengembangan, serta membuat dan mengoperasikan ClickHouse terkelola…
official
clickhouse-best-practices
clickhouse
WAJIB digunakan saat meninjau skema, kueri, atau konfigurasi ClickHouse. Berisi 31 aturan yang WAJIB diperiksa sebelum memberikan rekomendasi. Selalu baca…
official
setup
clickhouse
Memandu pengguna dalam menyiapkan koneksi server ClickHouse MCP yang dibundel dengan plugin ini. Gunakan saat pengguna pertama kali menginstal plugin atau mengalami masalah…
official