Files
docker-docs/_includes/github-pr.md
Bill a3a7ae1e0b replaced docker/docker with moby/moby (#2879)
* replaced docker/docker with moby/moby

* fixed incorrect name changes in release notes

* fixed mentions of moby/moby in code
2017-04-20 15:32:18 -05:00

12 lines
642 B
Markdown

{% comment %}
Generates a Github PR URL from three parameters
Usage:
{% include github-pr.md org=docker repo=docker pr=12345 %}
If you omit the org or repo, they default to docker.
If you omit the pr, it defaults to NULL.
Output:
[#12345](https://github.com/moby/moby/pull/12345)
{% endcomment %}{% assign org = include.org | default: "docker" %}{% assign repo = include.repo | default: "docker" %}{% assign pr = include.pr | default: NULL %}{% assign github-url="https://github.com" %}{% capture pr-link %}[#{{ pr }}]({{ github-url }}/{{ org }}/{{ repo }}/pull/{{ pr }}){% endcapture %}{{ pr-link | strip_newlines }}