HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jameslao

no profile record

Submissions

Show HN: Crocodile - Better code review for GitHub

crocodile.dev
144 points·by jameslao·4 anni fa·61 comments

comments

jameslao
·3 anni fa·discuss
Crocodile: https://www.crocodile.dev/

Better code reviews for GitHub. It integrates with GitHub to provide a better reviewing and commenting experience for pull requests. Free for open source!
jameslao
·3 anni fa·discuss
HEPA filters will filter out particulate but doesn't help with VOCs. For that you need carbon filters.
jameslao
·4 anni fa·discuss
Thanks for pointing those out! Fixed.
jameslao
·4 anni fa·discuss
Ah yeah, it only supports Chrome (and Chrome based browsers) and Firefox for now. I've been meaning to add an error message if you use a different browser.

No newsletter yet, but you can follow me on Twitter for now @jameslao.
jameslao
·4 anni fa·discuss
The master key is stored as a secret in Kubernetes so if someone compromised it, they would be able to decrypt the source code in the reviews.
jameslao
·4 anni fa·discuss
I can see how the iterations control can be not obvious. I'll add a docs section that explains it. The two columns of radio buttons represent your selection for the left and right side of the diff. You can also click on any iteration to diff it against the base.

I've made a couple notes based on this to help me prioritize next. Thanks for taking the time to provide all this amazing feedback!
jameslao
·4 anni fa·discuss
I hear you. Crocodile has a couple features that try to address this.

1. More comment states. Comments start as "open". The workflow I had in mind was that once the author addresses it, they would mark it as "resolved". The reviewer can go to the comments view (in the meta section on the left nav) where they can filter to resolved comments. If it looks good, they can mark it as "closed" or "open" again if they want more changes. I have this as a suggested workflow in the docs. [1]

2. The iterations section in the left nav lets you compare any two iterations. You can use this to see what has changed since your last review. Crocodile even indicates which iteration your last review was on to make this easy.

[1] https://www.crocodile.dev/docs#commenting
jameslao
·4 anni fa·discuss
That's actually a use case I've thought about. When review time came around, one of my past managers would compile statistics on everyone's reviews to see how much they've been participating.

Another feature I've thought about is "show me all of person X's reviews and comments across all repos". That would have been super useful when I was on promo panels to go through and see if a promo candidate's review comments were useful, constructive, kind, etc.

Thanks for the feedback. I really appreciate it!
jameslao
·4 anni fa·discuss
If you click the "Comments ->" link in the meta section on the left nav of the review, it will take you to my version of the comments panel.

A couple improvements I made:

* You can see the whole discussion. The last time I used CodeFlow it only showed one line of the comment which often wasn't enough for me to remember what it was so in practice I always had to click on every single one to see the whole thing. Not a big deal with CodeFlow since it was so snappy as you mentioned.

* It shows a preview of the code that was commented on to provide context.

Thanks for taking a look! Great to see other CodeFlow fans out there.
jameslao
·4 anni fa·discuss
You can add just the users you want. See: https://www.crocodile.dev/docs#adding-team-members

Crocodile has its own organization and member list. Billing is based on the max number of users in the Crocodile org for the month.
jameslao
·4 anni fa·discuss
Comments should get transferred just fine across rebases and force pushes. If they don't, you can let me know using the feedback form at the top right.

Supporting other VCS providers, even non-Git ones, is on my list. The underlying data model is agnostic to GitHub so it's just a matter of having demand for it and doing the work!
jameslao
·4 anni fa·discuss
> Do you support features like github suggestions which can be committed easily by author?

Not right now. The suggestion feature is something I want to add in the future if there's interest though!

> Given your history with Microsoft and their internal tool which this is inspired by, how long until github copies some of the ideas?

No idea! But CodeFlow had been around for many years before they acquired GitHub so they've had plenty of time to do it! I think this is an existential fear that anyone building code review tools has. For Crocodile, I think the long term strategy will be to decouple this from GitHub so that it can work with any source control provider. I architected it this way from the beginning but decided to target GitHub first because they have mindshare and because it made it really easy to dogfood since I host my code on GitHub.

> Are there potential problems you see outside of current product?

There's the one you already mentioned, which is GitHub improving their PR system, but there's not much I can do about that. Current problems I'm looking at are roadmap related. I have a few ideas of features I'd like to add, but no real indication on what to do next. Hence, posting on HN to get feedback. :)

Thanks for taking a look and the feedback!
jameslao
·4 anni fa·discuss
Thanks for taking a look! Yeah, not having admin access is definitely a problem. Using a PAT is an interesting idea that I'll have to think about that from a security and liability perspective.
jameslao
·4 anni fa·discuss
How so? Intel Platform Trust Technology is TPM implemented inside the CPU. Intel Management Engine is a separate thing as far as I can tell.
jameslao
·4 anni fa·discuss
Pluton seems like the next evolution of the TPM which has been around for many years. Many (most?) modern CPUs have a TPM built into the CPU already (Intel PTT and AMD fTPM) so it's not a huge change from the status quo as far as I can tell.