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

Add a Liquid template for Github PR links #2380

Merged
merged 1 commit into from
Mar 17, 2017
Merged

Add a Liquid template for Github PR links #2380

merged 1 commit into from
Mar 17, 2017

Conversation

mdlinville
Copy link

Generates a Github PR URL from three parameters

Usage:
{% include github-pr.md pr=12345 %}

If you omit the org or repo, they default to docker.
If you omit the pr, it defaults to NULL.
{% include github-pr.md repo=docker.github.io pr=9999 %}

Output:
#12345
#9999

@mdlinville
Copy link
Author

Add a unit test to test.md. Go to the /test/ URL on Netlify to test how this works.

@mdlinville mdlinville merged commit a79cddd into docker:master Mar 17, 2017
@mdlinville mdlinville deleted the add-gh-pr-include branch March 17, 2017 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants