discourse/spec/lib/onebox/engine
Martin Brennan f5cbc3e3b8
FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947)
Followup 560e8aff75

The linked commit allowed oneboxing private GitHub PRs,
issues, commits, and so on, but it didn't actually allow
oneboxing the root repo e.g https://github.com/discourse/discourse-reactions

We didn't have an engine for this, we were relying on OpenGraph
tags on the HTML rendering of the page like we do with other
oneboxes.

To fix this, we needed a new github engine for repos specifically.

Also, this commit adds a `data-github-private-repo` attribute to
PR, issue, and repo onebox HTML so we have an indicator of
whether the repo was private, which can be used for theme components
and so on.
2024-07-19 12:21:45 +10:00
..
allowlisted_generic_onebox_spec.rb
amazon_onebox_spec.rb
animated_image_onebox_spec.rb
audio_com_onebox_spec.rb
audio_onebox_spec.rb
cloudapp_onebox_spec.rb
discourse_topic_onebox_spec.rb
facebook_media_onebox_spec.rb SECURITY: Fix Stored-dom XSS via Facebook Oneboxes 2024-07-03 20:49:22 +08:00
gfycat_onebox_spec.rb
github_actions_onebox_spec.rb FEATURE: Allow for multiple GitHub onebox tokens (#27887) 2024-07-15 13:07:36 +10:00
github_blob_onebox_spec.rb FEATURE: Allow for multiple GitHub onebox tokens (#27887) 2024-07-15 13:07:36 +10:00
github_commit_onebox_spec.rb FEATURE: Allow for multiple GitHub onebox tokens (#27887) 2024-07-15 13:07:36 +10:00
github_folder_onebox_spec.rb
github_gist_onebox_spec.rb
github_issue_onebox_spec.rb FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
github_pull_request_onebox_spec.rb FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
github_repo_onebox_spec.rb FEATURE: Allow oneboxing private GitHub repo URLs and add private indicator to HTML (#27947) 2024-07-19 12:21:45 +10:00
gitlab_blob_onebox_spec.rb
google_docs_onebox_spec.rb
google_drive_onebox_spec.rb
google_maps_onebox_spec.rb
google_photos_onebox_spec.rb
google_play_app_onebox_spec.rb
hackernews_spec.rb
html_spec.rb
image_onebox_spec.rb
imgur_onebox_spec.rb
instagram_onebox_spec.rb
json_spec.rb
kaltura_onebox_spec.rb
loom_onebox_spec.rb FEATURE: Add onebox for loom (#26016) 2024-03-04 15:12:08 -07:00
motoko_onebox_spec.rb
pdf_onebox_spec.rb
pubmed_onebox_spec.rb
reddit_media_onebox_spec.rb
slides_onebox_spec.rb
spotify_onebox_spec.rb FEATURE: Support Spotify Onebox (#27540) 2024-06-19 13:27:27 -03:00
stack_exchange_onebox_spec.rb
standard_embed_spec.rb
threads_status_onebox_spec.rb
trello_onebox_spec.rb
twitch_clips_onebox_spec.rb
twitch_stream_onebox_spec.rb
twitch_video_onebox_spec.rb
twitter_status_onebox_spec.rb DEV: Add spec for x.com onebox url matcher (#27214) 2024-05-28 09:04:20 -03:00
typeform_onebox_spec.rb
video_onebox_spec.rb
wikimedia_onebox_spec.rb
wikipedia_onebox_spec.rb DEV: Avoid instance variables in specs 2024-07-11 14:31:20 +02:00
wistia_onebox_spec.rb
xkcd_spec.rb
youku_onebox_spec.rb
youtube_onebox_spec.rb