Repository navigation
Conversation
repoplone changelog becomes a command group, like settings: the draft is printed by changelog preview, and changelog alone shows the help.
repoplone changelog check reports, for each area of a repository (each package and the repository itself), whether the current branch changed it and whether it added a news fragment for it. A changed file belongs to the most specific area holding it; files in a news folder are never changes that need news. Changes are counted from the merge base with the branch given by --compare-with, plus uncommitted and untracked files. The command exits with 1 when an area misses a fragment. --json prints the report as JSON, and --github prints GitHub Actions step outputs with a Markdown summary. The changelog workflow now uses it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
repoplone changelogbecomes a command group, with two subcommands.changelog preview(breaking)This is the old
repoplone changelog, unchanged. Runningrepoplone changelogwithout a subcommand now shows help instead of the draft, so any script still calling it needs updating.changelog checkThe command reports, for each area of a repository, whether the current branch changed it and whether it added a news fragment for it. An area is each package, plus the repository itself when
[repository.towncrier]is set..gitkeepand deleted fragments don't count.--compare-with(defaultorigin/main), plus uncommitted and untracked files. A branch that is behind main does not pick up main's own changes, and a moved file counts in both areas.--jsonprints the report as JSON.--githubprints the step outputsmissingandareas, plus a Markdownsummaryfor the step summary.towncrier checkcan't tell which areas changed: it only answers whether one news folder received a fragment. That's why repoplone matches files to areas itself and uses towncrier only to read each config and parse fragment names.The
changelog.ymlworkflow now runs the checked-out command with--githuband copies the summary to the run page. This PR is its first real run.Closes #116