-
Notifications
You must be signed in to change notification settings - Fork 90
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: Check that PR title follows conventional commit prefix #3043
Conversation
146e353
to
c9fec55
Compare
0b2e30b
to
620cde8
Compare
@rrsettgast @castelletto1 Could you please review this? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3043 +/- ##
===========================================
- Coverage 55.75% 55.74% -0.01%
===========================================
Files 1041 1041
Lines 88534 88534
===========================================
- Hits 49358 49356 -2
- Misses 39176 39178 +2 ☔ View full report in Codecov by Sentry. |
Won't this skip the builds on |
I added an if to ensure this action runs only at PR state |
Hi @untereiner . Can you explain what situation we are trying to avoid with this change? For instance, you have a check on the PR title prefix, so now every pr must have a prefix from some set of prefixes? What is the set of allowed prefixes? |
@rrsettgast I updated the PR text |
perhaps we should have a new prefix: |
What do we do then ? I really think it’s a light way to introduce order. |
@rrsettgast can we give it a try ? |
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.
isn't this a duplicate of what we were trying to do with labels? If we start using this I think we can get rid of some of the labels. |
@CusiniM labels are for CI triage and reviewer information. Here is a first step to automate the process of releasing incremental versions of the code. |
yeah some labels have a clear CI function and others are used to triage issues. But, for example, to me having both a label |
Note that one is for PRs, the other for issues? |
well, I think that's how we intended them when we created them in the first place but there is no logic in github for this. It's not like you can define a set of labels only for issues and one only for PRs... In any case, it's not a big deal. |
* add check conventional semantics * add auth * only for PR --------- Co-authored-by: Randolph Settgast <[email protected]> Co-authored-by: Nicola Castelletto <[email protected]> Co-authored-by: Matteo Cusini <[email protected]>
The main objective is to be able to release easily. It is easier to compute version numbers based on conventional commits. But constraining every commit message may be too much. To make this process easy I propose to only constrain the merge commit message. It can be easily check via this github action.
The allowed prefixes are:
It is also possible to add your own prefixes…
In case of wrong prefix this stage of the ci will fail and print out the a list of allowed prefixes
https://www.conventionalcommits.org/en/v1.0.0/