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

ci: Add automated check for PR title formatting #17412

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Jul 3, 2024

Pull request titles require a valid tag in order to determine in which changelog and which section they should be included. The text that follows is included in the changelog directly.

This means that PR titles must be formatted correctly, otherwise the changelog is useless.

Unfortunately I spend more time than I am comfortable with editing people's pull request titles to make sure the changelog makes sense and looks OK. I have previously posted a PSA with some guidance on the Discord channel, which helped, but not enough.

So I'm taking out the big guns: regex 😄
A simple check will make sure pull requests have the right formatting, otherwise the CI will fail and the PR will be labelled title needs formatting. If you check out the failed job, it will link you to relevant section of the contributing guide, which I updated to be extra clear.

I realize this will probably cause some minor annoyance at first, but this should be in everyone's system soon enough. If you run into situations where you believe you have a valid PR title but the workflow fails, please ping me and I'll take a look.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels Jul 3, 2024
@stinodego stinodego marked this pull request as ready for review July 3, 2024 23:00
@stinodego stinodego merged commit dd1ca84 into main Jul 4, 2024
6 checks passed
@stinodego stinodego deleted the pr-title-check branch July 4, 2024 08:56
@c-peters c-peters added the accepted Ready for implementation label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants