Préparer le changelog pour la release

VérifiéSûr

Met à jour le fichier CHANGELOG.md en remplaçant la section [Unreleased] par la version actuelle du plugin et la date, puis ajoute une nouvelle section [Unreleased] vide. Utilisez-le lors de la finalisation d'une version pour préparer les entrées du journal des modifications.

Spar Skills Guide Bot
DocumentationDébutant
18002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#changelog#release#versioning#documentation

Recommandé pour

Notre avis

Automatise la mise à jour de la section [Unreleased] du CHANGELOG.md avec la version et la date actuelles du plugin.

Points forts

  • Garantit un format cohérent et standardisé (Keep a Changelog)
  • Réduit les erreurs manuelles lors de la préparation d'une release
  • Simple d'utilisation : une seule commande suffit

Limites

  • Nécessite une structure de fichier CHANGELOG.md spécifique
  • Fonctionne uniquement pour un projet avec une version unique (plugin)
  • La date utilisée est celle du système, non configurable
Quand l'utiliser

Lors de la préparation d'une release logicielle qui suit le format Keep a Changelog et le versionnage sémantique.

Quand l'éviter

Pour des projets utilisant un format de changelog différent ou plusieurs sections Unreleased simultanées.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only reads and writes local files (CHANGELOG.md, publishpress-hub-statistics.php) with no network access, code execution, or destructive operations. No dangerous tools are used.

Aucun point d'attention détecté

Exemples

Prepare changelog for release
Prepare the changelog for release.
Update changelog to version 1.2.0
Update CHANGELOG.md for version 1.2.0.
Finalize changelog entries
Finalize the changelog entries for today's release.

name: prepare-changelog-release description: Prepares the CHANGELOG.md file for release by updating the [Unreleased] section with the current plugin version and date. Use when the user asks to prepare changelog for release, update changelog for release, or finalize changelog entries.

Prepare Changelog for Release

Updates the unreleased section of CHANGELOG.md with the current plugin version and date, following the project's changelog format.

Instructions

When preparing the changelog for release:

  1. Read the current plugin version from publishpress-hub-statistics.php (Version field in the file header)

  2. Read CHANGELOG.md to identify:

    • The [Unreleased] section (typically starts at line 4)
    • All entries under [Unreleased] (bullet points between [Unreleased] and the next version)
  3. Update the changelog by replacing the [Unreleased] header with:

    [VERSION] - DD MMM, YYYY
    

    Where:

    • VERSION is the current version from the plugin file
    • DD is the day (2 digits)
    • MMM is the month (3-letter abbreviation: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)
    • YYYY is the 4-digit year
  4. Add a new [Unreleased] section at the top (after line 3) with empty content:

    [Unreleased]
    
    

Format Requirements

  • Use exactly one blank line between sections
  • Maintain the existing bullet point format for entries
  • Follow the format: [VERSION] - DD MMM, YYYY (e.g., [1.0.0] - 02 Feb, 2026)
  • Add comma after day in the date
  • Use 3-letter month abbreviation

Example Transformation

Before:

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

[Unreleased]

- Added: New feature X
- Fixed: Bug in feature Y

[1.0.0] - 02 Feb, 2026

After (assuming version 1.1.0 and date 05 Feb, 2026):

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

[Unreleased]

[1.1.0] - 05 Feb, 2026

- Added: New feature X
- Fixed: Bug in feature Y

[1.0.0] - 02 Feb, 2026

Month Abbreviations Reference

| Month | Abbreviation | |-------|--------------| | January | Jan | | February | Feb | | March | Mar | | April | Apr | | May | May | | June | Jun | | July | Jul | | August | Aug | | September | Sep | | October | Oct | | November | Nov | | December | Dec |

Skills similaires