This repository was archived by the owner on Jul 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Changelog script #1424
Merged
Merged
Changelog script #1424
Conversation
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
This is a port of an internal "vpmake log" command that we use on VersionPress.com. It prints pull requests and issues between two Git versions. Right now, it's a very basic port with lots of cleaning up yet to do. But it works. For reference, it has been ported from https://github.com/versionpress/platform/blob/57e7d89ce6e16b1f713388235914fb3a161b32ad/vpmake/src/commands/log.ts.
`changelog.ts` now always operates on the whole Git repo – we don't need path filtering.
We don't need that. Code could be simplified.
Only specific patterns like "fixes ..." or "resolves ..." are matched now. This also includes a polyfill for the proposed string.prototype.matchAll function which makes it more convenient to work with RegExp matches.
Member
Author
|
Seems to work good enough for now, I'm going to merge this, improvements separately. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
scope: dev-infrastructure
Build scripts, IDE settings, CI, Docker dev stack, testing, tooling, etc.
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.
This PR adds a
changelogscript that lists pull requests, noteworthy issues and other things between two versions:The output is directly paste-able to GitHub issues, see e.g. #1373.
TODO:
vpmaketool we use for VersionPress.com.--helpor no args are provided.... (#1234). "Related issues" are those that use specific keywords in the PR body like "resolves" or "fixes", see this regex.changelogscript topackage.json.Won't happen now but would be nice in the future:
#123 [docs] Update dev setup;#124 [core] Improve post meta support.--format markdown. Would turn things like#123to[#123](https://github.com/versionpress/versionpress/issues/123), useful for copying the output to Markdown documents.