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

Ensure Changelog is updated with every PR. #537

Merged
merged 10 commits into from
Dec 18, 2024
Merged

Conversation

jnsbck
Copy link
Contributor

@jnsbck jnsbck commented Dec 2, 2024

I also like the suggestion of @ntolley to make updating the changelog part of PRs. To avoid having to remind contributors on every PR this could be enforced via github actions. I wrote a little check to do this.

(Quick test: changelog not updated -> tests should fail)

@jnsbck jnsbck force-pushed the check_changelog_updated branch 2 times, most recently from c472b28 to bae9622 Compare December 2, 2024 16:08
@jnsbck
Copy link
Contributor Author

jnsbck commented Dec 2, 2024

regression tests failing can be ignored. Test workflow for changelog works correctly.

@ntolley
Copy link
Contributor

ntolley commented Dec 2, 2024

Definitely a great idea to automate the check! Are you thinking to leave it to the discretion of the maintainer if it's appropriate to ignore the check? (e.g. a typo fix)

@jnsbck
Copy link
Contributor Author

jnsbck commented Dec 3, 2024

Currently this would be the case, but I am also not so happy about the current implementation at the moment. I also thought about adding a separate workflow i.e. "chores" and incl. isort, black, license header and changelog in there. This would be much cleaner and easier to quickly check for the maintainer as well.

@jnsbck jnsbck force-pushed the check_changelog_updated branch from c85c6c6 to d7c4396 Compare December 3, 2024 18:51
@jnsbck
Copy link
Contributor Author

jnsbck commented Dec 3, 2024

I did some refactoring:

  • Tests/Chores checks for isort, license headers, changelog, black
  • Tests/Pytest runs tests
  • Tests/Regression Tests runs regression tests only if tests were successful.

The maintainer would now only need to check why chores fail, i.e. because of no updates to changelog.

@jnsbck jnsbck force-pushed the check_changelog_updated branch from d7c4396 to 614ac2c Compare December 18, 2024 11:46
@jnsbck
Copy link
Contributor Author

jnsbck commented Dec 18, 2024

@michaeldeistler thoughts?

Copy link
Contributor

@michaeldeistler michaeldeistler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I had missed this one. I like the idea!

@jnsbck jnsbck merged commit e955973 into main Dec 18, 2024
2 checks passed
@jnsbck jnsbck deleted the check_changelog_updated branch December 18, 2024 13:11
@jnsbck jnsbck restored the check_changelog_updated branch December 18, 2024 13:24
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.

3 participants