From d6a0920c63b8b927d83d31ba3d0defc5e3c1e4de Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Sun, 29 Nov 2026 07:28:44 +0100 Subject: [PATCH] Upgrade TagBot to v1.26.1 and document the release process TagBot v1.26 lists only the PRs that changed a subpackage's folder in its release notes and tags subpackages on their registered commit. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/TagBot.yml | 6 ++++-- AGENTS.md | 1 + GraphNeuralNetworks/docs/src/dev.md | 10 +++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index e497fd06a..11ec131cc 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -26,7 +26,7 @@ jobs: - GraphNeuralNetworks - GNNLux steps: - - uses: JuliaRegistries/TagBot@87cc4cc2b4639f6c743f5772f376a32914060732 # v1.25.15 + - uses: JuliaRegistries/TagBot@a761b867f05e7e410011ab16b244f2fffec16c85 # v1.26.1 with: subdir: ${{ matrix.subdir }} token: ${{ secrets.GITHUB_TOKEN }} @@ -36,4 +36,6 @@ jobs: # See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files ssh: ${{ secrets.DOCUMENTER_KEY }} # ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }} - # changelog_format: github # 'custom' (default), 'github', or 'conventional' + # Keep the default `custom` changelog format: with `subdir` it lists only + # the PRs that changed files in that package's folder. The `github` + # format can't filter by path and would list every PR in the repo. diff --git a/AGENTS.md b/AGENTS.md index a7c6da594..00a2dd063 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -70,4 +70,5 @@ Layers typically implement their forward pass via `propagate(fmsg, g, aggr; xi, - **Mooncake** and **SimpleWeightedGraphs** support are also extensions; keep them optional. - **Versioning**: each PR should bump the `version` in the `Project.toml` of every affected package per semver, using a `-DEV` suffix for unreleased changes (e.g. `1.18.0-DEV`), and update inter-package `[compat]` bounds when a frontend needs newer GNNGraphs/GNNlib. - **Changelog**: do **not** edit `CHANGELOG.md` in feature or bug-fix PRs. It is maintained separately, because concurrent PRs editing the same section conflict and force constant rebases. Describe user-facing changes clearly in the PR description instead, so they can be carried over. When explicitly asked to update the changelog: it is a single repo-wide timeline (most recent first) with each release headed `## .jl - `, in [Keep a Changelog](https://keepachangelog.com/) style. Add user-facing changes (new feature, bug fix, deprecation, or compat relaxation) under the package's latest `-DEV` heading, linking each PR (`[#NNN]` reference at the bottom of the file), and skip purely internal churn (tests, CI, docs, refactors). When tagging a release, turn the package's `-DEV` heading into a dated ` - YYYY-MM-DD` heading placed at the top of the timeline. +- **Releases**: a release commit bumps the package's `version` (dropping `-DEV`) and dates its `CHANGELOG.md` heading, then is registered with `@JuliaRegistrator register subdir=`. TagBot (`.github/workflows/TagBot.yml`, one matrix job per package) tags that commit `-vX.Y.Z` and creates a GitHub release listing only the merged PRs that changed files under `/` (closed issues are not listed). Package labels on issues and PRs are therefore not needed for release notes. Keep TagBot's default `custom` changelog format: the `github` format is not filtered by path. - Follow the `[workspace]` dev model; do not rewire packages to local paths outside the repo. diff --git a/GraphNeuralNetworks/docs/src/dev.md b/GraphNeuralNetworks/docs/src/dev.md index 2b514d0c3..3b99aa4d0 100644 --- a/GraphNeuralNetworks/docs/src/dev.md +++ b/GraphNeuralNetworks/docs/src/dev.md @@ -70,9 +70,17 @@ end ``` ## Versions and Tagging -Each PR should update the version number in the Project.toml file of each involved package if needed by semnatic versioning. For instance, when adding new features GNNGraphs could move from "1.17.5" to "1.18.0-DEV". The "DEV" will be removed when the package is tagged and released. Pay also attention to updating +Each PR should update the version number in the Project.toml file of each involved package if needed by semantic versioning. For instance, when adding new features GNNGraphs could move from "1.17.5" to "1.18.0-DEV". The "DEV" will be removed when the package is tagged and released. Pay also attention to updating the compat bounds, e.g. GraphNeuralNetworks might require a newer version of GNNGraphs. +Each package is released separately. A release commit removes the "DEV" suffix from the package's version and dates its section in `CHANGELOG.md`. Then comment on that commit with +``` +@JuliaRegistrator register subdir=GNNGraphs + +Release notes: see the CHANGELOG +``` +(replacing `GNNGraphs` with the package being released). Once the registration is merged, [TagBot](https://github.com/JuliaRegistries/TagBot) tags the commit as `GNNGraphs-vX.Y.Z` and creates a GitHub release. Its notes list only the pull requests that changed files in the package's folder, so issues and pull requests don't need package labels. + ## Generate Documentation Locally Each package has its own documentation folder, e.g. `GNNGraphs/docs`. To generate the docs locally, run the following command from the root of the repository: