You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/doc/usage/issue-pull-request-templates.en-us.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,4 +41,39 @@ Possible file names for PR templates:
41
41
* .github/pull_request_template.md
42
42
43
43
44
-
Additionally, the New Issue page URL can be suffixed with `?body=Issue+Text` and the form will be populated with that string. This string will be used instead of the template if there is one.
44
+
Additionally, the New Issue page URL can be suffixed with `?title=Issue+Title&body=Issue+Text` and the form will be populated with those strings. Those strings will be used instead of the template if there is one.
45
+
46
+
# Issue Template Directory
47
+
48
+
Alternatively, users can create multiple issue templates inside a special directory and allow users to choose one that more specifically
49
+
addresses their problem.
50
+
51
+
Possible directory names for issue templates:
52
+
53
+
* ISSUE_TEMPLATE
54
+
* issue_template
55
+
* .gitea/ISSUE_TEMPLATE
56
+
* .gitea/issue_template
57
+
* .github/ISSUE_TEMPLATE
58
+
* .github/issue_template
59
+
* .gitlab/ISSUE_TEMPLATE
60
+
* .gitlab/issue_template
61
+
62
+
Inside the directory can be multiple issue templates with the form
63
+
64
+
```markdown
65
+
-----
66
+
name: "Template Name"
67
+
about: "This template is for testing!"
68
+
title: "[TEST] "
69
+
labels:
70
+
- bug
71
+
- "help needed"
72
+
-----
73
+
This is the template!
74
+
```
75
+
76
+
In the above example, when a user is presented with the list of issues they can submit, this would show as `Template Name` with the description
77
+
`This template is for testing!`. When submitting an issue with the above example, the issue title would be pre-populated with
78
+
`[TEST] ` while the issue body would be pre-populated with `This is the template!`. The issue would also be assigned two labels,
0 commit comments