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
build: set up GitHub app PRLint #9655
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9655 +/- ##
==========================================
+ Coverage 64.03% 70.77% +6.74%
==========================================
Files 532 587 +55
Lines 28897 30460 +1563
Branches 2758 3121 +363
==========================================
+ Hits 18503 21558 +3055
+ Misses 10211 8788 -1423
+ Partials 183 114 -69
Continue to review full report at Codecov.
|
FYI, Considering |
Agree. I'm all for making the commit log more readable. Typically, when squashing, the commits that are actually being squashed are appended into the squash commit's message. Let's give it a shot... |
I agree with @ktmud a per check would be preferable. We can even enforce semantic commits on the actual PR. A local pre-commit check seems like it could get annoying really quickly. I usually fixup my commits or reword them before opening a pr or when submitting pr for final review, especially given the commit messages get squashed into the commit that's finally merged. However, I commit often when developing locally for things like moving branches or commits I intend to fixup. Having to write a message that'll pass commit lint, not to mention running commit lint, when I just want to save my work and move to another branch seems tedious. |
I agree local post-commit hook is heavy, there's a way to add a regex to skip something like It's true that ultimately with that "squash & merge" github policy it's the PR title that matters most. Maybe we force a PR title check to merge instead? |
Oh! how about this: https://github.com/apps/prlint !? |
Looks legit! Seems more powerful than Semantic Pull Requests that |
PRLint Looks good. Something like this would really help on patch releases and making the changelog more readable and parseable |
I like it! |
Leaving open until https://issues.apache.org/jira/browse/INFRA-20236 closes |
Sets up [PRLint](https://github.com/apps/prlint), with a single rule matching [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) Also modifying the PR template to remove redundant annoying checkbox section. Once we adopt, I'm hoping we can modify our bot to auto-label based on the commit type.
Alright I got Apache infra to install PRLint, with a single rule matching Conventional We can add more rules around labeling, size, assignment, body, ... Worth checking out their docs to see what's possible. |
awesome! let's merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we can iterate over this on subsequent PR's to add feature around labels etc...
@@ -27,5 +16,3 @@ Choose one | |||
- [ ] Confirm DB Migration upgrade and downgrade tested. | |||
- [ ] Introduces new feature or API | |||
- [ ] Removes existing feature or API | |||
|
|||
### REVIEWERS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mistercrunch why the removal of the reviewers section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, you can just do this on the PR itself and get proper notifications related to that:
The person opening the PR probably doesn't know who should review, so having this in the template makes outsiders feel even more that way.
There are ways to auto-assign based on which folders/modules are touched we could use in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems only repo collaborators can request reviewers from there. Do all committers get notified when a new PR is created?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, we should add a feature to let anyone assign PRs through comments on the apache superset Github bot:
https://github.com/apache-superset/superset-github-bot
It can be a way to work around missing perms for contributors (non-committers).
The labeling feature broke recently for reasons I could not understand (felt like unicode-related around parsing the emoji). Spent 2 hours and gave up.
Sets up gitlint, which enforces Conventional Commits and sets up the proper post commit hook to enforce it.Also modifying the PR template to remove redundant annoying checkbox section. Once we adopt, I'm hoping we can modify our bot to auto-label based on the commit type.This requires a bit more discipline upfront, but should lead to a cleanergit log
in master, meaning better release notes and such.Sets up PRLint, with a single rule matching Conventional
Commits
Also modifying the PR template to remove redundant annoying checkbox section.
Once we adopt, I'm hoping we can modify our bot to auto-label based on the commit type.