-
Notifications
You must be signed in to change notification settings - Fork 9
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
Decouple TBDocs Commenter #106
Conversation
|
lgtm but do we need to remove |
@KendallWeihe Great question! The reason why I did this is because the workflow trigger for the commenter is dependent in the completion of another workflow. If I left it within the main CI workflow the comment would be added to the PR after all tests are complete, which might take way longer than the tbdocs reporter (in web5 repo the ci tests were taking 10m+, and the tbdocs reporter was finished in less than 2m) |
Make sense to me, but so you want the reporter job to run both during the I raise, because you removed the job from the |
Oh I missed your original question point! Yes we definitely need to remove the job from the integrity check to avoid it running twice and I completely forgot... fixing it! Great catch! |
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.
should we name this publish-docs.yml
? since there's also another workflow related to docs?
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.
Maybe another name because this one is just checking the docs errors and generating the report, not actually publishing the docs anywhere... kind of a docs linting. What do you suggest? docs-check.yml
, docs-report.yml
?
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.
ah gotcha! we can submit another PR when/if we figure out a different name!
Pretty similar to what was done for web5-js repo: TBD54566975/web5-js#323
To post the tbdocs report in a comment we need to have access to secrets. For security reasons forked PRs dont have access to them, and then we get this kind of error: https://github.com/TBD54566975/tbdex-js/actions/runs/6862633634/job/18660762085?pr=79#step:8:248
Now we also have the tbdocs report in the GH Action summary!
workflow_run
trigger to safely execute code from the main branch, access secrets and be able to create the report commentPS: the tbdocs report comment in the PR will only start to show up when we merge this PR to main. Unfortunately this is the normal behavior for new
workflow_run
definitions.Working evidence: