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

Adjust releases so dependabot shows changelog entries #511

Open
seifertm opened this issue Mar 16, 2023 · 6 comments
Open

Adjust releases so dependabot shows changelog entries #511

seifertm opened this issue Mar 16, 2023 · 6 comments

Comments

@seifertm
Copy link
Contributor

When a project configures dependabot to continuously update project dependencies and a pytest-asyncio update is found, the dependatbot PR will show the commit history that leads to the current pytest-asyncio release.

The experience for the user would be much nicer, if dependabot showed the changelog.

It's currently unclear to me what is needed for dependabot to display the changelog items.

@seifertm
Copy link
Contributor Author

The changelog is no longer displayed in dependabot PRs, because it has been moved from the default project location to the docs folder. It seems like there is no way to point dependabot to the correct changelog path.

The release notes for each release contain a copy of the README. This doesn't help, because the changelog is no longer part of the README, either.

I suggest to create a Python script that extracts a section for a specific version from the changelog. The script will be invoked in the CI run and the extracted changelog section will be converted to markdown and will serve as release note for the corresponding release. This is roughly the approach that pytest takes.

@csranasinghe
Copy link

csranasinghe commented Jul 20, 2023

@seifertm I would like to look work with this issue.

@seifertm
Copy link
Contributor Author

@csranasinghe Great! Feel free to give it a try.

If you find existing tools that parse out a piece of the changelog, feel free to use them. We can also convert the .rst changelog to a Markdown file, if that makes things easier.

Let me know if you get stuck or lose interest in the issue.

@marcolab
Copy link

Not sure if anyone is already working on this, but if that's not the case, I could work on it. I've seen how it's implemented in pytest and I think I can develop something similar.

@seifertm
Copy link
Contributor Author

@marcolab Let me get back to you regarding this topic tomorrow.
I'd like to revisit the topic myself (and the comments about this I made earlier).

@seifertm
Copy link
Contributor Author

@marcolab It sounds great that you already know how the changelog is handled in pytest.

My understanding is that pytest uses towncrier to assemble a changelog from individual news snippets. As a first step, it would be sufficient, if you could setup towncrier for pytest-asyncio, so that it can be run manually. Once this works properly, we can automate the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants