Skip to content

chore(release): carry the changelog entries in the pull requests - #979

Merged
heurtematte merged 4 commits into
mainfrom
chore/changelog-in-pull-requests
Dec 3, 2026
Merged

heurtematte merged 4 commits into
mainfrom
chore/changelog-in-pull-requests

Conversation

@heurtematte

@heurtematte heurtematte commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

The change is in how pull requests document their changes and how a release is made.

Each pull request carries its changelog entry. A pull request with a change visible to users now adds its own
entry under ## [Unreleased] of CHANGELOG.md. No change has to collect the changelog at release time anymore: the release commit only renames [Unreleased] to [X.Y.Z] - DD/MM/YYYY and opens a new empty [Unreleased], then the tag is created.

  • AGENTS.md gets a "Changelog" section.
  • docs/developing_otterdog/contribution_workflow.md gives contributors the same rules in "Update the changelog",
    and asks for a pull request title in the format of a conventional commit subject.
  • docs/developing_otterdog/release_process.md is rewritten in five steps:
    1. review the unreleased entries;
    2. choose the version;
    3. Open the pull request of the release: make release-pr VERSION=X.Y.Z
    4. Tag the release: make release-tag VERSION=X.Y.Z
    5. check the publication.

It warns that the tag must point to the release commit, and that a tag can be neither moved nor deleted.

The GitHub release keeps the full list of pull requests. The changelog no longer contains a pasted copy of the
list of pull requests that GitHub generates. To keep the authors, the new contributors and the dependency updates
in the release, publish.yml sets generate_release_notes: true: softprops/action-gh-release (v3.0.4, pinned)
appends the list that GitHub generates to the notes of the version extracted from CHANGELOG.md. The new
.github/release.yml groups the Dependabot pull requests (label dependencies) apart.

Type of change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior, config schema, or default template)
  • 📝 Documentation only
  • 🔧 Refactoring / internal change (no functional change)

Tests

  • Unit tests added / updated under tests/
  • No test added: no Python code changed. The change covers documentation, agent instructions and the
    configuration of the release workflow.

Manual testing

  • GitHub API calls only stubbed / mocked in unit tests (no live testing)
  • Tested on a real GitHub organization (live GitHub API)

Checklist

  • Documentation updated (docs/, reference docs for new/changed settings, make docs builds)
  • Default template / examples updated if the config schema changed: not applicable, neither the schema nor the
    defaults changed.
  • CHANGELOG.md entry added under ## [Unreleased]: not applicable. This is an internal change (release
    workflow, documentation, agent instructions); the diff only adds the introduction and the empty [Unreleased]
    section.

Each pull request now adds its own entry under `## [Unreleased]` of
CHANGELOG.md, as Eclipse Open VSX does, so no change has to collect the
changelog at release time. The release commit only renames
`[Unreleased]` to the version and opens a new one; the tag is then
created from the command line or the GitHub web interface.

The GitHub release appends the notes that GitHub generates to the
section of the version: the pull requests with their authors, the new
contributors, and the Dependabot updates grouped apart by
.github/release.yml. The hand-written entries therefore name no author,
except those of security advisories, whose fixes have no pull request.

AGENTS.md, the contribution and release docs, the pull request template
and the skills describe the entries, and CHANGELOG.md gets an empty
`[Unreleased]` section.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 10:47
@heurtematte
heurtematte temporarily deployed to pull-request-preview December 2, 2026 10:48 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📖 The documentation of this pull request is previewed at https://csi.eclipse.dev/otterdog-website-preview/pr-preview/pr-979/

Built from e85d7b3 by this run, updated by every new commit (GitHub Pages may take a minute to publish it). The preview is removed when the pull request is closed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review reports no active issues with the changelog and release-workflow updates.

No open issues 🎉

What changed in this PR

Moves user-facing changelog entries into individual pull requests and updates Otterdog’s release workflow and contributor guidance.

Changes:

  • Requires changelog entries for user-visible changes, including migration guidance for breaking changes.
  • Documents release preparation, tagging, and publication checks.
  • Enables generated GitHub release notes, with dependency updates grouped separately.
File Description
docs/​developing_otterdog/​release_process.md Rewrites the release procedure into five steps.
docs/​developing_otterdog/​contribution_workflow.md Adds changelog and PR-title guidance.
docs/​developing_otterdog/​ai_agents.md Updates the agent-guidance overview.
CHANGELOG.md Adds an introduction and empty Unreleased section.
AGENTS.md Defines contributor-wide changelog rules.
.github/​workflows/​publish.yml Enables generated release notes.
.github/​release.yml Groups dependency updates separately.
.github/​pull_request_template.md Adds a changelog checklist item.
.agents/​skills/​pr-description/​SKILL.md Aligns PR descriptions with changelog requirements.
.agents/​skills/​otterdog-operation/​SKILL.md Requires changelog entries for operation changes.
.agents/​skills/​github-resource-type/​SKILL.md Adds changelog and migration requirements.
.agents/​skills/​github-config-property/​SKILL.md Adds changelog requirements for setting changes.
.agents/​skills/​adversarial-review/​SKILL.md Adds changelog checks to review guidance.

Review effort: Balanced

The release commit can no longer be pushed to main directly: main
changes through pull requests, which committers can merge without a
review.

`make release-pr VERSION=X.Y.Z` checks the version and the
`[Unreleased]` section of main, commits the renamed section in a
temporary worktree, pushes it to `release/vX.Y.Z` and opens its pull
request. Once it is merged, `make release-tag VERSION=X.Y.Z` pushes the
signed tag on the commit that the pull request added to main, so the
tag cannot land on another commit.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 11:17
@heurtematte
heurtematte temporarily deployed to pull-request-preview December 2, 2026 11:17 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PR description and Tests section misrepresent the new release tooling, added tests, and PR-based release process, leaving the scope and validation inaccurately documented.

1 open issue

Review effort: Balanced

Comment thread release.py Resolved
SonarCloud reported a command argument injection in release.py. It was
not exploitable: the version was checked against a regular expression,
and `git remote get-url` rejected a remote that looks like an option.
The version is now rebuilt from its numbers, without leading zeros, and
the remote must be one of the remotes of the checkout. Each exception
test now calls a single function.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Release validation incorrectly includes unrelated local tags when determining the selected remote’s latest release, which can reject valid releases in fork/upstream setups.

2 open issues

Review effort: Balanced

Comment thread release.py Resolved
@heurtematte
heurtematte temporarily deployed to pull-request-preview December 2, 2026 11:26 — with GitHub Actions Inactive
Copilot AI balanced review requested due to automatic review settings December 2, 2026 11:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The PR description and testing claims omit the new release automation and tests, misrepresenting the change’s scope and leaving unclear which release-tooling checks actually ran.

2 open issues

Review effort: Balanced

…tion

Fixes from the review of the release tooling:

- The released versions are the tags of the remote. A local tag, e.g.
  one of a fork, no longer blocks a release, and a version released on
  the remote only is refused.
- Both pushes use --no-follow-tags. With push.followTags, git also
  pushed the local annotated tags of the history, and a v* tag
  publishes a release.
- A pull request opened before a release and merged after it puts its
  entry under the released version without a conflict. release-tag now
  refuses when the section of the version changed on main after the
  release commit. release-pr refuses when entries were added to the
  last released section after its tag.
- The release pull request is squash-merged, so it lands as one
  commit. Contributors check their entry after updating their branch.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org>
@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

This comment was marked as resolved.

@heurtematte
heurtematte requested review from lukpueh and netomi December 2, 2026 13:42
@heurtematte
heurtematte merged commit 3b7af67 into main Dec 3, 2026
16 checks passed
@heurtematte
heurtematte deleted the chore/changelog-in-pull-requests branch December 3, 2026 15:52

This branch was successfully deployed

1 active deployment
pull-request-preview — e85d7b36 Deployed Dec 2, 2026 by heurtematte via publish the preview #156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants