-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Suggestion: use GitHub status API instead of posting PR comments #199
Comments
This looks like a great evolution! You had a screenshot where it seemed like we might be able to link to a page on the PR checks that could host the markdown table. Do you know if that's still possible? I'd love to be able to keep a simplified view like that without needing to try to digest everything in the web app's UI |
Heh. Oliver's screenshot was of codechecks... and in paularmstrong/build-tracker-action#3 (comment) I just wrote up what you get using "Checks". (indeed: a nice markdown table). I also recommended not using Checks and instead having the user digest everything in the webapp UI ;) I think it's a product call. The webapp's UI could have all the necessary data …or… the user users the combo of the Checks output and the webapp UI depending on their needs. |
Agreed with @paulirish that a status is probably sufficient, but if you did want to have a dedicated page, you could use the checks API inside of the action. |
@OliverJAsh btw i worked a bit with your code today and i think i found a small bug.. const hasWarnings =
comparator.unexpectedHashChanges.length > 1 || comparator.warnings.length > 1;
const description = [hasWarnings ? '⚠️ See report.' : undefined, descriptionStats]
.filter(s => s !== undefined)
.join(' '); i think those first two should be a that aside, i really appreciate you sharing this! :) |
Problem
Sharing some recent work, as discussed on Twitter.
Proposed solution
You can implement
onCompare
to post a commit status instead of a PR comment. It looks something like this, where the "details" link takes you to the comparison inside of the Build Tracker app.Here's my code. I've just copy and pasted the main parts, hopefully you get the idea and can fill in the gaps. The important posts are
postStatus
and the way I'm deriving the statusdescription
(with stats) insideonCompare
.The text was updated successfully, but these errors were encountered: