Skip to content

Commit db9de27

Browse files
Upgrade TagBot to v1.26.1 and document the release process (#745)
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 <noreply@anthropic.com>
1 parent 500f1a9 commit db9de27

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/TagBot.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- GraphNeuralNetworks
2727
- GNNLux
2828
steps:
29-
- uses: JuliaRegistries/TagBot@87cc4cc2b4639f6c743f5772f376a32914060732 # v1.25.15
29+
- uses: JuliaRegistries/TagBot@a761b867f05e7e410011ab16b244f2fffec16c85 # v1.26.1
3030
with:
3131
subdir: ${{ matrix.subdir }}
3232
token: ${{ secrets.GITHUB_TOKEN }}
@@ -36,4 +36,6 @@ jobs:
3636
# See: https://github.com/JuliaRegistries/TagBot#commits-that-modify-workflow-files
3737
ssh: ${{ secrets.DOCUMENTER_KEY }}
3838
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
39-
# changelog_format: github # 'custom' (default), 'github', or 'conventional'
39+
# Keep the default `custom` changelog format: with `subdir` it lists only
40+
# the PRs that changed files in that package's folder. The `github`
41+
# format can't filter by path and would list every PR in the repo.

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ Layers typically implement their forward pass via `propagate(fmsg, g, aggr; xi,
7070
- **Mooncake** and **SimpleWeightedGraphs** support are also extensions; keep them optional.
7171
- **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.
7272
- **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 `## <Package>.jl <version> - <date>`, 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 `<version> - YYYY-MM-DD` heading placed at the top of the timeline.
73+
- **Releases**: a release commit bumps the package's `version` (dropping `-DEV`) and dates its `CHANGELOG.md` heading, then is registered with `@JuliaRegistrator register subdir=<Package>`. TagBot (`.github/workflows/TagBot.yml`, one matrix job per package) tags that commit `<Package>-vX.Y.Z` and creates a GitHub release listing only the merged PRs that changed files under `<Package>/` (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.
7374
- Follow the `[workspace]` dev model; do not rewire packages to local paths outside the repo.

‎GraphNeuralNetworks/docs/src/dev.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,17 @@ end
7070
```
7171

7272
## Versions and Tagging
73-
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
73+
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
7474
the compat bounds, e.g. GraphNeuralNetworks might require a newer version of GNNGraphs.
7575

76+
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
77+
```
78+
@JuliaRegistrator register subdir=GNNGraphs
79+
80+
Release notes: see the CHANGELOG
81+
```
82+
(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.
83+
7684
## Generate Documentation Locally
7785
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:
7886

0 commit comments

Comments
 (0)