Closed mtlynch closed 6 months ago
Some more data points here:
I tried to manually construct the review URL manually before (https://codeapprove.com/pr/tiny-pilot/microsd-integrity-check/30
), but that resulted in a 404. In contrast to @mtlynch, I don’t have admin permissions on the repo, however, so it may have to do something with this?
I can reproduce the 404 in another PR (#28) of that same repo, which also misses the badge. So when going to https://codeapprove.com/pr/tiny-pilot/microsd-integrity-check/28, I get a redirect to https://codeapprove.com/404.
I was able to produce a link by adding the codeapprove
label to the PR beforehand (manually). So without that label, I got the 404. After adding the label, it worked. The badge button (“Review on CodeApprove”) was automatically added after I added the codeapprove
label.
@samatcodeapprove - Any updates here? We're still seeing this issue.
@mtlynch sorry somehow this issue slipped past my Gmail filters, I will take a look!
@mtlynch @jotaen4tinypilot in Settings for the repo in question do you have the auto-create reviews setting enabled?
From what I can see in the database you have that setting enabled on many of your repos, but not the one we're talking about here (microsd-integrity-check
).
Without that setting, the review is only created when the codeapprove
label is manually added on GitHub.
(Btw: to navigate to a CodeAppove review directly from GitHUb you can just replace github.com
with codeapprove.com
in your URL bar and everything should work)
@samatcodeapprove - Ah, it was off. Thanks!
Is it off by default when adding a repo? I don't recall disabling it, and my expectation is that the setting would be enabled by default.
Yeah it's off by default right now, because for new users the ability to try CodeApprove one PR at a time makes onboarding low risk.
I'm happy to make this an org-wide setting so that you can set it and forget it though.
I'm happy to make this an org-wide setting so that you can set it and forget it though.
That would be handy!
Deploying a new version of the Settings page now which allows the "auto review" setting to be enabled at the org level.
@samatcodeapprove - Excellent, thanks!
We're having trouble getting CodeApprove to add a badge on a private repo PR:
https://github.com/tiny-pilot/microsd-integrity-check/pull/30
I tried disabling / re-adding the repo to the CodeApprove Github app, but it didn't seem to have an effect. I also tried adding the label
codeapprove
, but no effect.I am able to construct the CodeApprove review URL manually:
https://codeapprove.com/pr/tiny-pilot/microsd-integrity-check/30