-
Notifications
You must be signed in to change notification settings - Fork 0
doc: Add review document draft #1
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
base: main
Are you sure you want to change the base?
Conversation
At last, here's the long-awaited documentation!
Feel free to add more commits to this, I left spelling mistakes just for you @christpet
|
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.
draft 1.1 :-)
For commit messages and we use Conventionnal commits convention. | ||
Beware, a single commit shouldn't break anything (nor the test, nor the app, nor anythign. | ||
We should be able to checkout any commits and run the app without any issues. | ||
|
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.
Also, we try to keep commits small, and only include the smallest amount of change that keeps it atomic. In other words : let’s create commits that only do one thing.
If you the history doesn't feel right, just be a negationist and use (and abuse) `git rebase -i`. | ||
Just as long as you don't reright other people's history it's fine (really). | ||
|
||
And if you feel like, feel freer to `squash` your branch history into a single commit. |
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.
Not sure I like the recommandiation, as it contradicts my recommandation suggested above …
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.
Hm what's the best way to do this? Should we keep commits atomic or squash the branch history together into one big commit?
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.
Well maybe, this is just a vocabulary issue (atomic?) or maybe interpretation?
see the discussion below regarding a "commit message guideline" :
https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53#gistcomment-2936929
Sometimes you just a go into a commit frenzy and reach a point where you need overwrite your history.
All those commits are related to the same feature and could be described by single simple sentence.
Feels atomic to me... or mb molecular? :D
Well I don't really care about which is the smallest building block here. What matters is those changes could be sum up with just a few words.
One thing I'd like to avoid is having commits which don't bring any value:
Add `sum` function to `math.js`
even if I probably did similar things somewhere in the past
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.
I think we agree here @lutangar
It’s maybe just a matter of wording indeed
Let’s say that if you PR is small enough and only does one thing, you can always squash :-)
Just let us know and we'll help you understand or choose another person fitting the task (at least try to look for typo:)) | ||
- We love our work to be read by others (who said egoless?!) so please try to show you care and leave some comments in the diff! | ||
- A PR should be merged in the next 72h? at most | ||
- You must have at least one approval to merge a PR |
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.
Paragraph proposal :
## Assignment / Merge
We consider that the PR author is responsible for it during its lifecycle. It means that the author :
- decides who to require a review from (but everyone can review/comment)
- decides when he got sufficient feedbacks
- decides whether to handle or not non-blocking comments
- decides when to merge, and triggers it
But then again, even if he has the final saying, we usually try to work a team, discuss things and find consensus.
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.
I like this, it's really helpful for the PR author to know that they are the one responsible for their PR.
Just so I understand, the PR author does not have the final say on merging something to main, correct? That responsibility should be with one of the reviewers right? I'm just thinking of a potential case where a PR author wants to merge but there are clear issues with the PR. In that case, it's best if someone with knowledge of the system makes the final call. What do you think?
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.
Discussed with @felix-lambert last week, and what he suggested kind of make sense:
- if the reviewer approved the PR, he should be the one to merge it
Note: it avoids one extra cycle whereas the PR is approved and can be merged
Note 2: Actually we kind of did that already but not always, I'm not really sure of the unwritten rule behind this.
But what about when there are 2 reviewers or more then? Is one approval still sufficient?
Shall it be a rule? An exception?
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.
But what about when there are 2 reviewers or more then
-
That’s why I suggested that the PR author is the one in position to know if he got enough feedback from review(s) or not, and decide to merge. Even if I get how it adds a «cycle» …
-
It also solves the problem of considering if the remaining discussions are blocking or not
Of course, this only works assuming that PR author is experienced enough to be able make this decision.
In fact, we could adopt my proposal if the PR author is the maintainer,
But if the author is not a maintainer, different rule : Any maintainer can merge.
REVIEW.md
Outdated
|
||
## Pull/Merge request | ||
When ready you can open a Pull Request targeting the main branch. | ||
> BTW shall we rename `master` to `main`? |
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.
Yes!
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.
Could you create issues in the respective repositories?
I'm curious to see how you would fill in the "feature request template" for this.
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.
Made some typo/wording fixes in a batch of suggestions - I think you can just commit them all at once if you like them?
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Co-authored-by: Christian Petroske <[email protected]>
Loved it! Didn't find an option to commit them all at once tho'. But I'll rewrite history to make it look like so once we're all set. |
At last, here's the long-awaited documentation!