-
Notifications
You must be signed in to change notification settings - Fork 98
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
Tools: Preview was using main (still) #143
Merged
codeallthethingz
merged 15 commits into
thousandbrainsproject:main
from
codeallthethingz:bug-preview-does-not
Jan 24, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d83db3c
fix: checkout the branch to preview
codeallthethingz 53c919e
just run the tool on the docs
codeallthethingz 159b759
action
codeallthethingz 17ea165
action
codeallthethingz 569756b
merge main
codeallthethingz ab0349e
Merge branch 'main' into bug-preview-does-not
codeallthethingz 85ee084
revert
codeallthethingz 11828f9
pull_request
codeallthethingz bcaee8f
action
codeallthethingz f9e3ad7
action
codeallthethingz 4b562e6
action
codeallthethingz 7ffc50c
revert to target
codeallthethingz a75c3d4
Merge branch 'main' into bug-preview-does-not
codeallthethingz 76bcb04
Merge branch 'main' into bug-preview-does-not
tristanls 1f5a071
Merge branch 'main' into bug-preview-does-not
codeallthethingz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
question: I don't understand where
../pr_docs/docs
comes from. Why does this work?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.
it's in the sparse checkout from above.
The flow is
~/tbp.monty/
~/pr_docs/
(was using sparse checkout but could be the entire project as you suggest)../pr_docs/docs
Thinking about it last night, this does put us at some risk of markdown/regex attacks as the PR could introduce some documentation that our regex parsing/markdown lib doesn't deal with very well and explodes. https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS for example.
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.
actually, ignore that, the code has gone... Lemme find it.
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.
ok! That was embarrassing. The code is now back @tristanls
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.
note: Now I see what's going on 🙂!