Skip to content

Commit 013f837

Browse files
author
David Karlsson
committed
chore: update create-issue links
Signed-off-by: David Karlsson <[email protected]>
1 parent c9a9970 commit 013f837

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

404.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ skip_read_time: true
99

1010
There might be a mistake in the URL or you might've clicked a link to content
1111
that no longer exists. If you think it's the latter, please file an issue in
12-
our [issue tracker on GitHub]({{ site.repo }}/issues/new)
13-
and let us know what happened. Please also include a link to where the error
14-
occurred, if applicable.
12+
our issue tracker on GitHub.
1513

1614
[**Click here to create a new ticket**]({{ site.repo }}/issues/new){:.newissue.button.primary-btn}
1715

@@ -21,12 +19,11 @@ occurred, if applicable.
2119
let el = document.querySelector("a.newissue");
2220
if (el) {
2321
let url = new URL("{{ site.repo }}/issues/new");
24-
url.searchParams.set("title", "404 at " + window.location.pathname);
25-
let body = "I found a broken link : " + window.location.href;
26-
if (document.referrer !== "") {
27-
body += "\nI arrived on this page through: " + document.referrer
28-
}
29-
url.searchParams.set("body", body);
22+
url.searchParams.set("template", "broken_link.yml")
23+
url.searchParams.set("title", "[404]: " + window.location.pathname);
24+
url.searchParams.set("target", window.location.href);
25+
url.searchParams.set("location", document.referrer);
26+
url.searchParams.set("labels", "status/triage");
3027
el.setAttribute("href", url.toString());
3128
}
3229
</script>

_layouts/docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{%- if page.issue_url -%}
99
{%- assign issue_url = page.issue_url -%}
1010
{%- else -%}
11-
{% capture issue_url %}{{ site.repo }}/issues/new?body=File: [{{ page.path }}]({{ site.docs_url }}{{ page.url }}){% endcapture %}
11+
{% capture issue_url %}{{ site.repo }}/issues/new?template=doc_issue.yml&location={{ site.docs_url }}{{ page.url }}&labels=status%2Ftriage{% endcapture %}
1212
{%- endif -%} -->
1313
<html lang="en">
1414
{%- include head.html -%}

develop/dev-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: application, development
77
The following development patterns have proven to be helpful for people
88
building applications with Docker. If you have discovered something we should
99
add,
10-
[let us know]({{ site.repo }}/issues/new){: target="_blank" rel="noopener" class="_"}.
10+
[let us know]({{ site.repo }}/issues/new?template=doc_issue.yml&labels=status%2Ftriage){: target="_blank" rel="noopener" class="_"}.
1111

1212
## How to keep your images small
1313

0 commit comments

Comments
 (0)