Skip to content
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

Separate, link & style the changelog #735

Merged
merged 6 commits into from
Sep 4, 2021
Merged

Separate, link & style the changelog #735

merged 6 commits into from
Sep 4, 2021

Conversation

michaeljones
Copy link
Collaborator

@michaeljones michaeljones commented Sep 3, 2021

And remove some statements about reminding us to get work done as they no longer reflect the tone I'm hoping to set up around the project.

I realise this is a bit of a random and opinionated change. Happy to not do it if people strong feelings but I think there is a argument that the CHANGELOG is quite long to be embedding in the README and a lot of it is of historical interest only so there are benefits to having it in its own separate file.

I'm also used to looking for a CHANGELOG.md/rst file when looking a github project so in some ways it is more discoverable like this.

I like the changelog in the README in some ways but it is getting quite
long and large parts of it are of historical interest only so it is a
bit of a burden for the main README.

We link all the PR references with the script below. I was going in
include it but I think it'll be easy enough to copy & paste from
previous lines in the future.

Made with:

    import re

    # Read the changelog
    changelog = open('CHANGELOG.rst').read();

    lines = changelog.split('\n')
    output = []

    # Replace all non-linked end-of-line PR references with a linked version
    for line in lines:
        output.append(
            re.sub(
                '(?P<prefix>[^`])#(?P<number>\d+)$',
                '\g<prefix>`#\g<number> <https://github.com/michaeljones/breathe/pull/\g<number>>`__',
                line, 0, re.M
                )
            )

    # Write the changelog
    open('CHANGELOG.rst', 'w').write("\n".join(output))s
They've been there for a while (I think I wrote them both a while ago)
and they don't necessarily reflect the degree of professionalism that
would be good to bring to the project given that it is used quite widely
at this point.
Under 'download' as it seems to fit there.
@vermeeren vermeeren mentioned this pull request Sep 3, 2021
@michaeljones michaeljones merged commit f538ea7 into master Sep 4, 2021
@michaeljones michaeljones deleted the change-log branch September 5, 2021 10:13
michaeljones pushed a commit that referenced this pull request Sep 14, 2021
Also chronologically sort by moving the entry for #721.
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