Repository navigation
Add back mark-merge-commits-in-list feature - #2832
Conversation
|
@fregante this is what you meant? |
|
|
||
| function filterCommits(commits: object): string[] { | ||
| const mergeCommits = []; | ||
| for (const commit of Object.entries(commits)) { |
There was a problem hiding this comment.
Destructure, so you don’t have to use commit[1] later
| for (const commit of Object.entries(commits)) { | |
| for (const [key, commit] of Object.entries(commits)) { |
There was a problem hiding this comment.
Please follow my reviews fully, especially when I provide exact code suggestions. I used key because the value will be the API's escaped key, not the commit. It becomes commit only after you apply .slice(1)
There was a problem hiding this comment.
No problem.
Just go easy on me. I am working hard and I am also fighting with typescript too.
There was a problem hiding this comment.
Is this the only issue?
There was a problem hiding this comment.
@fregante
the return value is
{_0341d299c80dbfc8f4aabbb4d36829db8cf7f2a9:
parents:
totalCount: 1}so key would be the commit and the second value is the parents. Can You give me a drop more detail where i'm going wrong?
There was a problem hiding this comment.
Copy-paste my code suggestion, that’ll make it right. The variable names were changed.
It takes time to review. If a review comment is (partially) ignored then we’re both wasting time. Nobody likes that
|
Can you always include a screenshot in the first comment when un-drafting a PR? This way one doesn't have to check out the PR to make sure it looks right |
Sure |
|
It looks good. I suggest dimming the buttons on the right too and simplify the selector |
mark-merge-commits-in-list feature
|
@fregante the old style was like this |
|
That wasn't the style that was approved in that PR: #1121 (comment) The current format is fine, but I'd dim the whole line, including the buttons. |
And dim it more
|
Correct. The highlight is still there so it makes sense to show the whole thing. |



closes #2827
I hate typescript
I did not add the icon since typescript would not let me.
wastedused about an hour because if it 😕https://github.com/babel/babel/commits/master?after=ddd40bf5c7ad8565fc990f26142f85613958a329+104