-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR numbers as links in changelogs #2116
Comments
We should copy the changelog script from |
I would also add the request to this PR to add the packages with changelog links in the root README 👇
Packages
|
yeah, that's not a bad idea |
I've been able to backtrack changelog entries to PRs via commit hashes. By looking up, for example, 5911b1c7 from the 1.0.0-next.140 changelog entry, I see the commit message is "[fix] consider protocol-relative URLs as external (#2062)" and then I can look up #2062 and see the PR discussion and the linked issue. It should be trivial to write a script to take the existing changelog with commit hashes, grab the first line of the log message for that hash, and extract a PR number from the end of that first line. As long as the commit was created using GitHub's "Squash and merge" button, the end of the commit message will be |
The |
it won't retroactively add them though, so a one-off to sync the old entries would be good |
Yeah, we can just delete the old changelog and regenerate, right? |
I don't think it could work out the version numbers correctly, but worth a try |
I've created #2138 to do just that. I included the script I used in #2138 (comment) so someone else can re-run it if desired (e.g., if more changesets get merged before you switch over to the changelog script from Note: #2138 doesn't include the PR numbers as links, just as |
I think that's only true in issues, not in files. None of the PR numbers appear to be linked: https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md |
Does also do not appear with issues in my short tests. According to this https://stackoverflow.com/questions/16539687/github-readme-reference-issue auto-referencing is only supported in issues, comments or pr, but not in pure md files |
github also allows linking to other issues types via See linkify utility of the changelog script which helps to turn text references in changesets to links. |
Solution is great, thanks all! 🙏 |
Describe the problem
It's difficult to determine which version a merged PR is in.
I believe the changeset title is the PR title, though I am not sure this is strictly always the case.
As a maintainer of an external adapter, when I see a change to the Adapter API I often have to check the changelog of Kit (which navigating to is annoying to begin with) and read for the changesets since the last version my adapter was specifically built for. I'd rather just ctrl+f for the PR number.
Describe the proposed solution
Include PR numbers as a link to the PR in the changelog for each changeset
Alternatives considered
No response
Importance
would make my life easier
Additional Information
I imagine 1.0 will resolve most of this, though I wish to contribute to the Adapter API discussion before 1.0.
The text was updated successfully, but these errors were encountered: