Skip to content
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

Blueprints: Allow for gist.github.com instead of gist.githubusercontent.com #2140

Open
bph opened this issue Feb 7, 2025 · 0 comments
Open

Comments

@bph
Copy link
Collaborator

bph commented Feb 7, 2025

It was a great enhancement to allow for normal GitHub URLs to be used in blueprints.

https://github.com/WordPress/blueprints/blob/trunk/blueprints/custom-post/books.php

Instead of

https://raw.githubusercontent.com/WordPress/blueprints/blob/trunk/blueprints/custom-post/books.php

Now it would be consistent if that would also work for content in GitHub Gists:

Use:
https://gist.github.com/ndiego/456b74b243d86c97cda89264c68cbdee

instead of
https://gist.githubusercontent.com/ndiego/456b74b243d86c97cda89264c68cbdee/raw/ff00cf25e6eebe4f5a4eaecff10286f71e65340b/block-hooks-demo.php

It not only would decrease mental load when writing blueprints, it would also make blueprints much more readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Inbox
Development

No branches or pull requests

1 participant